Build Your Own Arcade Controls Forum

Front End Support => MaLa Frontend => Topic started by: telliouze on March 23, 2011, 03:55:44 am

Title: [SOLVED] Run an AHK script from Mala : error 193
Post by: telliouze on March 23, 2011, 03:55:44 am
Hi,

I try to launch Street Fighter IV from Mala, so I'm using an AutoHotKey script I found here on BYOAC :

Code: [Select]
#NoEnv
SendMode Input
SetWorkingDir C:\Program Files\CAPCOM\STREETFIGHTERIV\
Blockinput on
SetBatchLines -1
Gui +AlwaysOnTop -Caption +ToolWindow
Gui Color, 0
;Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, HSHIDE
Run, SF4Launcher.exe, , Max
WinWait, STREET FIGHTER IV LAUNCHER
IfWinNotActive, STREET FIGHTER IV LAUNCHER
WinWaitActive, STREET FIGHTER IV LAUNCHER
Send, {enter}
Blockinput off
Process, WaitClose, StreetFighterIV.exe
return
ESC::
Process, Close, StreetFighterIV.exe
ExitAPP
return

This AHK script is located in my "d:\borne\windows\" folder.

But when I try to launch via Mala ... I get error 193 (see attachment "error")

My Windows "Other Emu" tab is set up as seen in the 2 other attachments ...

I've tried many tweaks : in the script, in Mala ... and I can't get it to work.

Thanks for any help you can come with ... it's been very frustrating since it's the last thing I need to finish ma cab ...
Title: Re: Run an AHK script from Mala : error 193
Post by: empardopo on March 23, 2011, 02:11:29 pm
I'm not sure but perhaps you must convert your ahk file to .exe
Look for info in google!
Title: Re: Run an AHK script from Mala : error 193
Post by: telliouze on March 23, 2011, 02:15:52 pm
Well, the AHK file works OK outside Mala, why wouldn't it work inside it ?
Title: Re: Run an AHK script from Mala : error 193
Post by: empardopo on March 23, 2011, 02:30:18 pm
I can not tell why,but you could try. It's easy to compile a file.
You do not lose anything by trying. :-\
Title: Re: Run an AHK script from Mala : error 193
Post by: telliouze on March 23, 2011, 05:01:00 pm
You're right I must be a lazy bas****  ;) !!! I'll try that on friday and report !

Thanks a lot for your answers.
Title: Re: Run an AHK script from Mala : error 193
Post by: BadMouth on March 23, 2011, 09:32:51 pm
Don't remember the specifics of why, but try creating a shortcut to the AHK file & pointing MALA to that.
(the file type will be .lnk)
Title: Re: Run an AHK script from Mala : error 193
Post by: telliouze on March 24, 2011, 05:59:00 am
I think I've tried the shortcut thing but it didn't work, I had the same error ... thanks anyway.

Still on the scripting subject ... when I launch JoyToKey from an AHK script (or a batch) it totally ignores all my profiles and starts with a default config ... Is it a known bug ? And more important, is there a solution ?
Title: Re: Run an AHK script from Mala : error 193
Post by: empardopo on March 24, 2011, 06:28:35 am
I think that the best option is to compile your ahk file thus you don't need to install Autohotkey in your computer.
Greetings!
Title: Re: [SOLVED] Run an AHK script from Mala : error 193
Post by: telliouze on March 28, 2011, 03:21:48 am
OK, sorry for the late reply, but I just had time to test this on Sunday ... but it worked great, thanks a lot guys.