Jump to content
LaunchBox Community Forums

PCSX2 and AHK launch error in launchbox


atalec

Recommended Posts

Hi, 

I need your help with my pcsx2 games. When I launch it by Launchbox with a AHK script, I have this error

pcsx2.thumb.png.313bbcf1c2b2929221581489183936cf.png

If I launch directly Iso file without use an AHk, the game launch correctly, I tried with Bin and Cue and it doesn't work

This is my AHK script 

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

#SingleInstance Force 

	Process,Close,Lightgun.exe
    Run,taskkill /im "Lightgun.exe" /F
	sleep,2000

Run, D:\LaunchBox\Sinden\Sinden Wii\Lightgun.exe, ,Min
sleep, 2000

Run, D:\LaunchBox\Emulateurs\PCSX2 Nightly Shooter\pcsx2-qt.exe "E:\Games\PCSX2\Crisis Zone.iso", D:\LaunchBox\Emulateurs\PCSX2 Nightly Shooter
Sleep 5000

Esc::
Process, Close, pcsx2-qt.ex
Run,taskkill /im "pcsx2.exe-qt" /F
ExitApp

If I launch my game directly on PCSX2, it works fine

Thx for your help

Link to comment
Share on other sites

Looks like it's saying that pcsx2 can't run an AHK script.

What I suspect you're essentially doing right now is:

pcsx2-qt.exe "E:\Games\PCSX2\CZ.ahk"

Which of course doesn't work.  You need to have that game NOT use an emulator, and just run the script.  If you have AutoHotkey installed on your computer, it should work this way.

If you don't have AutoHotkey installed, you'll need to go another route.

 

If you simply double-click CZ.ahk in Windows Explorer, does it all run correctly?

Link to comment
Share on other sites

1 hour ago, atalec said:

If I launch directly the AHK on windows, it works

OK.  Well, I assume when you edit that game (Crisis Zone) in LaunchBox, in the Launching section, ROM file it pointing to "E:\Games\PCSX2\CZ.ahk".

Go to the Emulation section and un-check Use an emulator to play this game (primarily for console games).

Save and close.  Click Play and it should now launch the AHK script directly, just as it had done from Windows Explorer. 

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.

Guest
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...