Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This function checks if the specified name process exists and returns the unique ID (HWND) of the first matching window.
processExist(name) {
DetectHiddenWindows, On
existed := WinExist("ahk_exe" name)
DetectHiddenWindows, Off
Return existed
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment