huilun02

Distinguished
Feb 29, 2008
62
0
18,610
12
I'm new to AutoHotkey...

Need to script CCleaner to sweep privacy and history every time Chrome is closed.
Incognito mode and extensions not good enough...

I've been using this so far:

^g::
RunWait, C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
Run, C:\Program Files\CCleaner\CCleaner.exe /AUTO
return

But only works if I launched Chrome using the hotkey :(
Need CCleaner to run no matter how Chrome was launched...

I've seen WinTrigger by MasterFocus:
http://www.autohotkey.com/board/topic/59059-wintrigger-watch-deactivationunexistance-of-windows/

Is too complex for me to understand and adapt for my use. And contains script that react to deactivation of window(s) which I don't need. Can't even tell what is being triggered :(

If someone knows more about AutoHotkey, could please alter the WinTrigger script for me, or interpret so I know how to use it...

Thank you very much :)
 

ASK THE COMMUNITY