>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