Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine if the system has been Idle for a while.
Message
 
To
31/10/2003 05:52:46
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00844861
Message ID:
00845055
Views:
17
>Hi,
>
>How can I determine if the system has been Idle for a while? I have a VFP8 application that should minimize if the user hasn't worked for a while, and upon activation display the Application's logon form.
>
>Anybody some idea's?
>
>TIA,
>
>Stefan

Hi Stefan,

If I understand correclty, you want to determine the system idle time, not just inactivity in your application. Then, in Win2000 and up you might want to try the GetLastInputInfo() Windows API func. The function requires the use of STRUCTures. For Win98/Me and earlier, here is an article that might help, with VC++ 6.0 source code included http://www.codeproject.org/dll/trackuseridle.asp .

HTH,

Sorin
Previous
Reply
Map
View

Click here to load this message in the networking platform