Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A Global Timer since last User's Input
Message
De
09/12/2004 04:37:43
 
 
À
08/12/2004 16:11:07
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00897805
Message ID:
00967955
Vues:
18
Cetin,
What would you do nowadays? My feeling says that only GetLastInputInfo should be tested if it's w2k or later. But I'm open to disagreement on this one.

>Peter,
>I'm away from the code but as far as I can remember off the top of my head:
>I probably thought "if is2K" check vs directly calling GetCursorPos() didn't have much impact (few milliseconds maybe) and to make sure ptLastPoint property is initialized (generally leaving such values at their default .f., setting in code).
>Also that code is old and what I came up with then.
>Cetin
>
>>Hi Cetin,
>>
>>Thanks for your elaboration on the screensaver questions.
>>
>>My first question is (in other words): Microsoft has introduced the api-call GetLastInputInfo to enable developers to check the last-input moment of the whole system, also as THE means to check since when the system is idle. Why is GetCursorPos() done earlier in your code, even if it is win2k or xp?
>>
>>>Hi Peter,
>>>1) Couldn't understand this question. It's checked for all. Activity accepted to occur with either mouse movement or a keypress. For mouse checking GetCursorPos() and saving last point where mouse is.
>>>2) Checking screensaver because if a screensaver is set it could do the work for me. Then I check if a screensaver state was entered.
>>>3) No the code pasted there is not complete. Just the core pieces.
>>>
>>>Here is a more detailed version (not full but near):
>>[snip]
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform