Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Kill screensaver programatically
Message
De
11/04/2017 00:22:26
 
 
À
10/04/2017 20:45:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows Server 2008 R2
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01650032
Message ID:
01650036
Vues:
55
>My app is wating to read a barcode swipe while the screensaver is running. I'd like the screensaver to go off whenever a swipe occurs.
>
>Ive tried the Keyboard command and the Mouse command but they won't stop the screensaver.
>
>Mouse click at 3,3
>or KEYBOARD "{CTRL+LEFTARROW}"
>
>Evidently the functions don't simulate the actual event since the screensaver continues to run uninterrupted.

Just to point out. VFP has its own internal keyboard buffer. This made creating automated test case difficult. Because of this the MOUSE and KEYBOARD command does not effect model system dialog windows (MessageBox). In order to send keys and mouse strokes to the system, it requires WINAPI type calls. Perhaps look into the SendKeys method of the WScript.Shell.
Greg Reichert
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform