Have a look at the sleep function in win api section
If you put a .25 seond sleep in your do loop it will release your processor workload
AFAIK there is no way to wait for a mousemove (like a screensaver) in 1 VFP command
Will
>Hi Peter
>
>Thanks, but the MDOWN() function only tells me if the mouse button is down. I need to pause the program until a user press' a key, clicks a button, *or* moves the mouse. INKEY() will trap for the first two cases but what can I use to wait for a mouse move?
>
>I can put a test in a DO WHILE loop looking for a change in mouse position but this runs at 100% processor usage. Ideally this should be an INKEY() type of wait which does not run up processor usage.
>
>Thanks
>
>Jos
Will Jones