DonationCoder.com Software > Post New Requests Here
IDEA: utility to close a program after the program has been idle for x minutes
go197:
I keep my email .pst file and my MS OneNote data inside an encrypted "drive" that closes itself after 15 minutes of no read/write activity to the "drive". I have always wanted a utility that I could set up to close out Outlook and/or OneNote 1 minute before the encrypted "drive" closes. This way I could avoid the programs becoming non-responsive and/or the PC blue screening when I try to reopen the drive.
This kind of utility could be useful for anyone who might want a program to close by itself for other reasons, like password protected files (Word, Excel, etc) or other password protected apps.
It might also be useful if it could close programs due to screen saver activation, hibernation, or stand-by.
I hope this sounds interesting to you guys, I think it could be useful.
Thanks in advance...
go197:
OP here. I was looking through the finished programs in this forum after I posted the above request (should've been more thorough to begin with :-[ ...sorry :'() and found this:
https://www.donationcoder.com/forum/index.php?topic=2377.0
This might be what I've been looking for. I'll look at it and see if it will work for my situation.
brotherS:
https://www.donationcoder.com/forum/index.php?topic=2377.0
This might be what I've been looking for. I'll look at it and see if it will work for my situation.
-go197 (December 20, 2006, 11:27 PM)
--- End quote ---
Yep, my script at the end of that thread should do exactly what you want. If you can't get it to work for your program(s), please reply there.
go197:
Thanks for your reply. Yes it works with outlook.exe and onenote.exe, but I've found after testing it and reading about the A_TimeIdlePhysical command in the help file that it's not exactly what I'm looking for. I am looking for a utility that monitors the idle time of only specific programs (instead of the whole system) and that would then close those programs after x minutes of program idle time. I can see that this script you wrote is useful for many purposes, but it's not really what I am needing. I'm looking for a solution to close Outlook and OneNote before Truecrypt's "auto-close on x minutes with no read/writes" feature closes the "drive" where their data is located because this "drive" closing causes problems as I mentioned above. I don't know if you're familiar with the Truecrypt feature I'm refering to, so if you need me to elaborate a little, I can. Is there anything that can be done with Autohotkey that could help with my situation?
brotherS:
Is there anything that can be done with Autohotkey that could help with my situation?
-go197 (December 21, 2006, 10:57 PM)
--- End quote ---
It's AutoHotkey: of course! :)
I imagine something like "check if PROGRAM's window is active" (If WinActive, check out http://www.autohotkey.com/docs/commands.htm) - if it hasn't been active for x minutes -> close PROGRAM.
Some of the more experienced AutoHotkey users here can probably help you with more details.
Navigation
[0] Message Index
[#] Next page
Go to full version