WinSetTitle breaks #SingleInstance Force
Posted: 26 Sep 2017, 01:07
Renaming the script's own window, even to the same name it's normally given by AHK, causes #SingleInstance Force to no longer work
Code: Select all
#SingleInstance Force
#Persistent
#NoEnv
SetBatchLines -1
DetectHiddenWindows On
WinSetTitle ,% "ahk_id " A_ScriptHwnd ,,MyScript.ahk - AutoHotkey v1.1.24.03
Return