Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mouse Moved?
Message
 
À
29/11/2001 07:42:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00587356
Message ID:
00587434
Vues:
32
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
Caroline
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform