Atomiswave.ahk ;*********************************Atomiswave55**********************************
;Required - Settings.ini:
;
http://www.hyperspin-fe.com/forum/showp ... stcount=54" onclick="window.open(this.href);return false;
else if (systemName = "Atomiswave")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Blockinput on
SetDefaultMouseSpeed, 0
MouseGetPos X, Y
MouseMove %A_ScreenWidth%,-%A_ScreenHeight%
Gui +AlwaysOnTop -Caption +ToolWindow
Gui, color, 0
Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%,
IniRead, num_down, %emupath%settings.ini, %RomName%, Down_Count, 0
IniRead, system, %emupath%settings.ini, %RomName%, System, Atomiswave
IniRead, Screen_Timeout, %emupath%settings.ini, %Romname%, Screen_Timeout
Run, "%emupath%%executable%", Hide UseErrorLevel
winactivate %executable%
sleep, 1000 ; wait a moment for emulator to load
send, {AltDown}{AltUP}
send, {down}
sleep, 500
if (system = "Atomiswave")
{
send, {Down}
send, {Down}
send, {ENTER}
send, {DOWN %num_down%} ; send down keystroke to select rom
send, {ALTDOWN}{ENTER}{ALTUP}
send, {ENTER}
Sleep, %Screen_Timeout% ; sleep for defined amount of seconds in the settings.ini file for each rom before sending f8 key
send, {F8} ; Go full Screen
sleep, 1000
Gui Destroy
SetDefaultMouseSpeed, 2
Blockinput off
Process, WaitClose, %executable%
}
}
;*************************************Sega Naomi Demul55**************************
else if (systemName = "Sega Naomi Demul55")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Blockinput on
SetDefaultMouseSpeed, 0
MouseGetPos X, Y
MouseMove %A_ScreenWidth%,-%A_ScreenHeight%
Gui +AlwaysOnTop -Caption +ToolWindow
Gui, color, 0
Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%,
IniRead, num_down, %emupath%settings.ini, %RomName%, Down_Count, 0
IniRead, system, %emupath%settings.ini, %RomName%, System, Atomiswave
IniRead, Screen_Timeout, %emupath%settings.ini, %Romname%, Screen_Timeout
Run, "%emupath%%executable%", Hide UseErrorLevel
winactivate %executable%
sleep, 1000 ; wait a moment for emulator to load
send, {AltDown}{AltUP}
send, {down}
sleep, 500
if (system = "Atomiswave")
{
send, {Down}
send, {Down}
send, {ENTER}
send, {DOWN %num_down%} ; send down keystroke to select rom
send, {ALTDOWN}{ENTER}{ALTUP}
send, {ENTER}
Sleep, %Screen_Timeout%
send, {F8} ; Go full Screen
sleep, 1000
Gui Destroy
SetDefaultMouseSpeed, 2
Blockinput off
Process, WaitClose, %executable%
}
else if (system = "Atomiswave Load Decrypted")
{
;send, {AltDown}{AltUP}
send, {Down}
send, {Down}
send, {ENTER}
send, {shiftdown}{Tab}{Shiftup}
send, {Enter}
sleep, 1000
send, {shiftdown}{Tab}{Shiftup}
send, {shiftdown}{Tab}{Shiftup}
send, {DOWN %num_down%} ; send down keystroke to select rom
send, {ALTDOWN}{ENTER}{ALTUP}
send, {ENTER}
Sleep, %Screen_Timeout%
send, {F8} ; Go full Screen
sleep, 1000
Gui Destroy
Blockinput off
Process, WaitClose, %executable%
}
Else if (system = "Naomi")
{
send, {Down}
send, {ENTER}
send, {DOWN %num_down%} ; send down keystroke to select rom
send, {ALTDOWN}{ENTER}{ALTUP}
send, {ENTER}
Sleep, %Screen_Timeout%
send, {F8} ; Go full Screen
sleep, 1000
Gui Destroy
SetDefaultMouseSpeed, 2
Blockinput off
Process, WaitClose, %executable%
}
Else if (system = "Naomi Load Decrypted")
{
send, {Down}
send, {ENTER}
send, {shiftdown}{Tab}{Shiftup}
send, {ENTER}
sleep, 1000
send, {shiftdown}{Tab}{Shiftup}
send, {shiftdown}{Tab}{Shiftup}
send, {DOWN %num_down%} ; send down keystroke to select rom
send, {ENTER}
Sleep, %Screen_Timeout%
send, {F8} ; Go full Screen
sleep, 1000
Gui Destroy
SetDefaultMouseSpeed, 2
Blockinput off
Process, WaitClose, %executable%
}
Else if (system = "Hikaru")
{
send, {Down}
send, {Down}
send, {Down}
send, {ENTER}
send, {DOWN %num_down%} ; send down keystroke to select rom
send, {ENTER}
Sleep, %Screen_Timeout%
send, {F8} ; Go full Screen
sleep, 1000
Gui Destroy
SetDefaultMouseSpeed, 2
Blockinput off
Process, WaitClose, %executable%
}
Else if (system = "Hikaru Load Decrypted")
{
send, {Down}
send, {Down}
send, {Down}
send, {ENTER}
send, {shiftdown}{Tab}{Shiftup}
send, {ENTER}
sleep, 1000
send, {shiftdown}{Tab}{Shiftup}
send, {shiftdown}{Tab}{Shiftup}
send, {DOWN %num_down%} ; send down keystroke to select rom
send, {ENTER}
Sleep, %Screen_Timeout%
send, {F8} ; Go full Screen
sleep, 1000
Gui Destroy
SetDefaultMouseSpeed, 2
Blockinput off
Process, WaitClose, %executable%
}
}