Main > Software Forum
Atari Jaguar I need an ESC Cab friendly emu hack Jcrouse or any one else?
Nologic:
Your welcome
mrclean:
at the end of the day im retarded when it comes to creating just about anything and would appreciate it if someone has the actual hacked emu they can just upload and last time i used one of the jag's it had no sound.
headkaze:
Is it possible for AutoIt scripts to read parameters passed to the exe? If it can use variables like %1% and %2% can in batch files then someone could compile the script for him so he can use it with any emu.
Ie. SetKillEsc.exe myemu.exe
or even add another variable so you can set the actual key via command line argument
Ie. SetKillKey.exe myemu.exe {ESCAPE}
Howard_Casto:
You don't have to create anything... headkaze gave you a script that'll work. Save it to a file, download autoit and you are good to go.
I don't think you realize how hard it is to hack an emu, it's far easier to make a wrapper. Any of the "hacked" emus out there weren't hacked, they either had their source code modified or their cfg file was altered using a hex editor.
If you don't even know of a working jaguar emulator then why did you even ask? We can't magically get sound emulation working for you ya know.
headkaze the easiest solution is to just download my generic command line wrapper, it does the same thing. But yes ahk does support command line parameters. They are stored as numbers, with %0% being the number of commands passed.
Nologic:
Two command lines options...first the Emu...then the Button...both are required.
--- Code: ---; Basic AutoIt script to close an emulator using ESC
$Emu = $CmdLine[1] ; EMU Executable
$Key = $CmdLine[2] ; Kill Key
; Run the Emulator
$pid = Run( @ScriptDir & '\' & $emu )
HotKeySet ( $Key , 'close_emu' )
; Kill the Emulator
Func close_emu ()
If ProcessExists ( $pid ) = 0 Then Exit
Send ( '{ALTDOWN}{F4}{ALTUP}' )
Sleep (500)
If ProcessExists ( $pid ) = 0 Then Exit
WinClose ( $title )
Sleep (500)
If ProcessExists ( $pid ) = 0 Then Exit
ProcessClose ( $pid )
Exit
EndFunc
; Main Loop
While 1
$title = WinGetTitle('')
If ProcessExists ( $pid ) = 0 Then Exit
Sleep (500)
WEnd
; EOF
--- End code ---
Navigation
[0] Message Index
[*] Previous page
Go to full version