Jump to content
LaunchBox Community Forums

Better Beahving PCSX2 with Autohotkey Script


Recommended Posts

Hey peeps

I had been having a little issue with the PS2 Emulator PCSX2, to keep it short you have maybe noticed that it seems to lose focus when launched through bigbox and it was quite frankly driving me nuts when I would start smashing the x button on my ps4 controller to get through opening scenes only to find that big box had then launched several instances of PCSX2.


After a bit of fiddling I decided to tackle this issue with an Autohotkeyscript which has completely fixed the issue for me so I thought I would share it with you guys. Place this in the autohotscript tab for PCSX2 and you will no longer have this issue, with the added bonus of your PS4/Xbox Guide buttons for your controller exiting out of the emulator and re focussing either launchbox or bigbox.



Sleep 2000
;Attempt to Focus PCSX2 window (Ive noticed that PCSX2 seems to lose focus)
IfWinExist, PCSX2
    WinActivate ; use the window found above

;This closes the active window when the ps4 button is pressed provided it is not
;the launchbox/bigbox window.
ExitButton = vk07sc000
Loop {
    If (GetKeyState(ExitButton)) {
        WinGetActiveTitle, WindowTitle
        If (WindowTitle != "Launchbox Big Box"){
            WinKill, %WindowTitle%
            IfWinExist Launchbox Big Box
            else IfWinExist Launchbox Premium


Hope this helps some of you guys/gals out


Have fun

Edited by AGEE1981
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...