Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Kill screensaver programatically
Message
From
11/04/2017 00:22:26
 
 
To
10/04/2017 20:45:36
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows Server 2008 R2
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01650032
Message ID:
01650036
Views:
54
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform