^h:: Process, Exist, notepad.exe If ErrorLevel = 0 { MsgBox, Notepad does not exist. } Else { MsgBox, Notepad is running. } Return