help : closes automatically when no activity ?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
bels79
Posts: 36
Joined: Fri Sep 09, 2011 8:01 am
DBs Used: DBF, MySQL
Has thanked: 1 time
Been thanked: 1 time

help : closes automatically when no activity ?

Post by bels79 »

pls help
command for closes automatically when no activity ?

thanks'

User avatar
bpd2000
Posts: 1172
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 257 times
Been thanked: 153 times

Post by bpd2000 »

I think you can use timer control
BPD
Convert Dream into Reality through HMG

User avatar
esgici
Posts: 4537
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 409 times
Been thanked: 118 times
Contact:

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: 761
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Has thanked: 30 times
Been thanked: 403 times
Contact:

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 335 times
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein

bels79
Posts: 36
Joined: Fri Sep 09, 2011 8:01 am
DBs Used: DBF, MySQL
Has thanked: 1 time
Been thanked: 1 time

Post by bels79 »

thanks, examples / ideas given

Post Reply