The NEW Build Your Own Arcade Controls
Front End Support => MaLa Frontend => Topic started by: Garetmax on March 21, 2011, 10:08:11 pm
-
Hi,
I'd like to use AutoHotKey to shut down some of my emulators, specifically Nebula and Visual Pinball 8 and 9.
I use an X-arcade tankstick and have moved a couple buttons around and re-configured them.
I have a button mapped to ] that I want to map to Alt-F4.
I've tried closemul and it simply does not work for me as it does others.
I've tried Mala hotkeys mapping and that also does not work on these emulators.
I want a simple autohotkey script that only loads for those emulators when I'm in them and then closes when that emulator is closed.
Here's what I have in my CloseEmu.AHK file so far that I found on the web but I don't know what I'm doing.
]::Send !{f4}
ExitAPP
return
How do I get an AHK file to run in the pre and post commands sections?
Also, I have a windows 7 computer now, so I don't know if batch files work anymore. I haven't tried my daphne batch files and emulator yet. I'm still getting this computer and Mala up and running again.
Thanks,
Scott
:)
-
I tried a bunch of things but just couldn't get this type of AHK that remaps keys to work. I'm sure others with more knowledge could get it working.
It would lauch in the precommand window and then hang there. I'm thinking maybe there's some kind of focus issue or something. If I try launching again a couple more times then it works.
One thing for sure is that an AHK has to be converted to an exe for Mala to run it.
I ended up trying Closemul again and it worked. The ascii code I needed for ] is 93 so I just needed to put that in there. I'm not sure why it didn't work the first time as I did that previously.
Also, batch files on windows don't work either. I downloaded a little bat to exe conversion program and that works great.
-
Just use the ifwinactive command and make sure ahk to load on start(so you don't need to compile or do anything in mala), here's an example
#IfWinActive ahk_class Project64 Version 1.6
[::Escape
#IfWinActive ahk_class KegaClass
[::Send !{F4}
So you tell ahk if a certain window/app comes active, it should use the following key remaps or commands. To know the name of the app window you can use Window spy that comes with ahk. If the app doesn't have a key to exit it, you can use Send !{F4} (being alt+F4 as you already know)
Hope this helps
-
I've got it partially working but have a problem with it.
Here's the script I've got and it loads in my startup folder as EmuExit.AHK and is running in the taskbar.
#IfWinActive ahk_class WinZincWnd
]::Escape
I'm using windows-7 32 bit and the emulator I'm trying to exit is Zinc. For Zinc I'm using Howard Castro's wrapper cmd-launch7.exe to launch zinc and the games and that's working great.
Here's my executable:
C:\Emulators\Programs\Sony - Zinc\cmd-launch7.exe
Here's my command line:
%rom%
I'm not using any Mala hotkeys.
If I go into a game and then hit my hotkey ] it will exit to Mala and looks fine.
The problem is that none of my Zinc games launch again. It doesn't matter if I close the script or even close and restart Mala. I have to completely reboot my computer and turn off the autohotkey to go into the Zinc games again.
What else would I need to add to the script?
Thanks,
Scott
-
By the way. I'm running a Window 7 64 bit with X-Arcade Dual tankstick and Mala.
Daphne batch files work
I'm running Nebula's Sega Model 2. I use hotkeys to Escape and go back to Mala.
Go to Other Emu Config/Options/Edit Hotkeys
Create a "Close" function/name. In the field "Source" make it grey by clicking. Then assign any X-Arcade keystroke you want to. The only trouble I'm having is trying to assign two simulataneous keystrokes to be the new ESC key. This should send you right back to Mala.
-
Hi,
I'd like to use AutoHotKey to shut down some of my emulators, specifically Nebula and Visual Pinball 8 and 9.
I use an X-arcade tankstick and have moved a couple buttons around and re-configured them.
I have a button mapped to ] that I want to map to Alt-F4.
I've tried closemul and it simply does not work for me as it does others.
I've tried Mala hotkeys mapping and that also does not work on these emulators.
I want a simple autohotkey script that only loads for those emulators when I'm in them and then closes when that emulator is closed.
Here's what I have in my CloseEmu.AHK file so far that I found on the web but I don't know what I'm doing.
]::Send !{f4}
ExitAPP
return
How do I get an AHK file to run in the pre and post commands sections?
Also, I have a windows 7 computer now, so I don't know if batch files work anymore. I haven't tried my daphne batch files and emulator yet. I'm still getting this computer and Mala up and running again.
Thanks,
Scott
:)
Hi, you could take a look to AllInOne!
-
I was having the same problems, but got it solved here: http://forum.arcadecontrols.com/index.php?topic=118795.0 (http://forum.arcadecontrols.com/index.php?topic=118795.0)