Hey Joe, thanks for this, I tried it and it doesn't load BigBox for some reason. Any ideas? This is what I have put in the script:
vk07::
{
KeyWait, vk07, T2 ;wait to see if the Guide buttom is held for 2 ("T2") seconds
If (ErrorLevel) ;if held for 2 seconds, then...
{
if !WinExist("ahk_exe BigBox.exe")
Run C:\Users\Jack\LaunchBox\Core\BigBox.exe
else
WinActivate, ahk_exe BigBox.exe
Run %A_ScriptDir%\nircmd.exe setdefaultsounddevice "32W_LCD_TV" ;
send {esc}
WinClose, ahk_exe retroarch.exe
WinClose, ahk_exe Dolphin.exe
WinClose, ahk_exe pcsx2.exe
WinClose, ahk_exe pcsx2.exe
WinClose, ahk_exe PPSSPP
WinClose, ahk_exe kodi.exe
WinClose, ahk_exe citra-qt.exe
WinClose, ahk_exe Cemu.exe
Send {y}
Sleep 1000 ;should eliminate 'repeat presses'
}
else ;if held for less that 2 seconds
{
vk07::vk07 ;then the Guide button is just the Guide button
}
}