I'm very new at this. As in last night was my first time making a script. I'm just trying to make a really simple script that will launch google chrome than wait for google chrome to close and then run Ccleaner and flush the dns entries. Everything works except that after I exit google chrome, nothing happens. Autohotkey says that the last script line that was executed is WinWait, - Google Chrome. And it stays there for ever. It's probably a very simple solution, I just don't know what it is. Thanks in advanced.
Code:
Run, C:\Users\Michael\AppData\Local\Google\Chrome\Application\chrome.exe
WinWait, - Google Chrome
WinWaitClose
MsgBox, 4, Clean Session, Would you like to clear browsing session?, 60
IfMsgBox, No
return
Run, C:\Program Files (x86)\CCleaner\ccleaner.exe /AUTO
Run, cmd /c "ipconfig /flushdns",, Hide
MsgBox, 0, Clean Session, Browsing session is cleared., 30
[/quote]