Created
February 9, 2021 07:29
-
-
Save Pagliacii/0b70ccf3b948b470e81f60c74cee4a98 to your computer and use it in GitHub Desktop.
This function checks if the specified name process exists and returns the unique ID (HWND) of the first matching window.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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