check if an app is running ahk code example
Example: check if an app is running ahk
^h::
Process, Exist, notepad.exe
If ErrorLevel = 0
{
MsgBox, Notepad does not exist.
}
Else
{
MsgBox, Notepad is running.
}
Return
^h::
Process, Exist, notepad.exe
If ErrorLevel = 0
{
MsgBox, Notepad does not exist.
}
Else
{
MsgBox, Notepad is running.
}
Return