#SingleInstance Force #Persistent Run, "C:\Program Files (x86)\Hearthstone\Hearthstone Beta Launcher.exe", C:\Program Files (x86)\Hearthstone\,Max,UselessVar SetTimer HearthstoneTimer, 500 Return HearthstoneTimer: WinGet IDs, List, ahk_class UnityWndClass Loop %IDs% { Screen_X = %A_ScreenWidth% Screen_Y = %A_ScreenHeight% ID := IDs%A_Index% If ID not in %Old_IDs% { WinActivate ahk_id %ID% WinSet, Style, -0xC40000, A WinMove, A, , 0, 0, Screen_X, Screen_Y ; Edit "0, 0" to move it to another screen WinActivate, A } New_IDs .= ID "," exitapp } StringTrimRight Old_IDs, New_IDs, 1 New_IDs = Return