Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: [SOLVED] Run an AHK script from Mala : error 193  (Read 4601 times)

0 Members and 1 Guest are viewing this topic.

telliouze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 13
  • Last login:January 30, 2013, 06:14:27 am
[SOLVED] Run an AHK script from Mala : error 193
« 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 ...
« Last Edit: March 28, 2011, 03:20:56 am by telliouze »

empardopo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 526
  • Last login:Today at 05:12:51 am
    • My personal forum
Re: Run an AHK script from Mala : error 193
« Reply #1 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!

telliouze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 13
  • Last login:January 30, 2013, 06:14:27 am
Re: Run an AHK script from Mala : error 193
« Reply #2 on: March 23, 2011, 02:15:52 pm »
Well, the AHK file works OK outside Mala, why wouldn't it work inside it ?

empardopo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 526
  • Last login:Today at 05:12:51 am
    • My personal forum
Re: Run an AHK script from Mala : error 193
« Reply #3 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. :-\

telliouze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 13
  • Last login:January 30, 2013, 06:14:27 am
Re: Run an AHK script from Mala : error 193
« Reply #4 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.

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9270
  • Last login:July 14, 2025, 01:30:54 pm
  • ...
Re: Run an AHK script from Mala : error 193
« Reply #5 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)

telliouze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 13
  • Last login:January 30, 2013, 06:14:27 am
Re: Run an AHK script from Mala : error 193
« Reply #6 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 ?

empardopo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 526
  • Last login:Today at 05:12:51 am
    • My personal forum
Re: Run an AHK script from Mala : error 193
« Reply #7 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!

telliouze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 13
  • Last login:January 30, 2013, 06:14:27 am
Re: [SOLVED] Run an AHK script from Mala : error 193
« Reply #8 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.