I searched around allot and and I think the I need to use the variable a_issuspended but looking around all the code examples seem to be insane!
Code: Select all
DetectHiddenWindows, On
SetTitleMatchMode 2
if WinExist("BconPenG604.ahk"){
PostMessage, 0x111, 65305,,, BconPenG604.ahk - AutoHotkey
Run Notepad
}
Code: Select all
DetectHiddenWindows, On
SetTitleMatchMode 2
if WinExist("BconPenG604.ahk") && ("a_issuspended")
Run Notepad
}