Code: Select all
try {
RunWait, "%localappdata%\Learnpulse\Screenpresso\Screenpresso.exe", "%localappdata%\Learnpulse\Screenpresso\"
} catch e {
MsgBox, An exception was thrown!`nSpecifically: %e%
}
MsgBox, Done
However, when I compile the file to an *.exe and run it, the program (Screenpresso) is shown as expected but the msg box is never shown. Also the tray icon of the AHK exe does not disappear from alone but only disappears when I hover with the mouse over it.
It seems like the process of the AHK exe is somehow killed unexpectedly. I'm using RunWait in many of my scripts but never came across such behavior before
I just updated to the latest AHK version v1.1.33.08 just to be sure...