![](https://forums.launchbox-app.com/uploads/set_resources_14/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
jacks897
-
Posts
36 -
Joined
-
Last visited
Content Type
Profiles
Forums
Articles
Downloads
Gallery
Blogs
Posts posted by jacks897
-
-
Hey,
I have a few games that need to run in PCem an emulator for windows 95, 98 etc
Does anyone know how to configure things so that LaunchBox launches PCem and then launches the exe of the game from within Win 98?
-
32 minutes ago, jacks897 said:
Hey, would it be possible to make it so that pressing the guide button 2 times quickly would trigger the script?
I figured this one out myself, here it is if it helps anyone else
vk07::
If (A_ThisHotkey == A_PriorHotkey && A_TimeSincePriorHotkey < 400)
{
if !WinExist("ahk_exe yBigBox.exe")
Run C:\Users\Jack\LaunchBox\Core\BigBox.exe
else
WinActivate, ahk_exe BigBox.exeRun %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}
}
-
1
-
-
Hey, would it be possible to make it so that pressing the guide button 2 times quickly would trigger the script?
-
So that was why it wasn't working. I was trying other ways too and it wasn't working as expected.
Thanks for your help, appreciate it
-
1
-
-
Thank you but it is still not working, thanks for your help though
-
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.exeRun %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
}
} -
Hey does anyone know to trigger exiting emulators if a button is held down for 2 seconds?
This is my script, at the moment 1 press opens BigBox closes emulators etc, I would like it so that the button must be held for 2 seconds and for it to not repeat while being held.
vk07::
if !WinExist("ahk_exe yBigBox.exe")
Run C:\Users\Jack\LaunchBox\Core\BigBox.exe
else
WinActivate, ahk_exe BigBox.exeRun %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}
-
This is my finished script: it changes my sound card to TV, opens BigBox, switches to big box when in game and closes emulators using the Xbox 360 controller guide button.
It uses nircmd to switch the soundcard. It can be downloaded here, put it in the same folder as the autohotkey script: https://www.nirsoft.net/utils/nircmd.html
Furthermore, place a shortcut to the autohotkey script in the windows startup folder so that it runs when the computer starts.
Not sure why it is appearing as very hard to read gray text.
vk07:: Run %A_ScriptDir%\nircmd.exe setdefaultsounddevice "32W_LCD_TV" ; if !WinExist("ahk_exe BigBox.exe") Run C:\Users\Jack\LaunchBox\Core\BigBox.exe else WinActivate, ahk_exe BigBox.exe send {esc} WinClose, ahk_exe retroarch.exe WinClose, ahk_exe Dolphin.exe WinClose, ahk_exe pcsx2.exe
-
1 hour ago, JoeViking245 said:
if !WinExist("ahk_exe BigBox.exe")
Thanks Joe that works perfectly! I'm going to remove the WinClose and then setup the emulators to close when I press that button.
-
1
-
-
Hey,
I'm trying to create a script in Autohotkey that will map the Xbox 360 controller guide button to close any emulator and launch BigBox if it not running. If the BigBox window is running then the script should select BigBox.
I can't detect the BigBox window using WinExist.
Does anyone know where I am going wrong?
vk07:: WinClose A ; Run %A_ScriptDir%\nircmd.exe setdefaultsounddevice "32W_LCD_TV" ; sleep, 2000 ;(wait 2 seconds) If !WinExist("Launchbox Big Box") Run C:\Users\Jack\LaunchBox\Core\BigBox.exe else WinActivate, Launchbox Big Box send {esc}
The script changes my audio device to the TV and should select the BigBox window if it is running and if it is not then it should launch BigBox. This should allow me to close the running game and return to BigBox or launch BigBox all through the Xbox 360 Controller guide button.
Would really appreciate any help!
Jack
Launch PCem game exe from within win 98 (old win 95 98 games)
in Troubleshooting
Posted
I found the answer to my question here: https://forums.launchbox-app.com/topic/49175-integrate-vmware-or-virtualbox-in-lb/?tab=comments#comment-371645