#SingleInstance Force #Persistent Run, PATHWITHQUOTES, EXEFOLDERPATHWITHNOQUOTES,Max,UselessVar SetTimer HearthstoneTimer, 500 Return HearthstoneTimer: WinGet IDs, List, ahk_class UnityWndClass Loop %IDs% { Screen_X = %1920% Screen_Y = %1080% 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