Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mouse Moved?
Message
From
29/11/2001 10:05:01
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00587356
Message ID:
00587458
Views:
35
Good idea! - that would work.. need to see what Jos says about it now!


>Just a thought but could you display a control place the mouse over it (using the MOUSE command) then use its MouseLeave event?
>
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform