BigBox active window problem on game exit

Channel:
Subscribers:
2,480
Published on ● Video Link: https://www.youtube.com/watch?v=VKgtTvNv9Ts



Duration: 2:27
1,258 views
35


Have you ever been frustrated with BigBox controls not working after you exit a game?
All I could do in these cases was (plug in a keyboard ) and hit Alt-Tab to focus Windows back on BigBox to get my controls working again.
But I decided to script my way around this and thought I'd share my solution incase any of you ever have the same problem


Sleep, 5000
WinGet, active_id, ID, A
WinWaitClose, ahk_id %active_id%
Sleep, 3000
Send {Esc}
Sleep, 500
if WinExist("LaunchBox")
{
WinActivate
}

if WinExist("LaunchBox BigBox")
{
WinActivate
}

ExitApp