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: 1149
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 247 times
Been thanked: 140 times

Post by bpd2000 »

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

User avatar
esgici
Posts: 4529
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 407 times
Been thanked: 115 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: 742
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Has thanked: 28 times
Been thanked: 352 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 323 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