The following script does not activate a window. Only when DetectHiddenWindows is set to 0 or line commented out the window is properly activated.
Code: Select all
#Requires AutoHotkey v2+
DetectHiddenWindows(true)
WinActivate SomeWindowTitle
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]