help : closes automatically when no activity ?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
bels79
Posts: 37
Joined: Fri Sep 09, 2011 8:01 am
DBs Used: DBF, MySQL

help : closes automatically when no activity ?

Post by bels79 »

pls help
command for closes automatically when no activity ?

thanks'
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: help : closes automatically when no activity ?

Post by bpd2000 »

I think you can use timer control
BPD
Convert Dream into Reality through HMG
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: help : closes automatically when no activity ?

Post by esgici »

bels79 wrote: command for closes automatically when no activity ?'
Please look at here :

viewtopic.php?f=9&t=1361&p=10088

I hope that it will give you an idea :idea:

Happy HMG'ing :D
Viva INTERNATIONAL HMG :D
User avatar
gfilatov
Posts: 1060
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: help : closes automatically when no activity ?

Post by gfilatov »

bels79 wrote: command for closes automatically when no activity ?
Hello,

Yes, it is possible with using WinAPI function GetLastInputInfo().

Please try the attached working sample which is based upon the TINATIVO class.

You can use a variable nTempo_espera for indicate a timeout in seconds.

Hope that helps. 8-)
Attachments
demo.zip
Sample is based upon the TINATIVO class
(1.67 KiB) Downloaded 410 times
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein
bels79
Posts: 37
Joined: Fri Sep 09, 2011 8:01 am
DBs Used: DBF, MySQL

Re: help : closes automatically when no activity ?

Post by bels79 »

thanks, examples / ideas given
Post Reply