FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Tracking user inactivity
Posts: 208
Joined: Wed Dec 03, 2008 04:48 PM
Tracking user inactivity
Posted: Fri Dec 27, 2013 11:56 PM

I would like to be able to detect the user inactivity for a certain amount of time.

For example, if the user do not use the mouse or keyboard for some predefined time (60min for example) I would like to close the databases and program.
I would like also to show the info somewhere on window, how much time is left before closing the program because of inactivity (like counter). Then if the user moves the mouse of uses keyboard I reset the counter back to 60min and count down again...
I know I have to use a timer, but I don't know how to detect the mouse or keyboard activity...

Is there any way I can accomplish this?

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Tracking user inactivity
Posted: Sat Dec 28, 2013 03:36 AM
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 208
Joined: Wed Dec 03, 2008 04:48 PM
Re: Tracking user inactivity
Posted: Sat Dec 28, 2013 03:16 PM

Thanks "cnavarro"

Continue the discussion