Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Saving a Screenshot to disk
Message
 
À
07/09/1999 13:53:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00262050
Message ID:
00262081
Vues:
15
>I am able, through the use of the WIN32 API call keybd_event to simulate the ALT+PRTSCRN key combo to place a screenshot of the current app onto the clipboard.
>
>Is there any way in VFP to write the contents of the clipboard to a file? _CLIPTEXT does not get set when ALT+PRTSCRN is hit, so I can't just write the bytestream in _CLIPTEXT to a file (which was my first thought).
>
>Anyone done this (it's part of an error handler that takes a screenshot on error)?
>
>-- jas

Jeff,
I uploaded a method of saving screen shots to disk. Take a look in the file section for #966-ScrnPrnt.zip in the Win32API and Other API section. It also includes a way to print screen shots.
Steve Ruhl
CitiMortgage, Inc.
steven.ruhl@citibank.com Office
Steve@steven-ruhl.com Home
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform