guida ad hyperspin

Frontend per cabinati... chi, cosa, come!!!
Avatar utente
poiu
Nostalgico
Nostalgico
Messaggi: 377
Iscritto il: 03/02/2010, 1:31
Medaglie: 8
Reputation: 4
Città: prato
:
Gold Medal Silver Medal

guida ad hyperspin

Messaggio da poiu » 16/03/2011, 19:25

ciao a tutti ho finito il mio cab con l'hyperspin....
questo è quello che ho fatto,il tutto è 410 giga e tutti gli emu che vedete sono funzionanti al 100%
http://www.youtube.com/watch?v=zvQVo1f4oJM
questo è il mio file ahk che è dentro la directory del front per chi fosse interessato lo puo copiare
per copiarlo o fate edit su quello che avete copia e incolla o aprite notepad copiate tutto lo salvate dandogli l'estensione ahk poi tasto destro del mouse sul file e cliccate su compile creerà un exe
ricordatevi che deve sempre stare dentro la directory del front e ad ogni modifica dare compile
/**
* HyperLaunch Version 1.05
* Autohotkey script by BadBoyBill badboybill@hyperspin-fe.com
* CursorHide by Lazlo
* Integrated FreeDO wrapper by brian_hoffman
*
* If you are reading this and do not have autohotkey you can get it
* @ http://www.autohotkey.com/download/
* If you would like to modify this script and share it thats OK, but
* see if your modification is something that we would like to add
* to the official version.
*
* Refer to the autohotkey documentation for the keyoboard keylist
*
* If this script does not support your favorite emulator
* then please request support @ http://www.hyperspin-fe.com/forum
*
* :Supported emulators:
* :System: :Emulators:
*rca studio 2...........................mess.exe
*wonder color...........................Oswan.exe
*wonder mono............................Oswan.exe
*neo geo cd.............................neoraine32.exe
*pcfx...................................pce.exe
*turbografx cd..........................pcfx.exe
*arcadia 2001...........................mess.exe
*aae....................................aae.exe
*creativision...........................mess.exe
*game boy color.........................visualboyadvance.exe
*game boy...............................visualboyadvance.exe
*sega sg1000............................Fusion.exe
*zx spectrum............................mess.exe
*vectrex................................mess.exe
*adventure vision.......................mess.exe
*famicom disk...........................nestopia.exe
*channel f..............................mess.exe
*astrocade..............................mess.exe
*gx4000.................................mess.exe
*super vision...........................mess.exe
*odissey................................mess.exe
*intellivision..........................nostalgia.exe
*colecovision...........................mess.exe
*Atomiswave.............................demul.exe
*atari jaguar...........................PT.exe
*CPS3...................................emulator.exe
*sega naomi.............................naomi.exe
*Atari 7800.............................messpp.exe
*Atari 2600.............................messpp.exe
*Atari 5200.............................messpp.exe
*Atari Lynx.............................handy.exe
*Daphne.................................daphne.exe
*Future Pinball.........................Future Pinball.exe
*Gameboy Advance........................visualboyadvance.exe
*Gameboy................................visualboyadvance.exe
*Gameboy Color..........................visualboyadvance.exe
*MAME...................................mame.exe
*Neo Geo................................mame.exe
*Neo Geo Pocket Color...................NeoPop-Win32.exe
*Nintendo 64............................project64.exe
*Nintendo Entertainment System..........nestopia.exe
*Panasonic 3DO..........................FreeDO.exe
*Sega 32X...............................fusion.exe
*Sega CD................................fusion.exe
*dreamcast..............................nullDC_100b1_6.exe
*Sega Game Gear.........................fusion.exe
*Sega Genesis...........................fusion.exe
*Sega Master System.....................fusion.exe
*Sony Playstation.......................psxfin.exe
*Super Nintendo Entertainment System....zsnesw.exe
*TurboGrafx 16..........................Ootake.exe
*Zinc...................................zinc.exe
*JukeBox................................silverjuke.exe
*JukeBox................................SKJukebox.exe
*
*
*/

#SingleInstance force ;Prevent multiple instances
#InstallKeybdHook
SetTitleMatchMode 2

;------------------------------------------------------------------------------;
; MAIN SETTINGS ;
;------------------------------------------------------------------------------;

;[UNIVERSAL HOTKEYS] ;SEPERATE MULTIPLE KEYS WITH &(ampersand) up to 2 keys.
exitScriptKey = q & s ;Secret hotkey(s) to exit script if needed
;Not to be confused with exit emulator keys

exitEmulatorKey = Esc ;This key/key combo will close any emulators
;that do not have normal closing methods.

toggleCursorKey = t ;hotkey(s) to show or hide cursor if needed
;when hideCursor below is true

;[MOUSE CURSOR]
hideCursor = false ;Automatically hide cursor during script
;WARNING: Make sure ALL your emu's are running fine
;before setting this to true as a precaution.*

;[WINDOWS]
hideDesktop = true ;Attempts to hide desktop with black screen, might help
;on some emu's for hiding launching windows.

hideTaskbar = false ;Hide the windows taskbar when running emu's.
;WARNING: Make sure ALL your emu's are running fine
; before setting this to true as a precaution.*

daemontools = "C:\Programmi\DAEMON Tools Lite\DTLite" ;Hide the windows taskbar when running emu's.
;WARNING: Make sure ALL your emu's are running fine
; before setting this to true as a precaution.*

/*
*:If for some weird reason the script hangs follow these steps to get back to normal.
1. If an emulator hangs up or cant load your game then first try to exit the emu
by pressing your Emulator exit hotkey above.
2. If your emu exited but your mouse cursor is gone use your cursor toggle hotkey.
3. Next try to exit the script by pressing your Exit Script Hotkey above. This
will also bring back your cursor and taskbar is they are set to true.
*/







;*******************************************************************************
;* EDIT BELOW THIS POINT AT YOUR OWN RISK *
;*******************************************************************************

;------------------------------------------------------------------------------;
; GET PARAMATERS AND SET HOTKEYS ;
;------------------------------------------------------------------------------;

;CHECKING FOR 2 PARAMS, IF NOT THEN EXIT
if 0 < 2
{
MsgBox Usage: HyperLaunch.ahk/exe "System Name" "Rom Name"
ExitApp
}

systemName = %1%
romName = %2%

Hotkey, %exitScriptKey%, ExitScript
if (hideCursor = "true")
{
Hotkey, %toggleCursorKey%, ToggleCursor
SystemCursor("Off")
}

WinClose, cmd.exe
;------------------------------------------------------------------------------;
; GET AND CHECK PATHS ;
;------------------------------------------------------------------------------;
GoSub, CheckINI
IniRead, iniEmuPath, %A_ScriptDir%\Settings\%systemName%.ini, exe info, path
emuPath := GetFullName(iniEmuPath)
IniRead, iniRomPath, %A_ScriptDir%\Settings\%systemName%.ini, exe info, rompath
romPath := GetFullName(iniRomPath)
IniRead, executable, %A_ScriptDir%\Settings\%systemName%.ini, exe info, exe
IniRead, romExtensions, %A_ScriptDir%\Settings\%systemName%.ini, exe info, romextension

romExtension =
GoSub, CheckPaths

;------------------------------------------------------------------------------;
; RUN SYSTEM ;
;------------------------------------------------------------------------------;


;****************************rca studio 2***************************
if (systemName = "rca studio 2" && (executable = "mess.exe" || executable = "mess.exe"))
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% studio2 -cart "%romPath%%romName%%romExtension%" -skip_gameinfo -nowindow -nonewui, %emuPath%
}
;****************************wonder color**************************
else if (systemName = "wonder color" && executable = "Oswan.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, "%EmuPath%%Executable%" -fs "%romPath%%romName%%romExtension%", Hide UseErrorLevel
}
;*****************************wonder mono**************************
else if (systemName = "wonder mono" && executable = "Oswan.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, "%EmuPath%%Executable%" -f "%romPath%%romName%%romExtension%", Hide UseErrorLevel
}
;******************************neo geo cd**************************
else if (systemName = "neo geo cd" && executable = "neoraine32.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %emuPath%%Executable% "%romPath%%romName%%romExtension%" -nogui, Hide UseErrorLevel
Process, WaitClose, neoraine32.exe
}
;********************************pcfx******************************
else if (systemName = "pcfx" && executable = "pcfx.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %DAEMONTOOLS% -mount 0`,"%romPath%%romName%%romExtension%"
RunWait, "%EmuPath%%Executable%" -cd,UseErrorLevel
}
;*********************************turbografx cd*********************
else if (systemName = "turbografx cd" && executable = "pce.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %DAEMONTOOLS% -mount 0`,"%romPath%%romName%%romExtension%"
RunWait, "%EmuPath%%Executable%" -cd,UseErrorLevel
}
;**********************************arcadia 2001********************
else if (systemName = "arcadia 2001" && (executable = "messui.exe" || executable = "mess.exe"))
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% arcadia -cart "%romPath%%romName%%romExtension%" -skip_gameinfo -nowindow -nonewui, %emuPath%
}
;***************************************aae************************
else if (systemName = "aae" && executable = "aae.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %Executable% %romName%, %EmuPath%, Hide UseErrorLevel
}
;**********************************creativision********************
else if (systemName = "creativision" && (executable = "mess.exe" ))
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% crvision -cart "%romPath%%romName%%romExtension%" -skip_gameinfo -nowindow -nonewui, %emuPath%
}
;********************************game boy color********************
else if (systemName = "game boy color" && executable = "visualboyadvance.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, "%emuPath%%executable%" "%romPath%%romName%%romExtension%", UseErrorLevel
}
;********************************game boy**************************
else if (systemName = "game boy" && executable = "visualboyadvance.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, "%emuPath%%executable%" "%romPath%%romName%%romExtension%", UseErrorLevel
}
;***********************************sega sg1000********************
else if (systemName = "sega sg1000" && executable = "Fusion.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %Executable% "%romPath%%romName%%romExtension%" -auto -sg -fullscreen, %EmuPath%, Hide UseErrorLevel
Process, WaitClose, fusion.exe
}
;**********************************zx spectrum**********************
else if (systemName = "zx spectrum" && (executable = "mess.exe" ))
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% spectrum -cart "%romPath%%romName%%romExtension%" -skip_gameinfo -nowindow -nonewui, %emuPath%
}
;**********************************vectrex**************************
else if (systemName = "vectrex" && (executable = "mess.exe" ))
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% vectrex -cart "%romPath%%romName%%romExtension%" -skip_gameinfo -nowindow -nonewui, %emuPath%
}
;**********************************adventure vision*****************
else if (systemName = "adventure vision" && (executable = "messui.exe" || executable = "mess.exe"))
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% advision -cart "%romPath%%romName%%romExtension%" -skip_gameinfo -nowindow -nonewui, %emuPath%
}
;**********************************famicom disk*********************
else if (systemName = "famicom disk" && executable = "Nestopia.exe")
{
Gui, Color, 000000
Gui -Caption +ToolWindow +AlwaysOnTop
Gui, Show, W%A_ScreenWidth% H%A_ScreenHeight%, BlackGui
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %executable% "%romPath%%romName%%romExtension%", %emuPath%, UseErrorLevel
Sleep, 2000
Gui, destroy
Process, waitClose, %executable%
exitapp
}
;**********************************channel f*************************
else if (systemName = "channel f" && (executable = "messui.exe" || executable = "mess.exe"))
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% channelf -cart "%romPath%%romName%%romExtension%" -skip_gameinfo -nowindow -nonewui, %emuPath%
}
;**********************************astrocade*************************
else if (systemName = "astrocade" && (executable = "messui.exe" || executable = "mess.exe"))
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% astrocde -cart "%romPath%%romName%%romExtension%" -skip_gameinfo -nowindow -nonewui, %emuPath%
}
;**********************************gx4000****************************
else if (systemName = "gx4000" && (executable = "messui.exe" || executable = "mess.exe"))
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% gx4000 -cart "%romPath%%romName%%romExtension%" -skip_gameinfo -nowindow -nonewui, %emuPath%
}
;**********************************super vision**********************
else if (systemName = "super vision" && (executable = "messui.exe" || executable = "mess.exe"))
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% svision -cart "%romPath%%romName%%romExtension%" -skip_gameinfo -nowindow -nonewui, %emuPath%
}
;*************************************odissey*************************
else if (systemName = "odissey" && (executable = "messui.exe" || executable = "mess.exe"))
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% Odyssey2 -cart "%romPath%%romName%%romExtension%" -skip_gameinfo -nowindow -nonewui, %emuPath%
}
;**********************************intellivision**********************
else if (systemName = "intellivision" && executable = "nostalgia.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% "%romPath%%romName%%romExtension%", %emuPath%, UseErrorLevel
}
;**********************************colecovision***********************
else if (systemName = "Colecovision" && (executable = "messui.exe" || executable = "mess.exe"))
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% coleco -cart "%romPath%%romName%%romExtension%" -skip_gameinfo -nowindow -nonewui, %emuPath%
}
;***********************************Atomiswave*************************
;Required - Settings.ini:
; http://www.hyperspin-fe.com/forum/showp ... tcount=113
else if (systemName = "Atomiswave" && executable = "demul.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
;Blockinput on

;\\\optional plain black screen\\\
;Gui +AlwaysOnTop -Caption +ToolWindow
;Gui, color, 0
;Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, HSHIDE

;\\\Please Wait Loading Screen change size,color,font,background color,what you want to say\\\
IniRead, Long_RomName, %emupath%settings.ini, %Romname%, Long_RomName
WinHide ahk_class Shell_TrayWnd
guiheight:=A_ScreenHeight/9*4
Gui, +toolwindow -Caption +AlwaysOnTop
Gui, Color, black
Gui, Font, S24 Cred, verdanna
Gui, Add, Text, y%guiheight% W%A_ScreenWidth% H%A_ScreenHeight% Center, Please Wait! Now Loading...`n %systemnane%`n`n"%Long_RomName%" ;"%romname%"
Gui, Show, W%A_ScreenWidth% H%A_ScreenHeight%,

IniRead, system, %emupath%settings.ini, %RomName%, System,
IniRead, Screen_Timeout, %emupath%settings.ini, %Romname%, Screen_Timeout
IniRead, LoadDecrypted, %emupath%settings.ini, %Romname%, LoadDecrypted

;\\\This section swaps out controls for different game types\\\
demul_controller_code = 16777216
demul_mouse_code = 131072
demul_keyboard_code = 1073741824
demul_lightgun_code = -2147483648
IniRead, controls, %emupath%settings.ini, %RomName%, controls, standard
IniRead, current_device, %emupath%demul.ini, PORTB, device, demul_controller_code
IniRead, current_controls, %emupath%padDemul.ini, CONTROL_TYPE, CONTROL_TYPE, standard
If(controls = "standard" && (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%SFSTYLE_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "sfstyle" && (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%SFSTYLE_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "ggxstyle" && (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%SFSTYLE_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "reverse" && (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%SFSTYLE_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "driving" && (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%SFSTYLE_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "fps" && (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%SFSTYLE_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "samba" && (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%SFSTYLE_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "lightgun" && (current_device != demul_mouse_code or current_controls != controls))
{
filecopy, %emupath%SFSTYLE_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_mouse_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "keyboard" && (current_device != demul_keyboard_code or current_controls != controls))
{
filecopy, %emupath%SFSTYLE_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_keyboard_code%, %emupath%demul.ini, PORTB, device
}

;\\\add sounds\\\
;sounds go in demul directory change to .mp3 if desired or specify a directory of sounds for "romname"
;soundplay, %A_ScriptDir%\%systemame%.wav
;soundplay, %A_ScriptDir%\%Romname%.wav
;soundplay, %A_ScriptDir%\%anyname%.wav

If (LoadDecrypted = "false")
{
Run, %emupath%%executable% -run=%system% -rom=%Romname%
sleep, %Screen_Timeout%
send, {ALTDOWN}{ENTER}{ALTUP} ; Go full Screen demul 56
Blockinput off
sleep, 1000
Gui Destroy
winactivate, DEMUL
Process, WaitClose, %executable%
}
else if (LoadDecrypted = "true")
{

Run, %emupath%%executable% -run=%system% -rom=%Romname%
send, {Down 2}
send, {ENTER}
send, {shiftdown}{Tab}{Shiftup}
send, {Enter}
sleep, 2000
clipboard=
clipboard=%A_ScriptDir%\%romName%
ClipWait
Sleep,100
Send,^v
Sleep,100
send, {ENTER}
sleep, %Screen_Timeout%
send, {ALTDOWN}{ENTER}{ALTUP} ; Go full Screen demul 56
Blockinput off
sleep, 1000
Gui Destroy
winwaitactive, DEMUL
Process, WaitClose, %executable%
}
}
;**********************************atari jaguar**********************
else if (systemName = "atari jaguar" && executable = "PT.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, "%EmuPath%%Executable%",,Hide UseErrorLevel
DetectHiddenWindows, on
sleep, 500
WinActivate, Project Tempest
WinWait, Project Tempest,
Send, {ALTDOWN}{ALTUP}fo
WinWait, Open ROM File,
IfWinNotActive, Open ROM File, , WinActivate, Open ROM File,
WinWaitActive, Open ROM File,
sleep, 500
clipboard=
clipboard=%romPath%%romName%%romExtension%
ClipWait
Sleep,100
Send,^v
Sleep,100
send, {ENTER}
WinWait, Project Tempest,
IfWinNotActive, Project Tempest, , WinActivate, Project Tempest,
WinWaitActive, Project Tempest,
Process, WaitClose, PT.exe
winactivate, hyperspin.exe
}
;***********************************CPS3****************************
else if (systemName = "CPS3")
{
if(executable = "emulator.exe" )
{
;hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess, ExitScript
Run, %executable% %romName%, %emuPath%, Hide UseErrorLevel
DetectHiddenWindows, on
WinWait, Capcom Play System 3 Emulator
WinShow
Process, WaitClose, %executable%
}
}
;************************sega naomi***********************************************
else if (systemName = "sega naomi" && executable="naomi.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
IniRead, Xram, %emupath%settings.ini, %RomName%, Xram, 2PH
IniRead, Region, %emupath%settings.ini, %RomName%, Region, 0
If (Xram = "1ph"){
filecopy, %emupath%1PH_xram.bin, %emupath%xram.bin, 1
IniWrite, %Region%, %emupath%NAOMI.ini, Settings, Region
}
Else if(Xram = "1pv"){
filecopy, %emupath%1PV_xram.bin, %emupath%xram.bin, 1
IniWrite, %Region%, %emupath%NAOMI.ini, Settings, Region
}
Else if(Xram = "2pv"){
filecopy, %emupath%2PV_xram.bin, %emupath%xram.bin, 1
IniWrite, %Region%, %emupath%NAOMI.ini, Settings, Region
}
Else{
filecopy, %emupath%2PH_xram.bin, %emupath%xram.bin, 1
IniWrite, %Region%, %emupath%NAOMI.ini, Settings, Region
}
Run, "%emupath%%executable%" "%romPath%%romName%%romExtension%", %emuPath%, Hide UseErrorLevel
Process, WaitClose, %executable%
}
;**********************************ATARI 7800**********************
else if (systemName = "Atari 7800" && (executable = "messpp.exe" || executable = "mess.exe"))
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% a7800 -cart "%romPath%%romName%%romExtension%" -skip_gameinfo -nowindow -nonewui, %emuPath%, Hide UseErrorLevel
}
;**********************************ATARI 2600**********************
else if (systemName = "Atari 2600" && (executable = "messpp.exe" || executable = "mess.exe"))
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% a2600 -cart "%romPath%%romName%%romExtension%" -skip_gameinfo -nowindow -nonewui, %emuPath%, Hide UseErrorLevel
}
;**********************************ATARI 5200**********************
else if (systemName = "Atari 5200" && (executable = "messpp.exe" || executable = "mess.exe"))
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% a5200 -cart "%romPath%%romName%%romExtension%" -skip_gameinfo -nowindow -nonewui, %emuPath%, Hide UseErrorLevel
}
;**********************************ATARI Lynx**********************
else if (systemName = "Atari Lynx" && executable = "handy.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% "%romPath%%romName%%romExtension%", %emuPath%, UseErrorLevel
}
;************************************DAPHNE*************************
else if (systemName = "Daphne" && executable = "daphne.exe"){
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
daphneParams = vldp -fullscreen -x 640 -y 480 -nohwaccel -framefile
frameFilePath = %romPath%%romName%%romExtension%
RunWait, %executable% %romName% %daphneParams% %frameFilePath%, %emuPath%, UseErrorLevel
}
;********************************GAMEBOY ADVANCE********************
else if (systemName = "Gameboy Advance" && executable = "visualboyadvance.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, "%emuPath%%executable%" "%romPath%%romName%%romExtension%", UseErrorLevel
}
;********************************GAMEBOY********** ******************
else if (systemName = "Gameboy" && executable = "visualboyadvance.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, "%emuPath%%executable%" "%romPath%%romName%%romExtension%", UseErrorLevel
}
;********************************GAMEBOY COLOR************************
else if (systemName = "Gameboy Color" && executable = "visualboyadvance.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, "%emuPath%%executable%" "%romPath%%romName%%romExtension%", UseErrorLevel
}
;********************************Future Pinball************************
else if (systemName = "Future Pinball" && executable = "Future Pinball.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Runwait, "%emuPath%%executable%" /open "%romPath%%romName%%romExtension%" /play /exit %emuPath%, Hide UseErrorLevel
}
;*************************************MAME******************************
else if (systemName = "MAME" && executable = "mame.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Runwait, %executable% %romName%, %EmuPath%, Hide UseErrorLevel
Process, waitClose, %executable%
exitapp
}
;***********************************NEO GEO*****************************
else if (systemName = "Neo Geo" && executable = "mame.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% "%romName%", %emuPath%, Hide UseErrorLevel
}
;*****************************NEO GEO POCKET COLOR**********************
else if (systemName = "Neo Geo Pocket Color" && executable = "NeoPop-Win32.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% "%romPath%%romName%%romExtension%", %emuPath%, UseErrorLevel
}
;***********************************NINTENDO 64**************************
else if (systemName = "Nintendo 64" && executable = "Project64.exe")
{
hideDesktop()
Sleep, 2000
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% "%romPath%%romName%%romExtension%", %emuPath%, Hide UseErrorLevel
}
;****************************NINTENDO ENTERTAINMENT SYSTEM****************
else if (systemName = "Nintendo Entertainment System" && executable = "Nestopia.exe")
{
Gui, Color, 000000
Gui -Caption +ToolWindow +AlwaysOnTop
Gui, Show, W%A_ScreenWidth% H%A_ScreenHeight%, BlackGui
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %executable% "%romPath%%romName%%romExtension%", %emuPath%, UseErrorLevel
Sleep, 2000
Gui, destroy
Process, waitClose, %executable%
exitapp
}
;***********************************Panasonic 3DO***********************
else if (systemName = "Panasonic 3DO" && executable = "FreeDO.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, "%EmuPath%%Executable%",,Hide UseErrorLevel
DetectHiddenWindows, on
WinShow, FreeDO Beta 1.6.2
WinWait, FreeDO Beta 1.6.2
ControlSend, , {F4}, FreeDO Beta 1.6.2
WinWaitActive, FreeDO Beta 1.6.2
SendInput, {ALTDOWN}f{ALTUP}{ENTER}
IfWinNotActive, Open, Common Places Host W
WinActivate, Open, Common Places Host W
WinWaitActive, Open, Common Places Host W
clipboard=
clipboard=%romPath%%romName%%romExtension%
ClipWait
Sleep,100
Send,^v
Sleep,100
send, {ENTER}
WinWait, FreeDO Beta 1.6.2
IfWinNotActive, FreeDO Beta 1.6.2, , WinActivate, FreeDO Beta 1.6.2,
WinWaitActive, FreeDO Beta 1.6.2,
SendInput, {ALTDOWN}c{ALTUP}{ENTER}{ENTER}
Process, WaitClose, FreeDO.exe
}
;***********************************SEGA 32X*************************
else if (systemName = "Sega 32X" && executable = "Fusion.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %Executable% "%romPath%%romName%%romExtension%" -auto -32X -fullscreen, %EmuPath%, Hide UseErrorLevel
Process, WaitClose, fusion.exe
}
;***********************************SEGA CD**************************
else if (systemName = "Sega CD" && executable = "Fusion.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %Executable% "%romPath%%romName%%romExtension%" -auto -scd -fullscreen, %EmuPath%, Hide UseErrorLevel
Process, WaitClose, %Executable%
exitapp
}
;*********************************dreamcast********************************
else if (systemName = "dreamcast" && executable = "nullDC_100b1_6.exe")
{
hideDesktop()
Run, %Executable% -config nulldc:Emulator.AutoStart=1 -config ImageReader:DefaultImage="%romPath%%romName%%romExtension%" -config ImageReader:loadDefaultImage=1 -config drkpvr:Fullscreen.Enabled=1, %EmuPath%, Hide UseErrorLevel
Process, wait, %Executable%, 10
Hotkey, %exitEmulatorKey%, CloseProcess
Process, waitclose, %Executable%
}
;*********************************SEGA Game Gear********************************
else if (systemName = "Sega Game Gear" && executable = "Fusion.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %Executable% "%romPath%%romName%%romExtension%" -auto -sms -fullscreen, %EmuPath%, Hide UseErrorLevel
Process, WaitClose, fusion.exe
}
;*********************************SEGA Genesis**********************************
else if (systemName = "Sega Genesis" && executable = "Fusion.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %Executable% "%romPath%%romName%%romExtension%" -auto -gen -fullscreen, %EmuPath%, Hide UseErrorLevel
Process, WaitClose, fusion.exe
}
;*******************************SEGA Master System******************************
else if (systemName = "Sega Master System" && executable = "Fusion.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %Executable% "%romPath%%romName%%romExtension%" -auto -sms -fullscreen, %EmuPath%, Hide UseErrorLevel
Process, WaitClose, fusion.exe
}
;***********************************SEGA MODEL 2*********************************
else if (systemName = "Sega Model 2")
{
if(executable = "emulator_multicpu.exe" || executable = "emulator.exe" )
{
;hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %executable% %romName%, %emuPath%, Hide UseErrorLevel
DetectHiddenWindows, on
WinWait, Model 2
WinShow
Process, WaitClose, %executable%
}
}
;***********************************SEGA Naomi***********************************
else if (systemName = "SEGA Naomi")
{
if(executable = "NAOMI.exe" || executable = "nullDC-Naomi_1.0.3_mmu.exe" )
SetWorkingDir, %emuPath%
Hotkey, %exitEmulatorKey%, CloseProcess
IniWrite, %romPath%%romName%%romExtension%, %A_WorkingDir%\DIMM.ini, Settings, image
Run, %executable% ; launches emulator
Process, WaitClose, %executable%
exitapp
}
;**********************************SEGA SATURN***********************************
else if (systemName = "Sega Saturn" && executable = "SSF.exe")
{
RunWait, %DAEMONTOOLS% -mount 0`,"%romPath%%romName%%romExtension%"
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %executable% , %emuPath%, UseErrorLevel
}
;********************************Sony Playstation*******************************
else if (systemName = "Sony Playstation" && executable = "psxfin.exe")
{
psxParams = -f
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %Executable% %psxParams% "%romPath%%romName%%romExtension%", %EmuPath%, Hide UseErrorLevel
DetectHiddenWindows, on
WinWait, ahk_class pSX
hideDesktop()
WinWaitClose, ahk_class pSX
}
;***********************Super Nintendo Entertainment System*********************
else if (systemName = "Super Nintendo Entertainment System" && executable = "zsnesw.exe")
{
hideDesktop()
SetKeyDelay, 250
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %Executable% "%romPath%%romName%%romExtension%", %EmuPath%
}
;**********************************Turbo Duo***********************************
else if (systemName = "Turbo Duo" && executable = "pce.exe")
{
RunWait, %DAEMONTOOLS% -mount 0`,"%romPath%%romName%%romExtension%"
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %executable% syscard3.pce , %emuPath%, UseErrorLevel
}
;**********************************TurboGrafx 16********************************
else if (systemName = "TurboGrafx 16" && executable = "Ootake.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, "%EmuPath%%Executable%" "%romPath%%romName%%romExtension%",,UseErrorLe vel
}
;***********************************JukeBox*************************************
else if (systemName = "Jukebox" && executable = "Silverjuke.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseJuke
RunWait, %emuPath%%executable% --kiosk, Hide UseErrorLevel
}
else if (systemName = "Jukebox" && executable = "SKJukebox.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %emuPath%%executable%, Hide UseErrorLevel
}
;***************************************Zinc************************************
else if (systemName = "Zinc" && executable = "zinc.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %Executable% %romName%, %EmuPath%, Hide UseErrorLevel
}

else
{
MsgBox,48,Error,%systemName% is an invalid System Name or %executable% isnt supported yet,6
}
;------------------------------------------------------------------------------;
; WHEN EMULATOR FINISHES OR IF LAUNCH EXE FAILS ;
;------------------------------------------------------------------------------;
;************PROBABLY DO NOT NEED TO EDIT THIS AREA*************

if (ErrorLevel = "ERROR")
{
MsgBox,48,Error,Failed to run executable check your paths,6
}
Goto ExitScript ; Exits script and returns to frontend


;------------------------------------------------------------------------------;
; KILL COMMANDS ;
;------------------------------------------------------------------------------;
;************PROBABLY DO NOT NEED TO EDIT THIS AREA*************

/*
Most emu's can be closed with CloseProcess when using a 2 key combo, if not set a custom
close.
*/
CloseJuke:
RunWait, %emuPath%%executable% --execute="program.shutdown(30);", Hide UseErrorLevel
return

CloseProcess:
Hotkey, %exitScriptKey%, Off
Process, Close, %Executable%
Process, WaitClose, %Executable%
Gui, Color, 000000
Gui -Caption +ToolWindow +AlwaysOnTop
Gui, Show, W%A_ScreenWidth% H%A_ScreenHeight%, BlackGui
return

ExitScript:
Process, Exist, HyperSpin.exe
PID := errorLevel
if (PID)
{
WinActivate, ahk_pid %PID%
WinWaitActive, ahk_pid %PID%
Gui, destroy
if (hideCursor)
SystemCursor("On")
if (hideTaskbar)
WinShow ahk_class Shell_TrayWnd
ExitApp
}


OnExit, ExitScript
return








;------------------------------------------------------------------------------;
; REST OF SCRIPT ;
;------------------------------------------------------------------------------;
;************PROBABLY DO NOT NEED TO EDIT THIS AREA*************



SystemCursor(OnOff=1) ; INIT = "I","Init"; OFF = 0,"Off"; TOGGLE = -1,"T","Toggle"; ON = others
{
static AndMask, XorMask, $, h_cursor
,c0,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13 ; system cursors
, b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12,b13 ; blank cursors
, h1,h2,h3,h4,h5,h6,h7,h8,h9,h10,h11,h12,h13 ; handles of default cursors
if (OnOff = "Init" or OnOff = "I" or $ = "") ; init when requested or at first call
{
$ = h ; active default cursors
VarSetCapacity( h_cursor,4444, 1 )
VarSetCapacity( AndMask, 32*4, 0xFF )
VarSetCapacity( XorMask, 32*4, 0 )
system_cursors = 32512,32513,32514,32515,32516,32642,32643,32644,32645,32646,32648,32649,32650
StringSplit c, system_cursors, `,
Loop %c0%
{
h_cursor := DllCall( "LoadCursor", "uint",0, "uint",c%A_Index% )
h%A_Index% := DllCall( "CopyImage", "uint",h_cursor, "uint",2, "int",0, "int",0, "uint",0 )
b%A_Index% := DllCall("CreateCursor","uint",0, "int",0, "int",0
, "int",32, "int",32, "uint",&AndMask, "uint",&XorMask )
}
}
if (OnOff = 0 or OnOff = "Off" or $ = "h" and (OnOff < 0 or OnOff = "Toggle" or OnOff = "T"))
$ = b ; use blank cursors
else
$ = h ; use the saved cursors

Loop %c0%
{
h_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 )
DllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% )
}
}
ToggleCursor:
SystemCursor("Toggle")
return

IniRead(Filename, Section, Key, Default = "") {
FileRead, text, *t %Filename%
text = `n%text%`n
StringTrimLeft, text, text, InStr(text, "`n[" . Section . "]`n")
Loop, 8 {
sp := sp . " "
StringReplace, text, text, %Key%%sp%=, %Key%=
If ErrorLevel
Break
}
start := InStr(text, "`n" . Key . "=")
If !start
Return, Default
start += StrLen(Key) + 2
StringMid, Value, text, start, InStr(text, "`n", false, start) - start
Return, Value
}

;Get Full Path from Relative Path
GetFullName( fn ) {
static buf, i
if !i
i := VarSetCapacity(buf, 512)
DllCall("GetFullPathNameA", "str", fn, "uint", 512, "str", buf, "str*", 0)
return buf
}

hideDesktop(){
;WinHide ahk_class Shell_TrayWnd
;Gui, +toolwindow
;Gui, -Caption
;Gui, Color, black
;Gui, show, +toolwindow Maximize
Gui, Color, 000000
Gui -Caption +ToolWindow
Gui, Show, W%A_ScreenWidth% H%A_ScreenHeight%, BlackScreen

}

CheckINI:
IfNotExist, %A_ScriptDir%\HyperSpin.exe
{
MsgBox,48,Error, Must be in same directory as HyperSpin.exe,6
Goto ExitScript
}
IfNotExist, %A_ScriptDir%\Settings\%systemName%.ini
{
MsgBox,48,Error,Cannot Find %A_ScriptDir%\Settings\%systemName%.ini,6
Goto ExitScript
}
return

CheckPaths:
romFound =
StringRight, emuPathBackSlash, EmuPath, 1
StringRight, romPathBackSlash, RomPath, 1

If (emuPathBackSlash != "\" || romPathBackSlash != "\")
{
MsgBox,48,Error, Make sure your paths contains a backslash on the end ,6
Goto ExitScript
}
If (executable = "")
{
MsgBox,48,Error, Missing executable in %systemName%.ini ,6
Goto ExitScript
}
If (romPath = "")
{
MsgBox,48,Error, Missing rom path in %systemName%.ini ,6
Goto ExitScript
}
If (emuPath = "")
{
MsgBox,48,Error, Missing emulator path in %systemName%.ini ,6
Goto ExitScript
}
IfNotExist, %EmuPath%%Executable%
{
MsgBox,48,Error,Cannot Find %EmuPath%%Executable%,6
Goto ExitScript
}
if(systemName != "zinc")
{
If (romExtensions = "")
{
MsgBox,48,Error, Missing rom extension in %systemName%.ini ,6
Goto ExitScript
}
Loop, parse, romExtensions, `,
{
inputVar = %A_LoopField%
StringLeft, charToCheck, inputVar, 1
If(charToCheck = ".")
{
MsgBox,48,Error, Make sure your rom extensions do not contain a ".",6
Goto ExitScript
}
IfExist %RomPath%%RomName%.%A_LoopField%
{
romExtension = .%A_LoopField%
romFound = true
break
}else{
IfExist %RomPath%%RomName%\%RomName%.%A_LoopField%
{
RomPath = %RomPath%%RomName%\
MsgBox %RomPath%
romExtension = .%A_LoopField%
romFound = true
break
}else{
romFound = false
}
}
}
}
if (romFound = "false")
{
if(systemName != "daphne"){
MsgBox,48,Error,Cannot find Rom - %RomPath%%RomName% with any provided extension,6
Goto ExitScript
}else{
MsgBox,48,Error,Cannot find Daphne framefile - %RomPath%%RomName% with any provided extension,6
Goto ExitScript
}
}
return
alcuni emu vanno senza questo file per chi avesse dei problemi chiedete pure...
per installare un emu basta aggiungere l'emu tramite il file hyperhq,quindi aprite hyperqh cliccate main menù wizard apparirà un + cliccateci sopra e date il nome all'emu,poi vi chiederà se questo emulatore ha una sub wheel ditegli di si,vi richiederà dove metterlo sulla ruota e dategli il posto.
wheel setting selezionarte il nuovo emu che avete messo e spuntate hyperlaunch in execution.
pc games disable
executable puntate l'exe dell'emu
rom path la cartella delle rom
exetension l'estenzione delle rom (generalmente zip)
i nomi degli emulatori devono essere i soliti pari pari che vedete nello script sopra
esempio
;****************************NINTENDO ENTERTAINMENT SYSTEM****************
else if (systemName = "Nintendo Entertainment System" && executable = "Nestopia.exe")

sul nome dell'emu da dare a hyperhq che poi sarà il nome che apparirà nel front (se non avete le immagini wheel)
qui sarà Nintendo Entertainment System l'emulatore è il Nestopia.exe
già qui avete come si dice "la pappa scodellata" per un 70%
poi se ci sono difficoltà chiedete pure,questo è un inizio
Toccatemi tutto ma no i miei BEWITH


Avatar utente
mossfet
Cab-maniaco
Cab-maniaco
Messaggi: 1541
Iscritto il: 19/01/2011, 13:14
Medaglie: 1
Reputation: 7
Città: Bolzano
Località: Bolzano
:
Gold Medal
Contatta:

Re: guida ad hyperspin

Messaggio da mossfet » 16/03/2011, 19:44

Tutto questo capita proprio a fagiolo, stò iniziando proprio adesso a popolare l'hd del mio nuovissimo cab artigianale, e non sapevo come configurare velocemente hyperspin. Grazie.
EmuZone.it Founder
EmuMovies LifeTime Member
HyperSpin Platinum Member


Avatar utente
poiu
Nostalgico
Nostalgico
Messaggi: 377
Iscritto il: 03/02/2010, 1:31
Medaglie: 8
Reputation: 4
Città: prato
:
Gold Medal Silver Medal

Re: guida ad hyperspin

Messaggio da poiu » 16/03/2011, 19:47

mossfet ha scritto:Tutto questo capita proprio a fagiolo, stò iniziando proprio adesso a popolare l'hd del mio nuovissimo cab artigianale, e non sapevo come configurare velocemente hyperspin. Grazie.
bene <-on_wink-> mi fa piacere
Toccatemi tutto ma no i miei BEWITH


Avatar utente
X-Fil
Nostalgico
Nostalgico
Messaggi: 319
Iscritto il: 19/01/2011, 16:10
Reputation: 1
Città: Novara
Località: Novara

Re: guida ad hyperspin

Messaggio da X-Fil » 18/03/2011, 14:57

Ciao,
grazie dell'ahk...io ancora non ce l'ho completo...sto cercando di aggiungere i vari emulatori uno alla volta....reperire il materiale non è facile!
Comunque volevo farti 2 domande. La prima: che PC hai montato nel tuo cab? Io ne ho uno un po scarso ed alcuni emulatori non mi vanno (ad esempio aae, ma già alcuni giochi del mame, tipo radical bikers, sono lentissimi. Secondo te che configurazione ci vuole come CPU per far girare tutto tranquillamente?
Seconda domanda: dice! Io lancio come pcgame da hyperHQ un file bat che mi lancia 'dice gioco -fullscreen' ma sembra non partire. Se lancio il bat da solo funziona, anche se a volte si apre e immediatamente si chiude...boh! Hai qualche idea?
Ora devo configurare zinc e daphne.
<<< BACHECA RECORDS >>>
1° a POOYAN : 436.150
RECORD a TIME PILOT : 438.500

1 cab 25'' modificato in mamecab 0.143u1 - Joystick sanwa con E-Limitator + pulsanti competition
1 MAGNUM 28'' verde con MVS NeoGeo
Flipper: Twilight Zone


Avatar utente
mossfet
Cab-maniaco
Cab-maniaco
Messaggi: 1541
Iscritto il: 19/01/2011, 13:14
Medaglie: 1
Reputation: 7
Città: Bolzano
Località: Bolzano
:
Gold Medal
Contatta:

Re: guida ad hyperspin

Messaggio da mossfet » 18/03/2011, 18:03

Ho provato ad aggiungere le scanlines al mame, ma non funzionano... C'è un'altra soluzione per usare le scanlines magari con tutti gli emu? (disegnarle col pennarello sul monitor non è un'opzione valida) <-dash->
EmuZone.it Founder
EmuMovies LifeTime Member
HyperSpin Platinum Member


Avatar utente
poiu
Nostalgico
Nostalgico
Messaggi: 377
Iscritto il: 03/02/2010, 1:31
Medaglie: 8
Reputation: 4
Città: prato
:
Gold Medal Silver Medal

Re: guida ad hyperspin

Messaggio da poiu » 18/03/2011, 20:04

[quote="X-Fil"]Ciao,
grazie dell'ahk...io ancora non ce l'ho completo...sto cercando di aggiungere i vari emulatori uno alla volta....reperire il materiale non è facile!
Comunque volevo farti 2 domande. La prima: che PC hai montato nel tuo cab?
un pentium dual core con 2 giga di ram e una scheda video ati hd4850
Toccatemi tutto ma no i miei BEWITH


Avatar utente
poiu
Nostalgico
Nostalgico
Messaggi: 377
Iscritto il: 03/02/2010, 1:31
Medaglie: 8
Reputation: 4
Città: prato
:
Gold Medal Silver Medal

Re: guida ad hyperspin

Messaggio da poiu » 18/03/2011, 20:13

X-Fil ha scritto:Ciao,
grazie dell'ahk...io ancora non ce l'ho completo...sto cercando di aggiungere i vari emulatori uno alla volta....reperire il materiale non è facile!
Comunque volevo farti 2 domande. La prima: che PC hai montato nel tuo cab? Io ne ho uno un po scarso ed alcuni emulatori non mi vanno (ad esempio aae, ma già alcuni giochi del mame, tipo radical bikers, sono lentissimi. Secondo te che configurazione ci vuole come CPU per far girare tutto tranquillamente?
Seconda domanda: dice! Io lancio come pcgame da hyperHQ un file bat che mi lancia 'dice gioco -fullscreen' ma sembra non partire. Se lancio il bat da solo funziona, anche se a volte si apre e immediatamente si chiude...boh! Hai qualche idea?
Ora devo configurare zinc e daphne.
io probabilmente ho la soluzione...
compili il bat con un compilatore (si trovano in rete)quindi da bat lo fai diventare exe,poi tasto dx crea collegamento.
fai una nuova cartella e ci butti il collegamento che avevi fatto.
apri hyperhq e metti il nuovo percorso per puntare al collegamento che avevi fatto in precedenza.
poi vai nella cartella settimg e apri l'ini del'emulatore che stai lavorando e copia questi valori..
userompath=
exe=
romextension=lnk
parameters=PC Games
searchsubfolders=
pcgame=true
winstate=HIDDEN
hyperlaunch=false
rifai il file xml del database,usa syndaroa e come estenzione gli devi dare lnk.
vedrai che ti dovrebbe andare senza problemi
Toccatemi tutto ma no i miei BEWITH


Avatar utente
poiu
Nostalgico
Nostalgico
Messaggi: 377
Iscritto il: 03/02/2010, 1:31
Medaglie: 8
Reputation: 4
Città: prato
:
Gold Medal Silver Medal

Re: guida ad hyperspin

Messaggio da poiu » 18/03/2011, 20:16

mossfet ha scritto:Ho provato ad aggiungere le scanlines al mame, ma non funzionano... C'è un'altra soluzione per usare le scanlines magari con tutti gli emu? (disegnarle col pennarello sul monitor non è un'opzione valida) <-dash->
scusa l'ignoranza ma non so neanche cosa sono le scalines
Toccatemi tutto ma no i miei BEWITH


Avatar utente
mossfet
Cab-maniaco
Cab-maniaco
Messaggi: 1541
Iscritto il: 19/01/2011, 13:14
Medaglie: 1
Reputation: 7
Città: Bolzano
Località: Bolzano
:
Gold Medal
Contatta:

Re: guida ad hyperspin

Messaggio da mossfet » 18/03/2011, 20:20

In pratica si usa un file immagine che si sovrappone alla schermata di gioco per "ammorbidire" la grafica negli schermi lcd. Dalla gui si abilita facilmente, ma dovendo creare l'estensione del comando è un pò problematico.
EmuZone.it Founder
EmuMovies LifeTime Member
HyperSpin Platinum Member


Avatar utente
Solid Snake
Cab-maniaco
Cab-maniaco
Messaggi: 1036
Iscritto il: 15/04/2010, 23:18
Reputation: 6
Città: Roma

Re: guida ad hyperspin

Messaggio da Solid Snake » 19/03/2011, 10:18

poiu, ti ringrazio molto per la condivisione della compilazione dell'ank, però mi seervirebbe sapere se la parte da copiare in un file txt è tuta questa compresi i titoli oppure no :

Codice: Seleziona tutto

/**
* HyperLaunch Version 1.05
* Autohotkey script by BadBoyBill badboybill@hyperspin-fe.com
* CursorHide by Lazlo
* Integrated FreeDO wrapper by brian_hoffman
*
* If you are reading this and do not have autohotkey you can get it
* @ http://www.autohotkey.com/download/
* If you would like to modify this script and share it thats OK, but
* see if your modification is something that we would like to add
* to the official version.
*
* Refer to the autohotkey documentation for the keyoboard keylist
*
* If this script does not support your favorite emulator
* then please request support @ http://www.hyperspin-fe.com/forum
*
* :Supported emulators:
* :System: :Emulators:
*rca studio 2...........................mess.exe
*wonder color...........................Oswan.exe
*wonder mono............................Oswan.exe
*neo geo cd.............................neoraine32.exe
*pcfx...................................pce.exe
*turbografx cd..........................pcfx.exe
*arcadia 2001...........................mess.exe
*aae....................................aae.exe
*creativision...........................mess.exe
*game boy color.........................visualboyadvance.exe
*game boy...............................visualboyadvance.exe
*sega sg1000............................Fusion.exe
*zx spectrum............................mess.exe
*vectrex................................mess.exe
*adventure vision.......................mess.exe
*famicom disk...........................nestopia.exe
*channel f..............................mess.exe
*astrocade..............................mess.exe
*gx4000.................................mess.exe
*super vision...........................mess.exe
*odissey................................mess.exe
*intellivision..........................nostalgia.exe
*colecovision...........................mess.exe
*Atomiswave.............................demul.exe
*atari jaguar...........................PT.exe
*CPS3...................................emulator.exe
*sega naomi.............................naomi.exe
*Atari 7800.............................messpp.exe
*Atari 2600.............................messpp.exe
*Atari 5200.............................messpp.exe
*Atari Lynx.............................handy.exe
*Daphne.................................daphne.exe
*Future Pinball.........................Future Pinball.exe
*Gameboy Advance........................visualboyadvance.exe
*Gameboy................................visualboyadvance.exe
*Gameboy Color..........................visualboyadvance.exe
*MAME...................................mame.exe
*Neo Geo................................mame.exe
*Neo Geo Pocket Color...................NeoPop-Win32.exe
*Nintendo 64............................project64.exe
*Nintendo Entertainment System..........nestopia.exe
*Panasonic 3DO..........................FreeDO.exe
*Sega 32X...............................fusion.exe
*Sega CD................................fusion.exe
*dreamcast..............................nullDC_100b1_6.exe
*Sega Game Gear.........................fusion.exe
*Sega Genesis...........................fusion.exe
*Sega Master System.....................fusion.exe
*Sony Playstation.......................psxfin.exe
*Super Nintendo Entertainment System....zsnesw.exe
*TurboGrafx 16..........................Ootake.exe
*Zinc...................................zinc.exe
*JukeBox................................silverjuke.exe
*JukeBox................................SKJukebox.exe
*
*
*/

#SingleInstance force ;Prevent multiple instances
#InstallKeybdHook
SetTitleMatchMode 2

;------------------------------------------------------------------------------;
; MAIN SETTINGS ;
;------------------------------------------------------------------------------;

;[UNIVERSAL HOTKEYS] ;SEPERATE MULTIPLE KEYS WITH &(ampersand) up to 2 keys.
exitScriptKey = q & s ;Secret hotkey(s) to exit script if needed
;Not to be confused with exit emulator keys

exitEmulatorKey = Esc ;This key/key combo will close any emulators
;that do not have normal closing methods.

toggleCursorKey = t ;hotkey(s) to show or hide cursor if needed
;when hideCursor below is true

;[MOUSE CURSOR]
hideCursor = false ;Automatically hide cursor during script
;WARNING: Make sure ALL your emu's are running fine
;before setting this to true as a precaution.*

;[WINDOWS]
hideDesktop = true ;Attempts to hide desktop with black screen, might help
;on some emu's for hiding launching windows.

hideTaskbar = false ;Hide the windows taskbar when running emu's.
;WARNING: Make sure ALL your emu's are running fine
; before setting this to true as a precaution.*

daemontools = "C:\Programmi\DAEMON Tools Lite\DTLite" ;Hide the windows taskbar when running emu's.
;WARNING: Make sure ALL your emu's are running fine
; before setting this to true as a precaution.*

/*
*:If for some weird reason the script hangs follow these steps to get back to normal.
1. If an emulator hangs up or cant load your game then first try to exit the emu
by pressing your Emulator exit hotkey above.
2. If your emu exited but your mouse cursor is gone use your cursor toggle hotkey.
3. Next try to exit the script by pressing your Exit Script Hotkey above. This
will also bring back your cursor and taskbar is they are set to true.
*/







;*******************************************************************************
;* EDIT BELOW THIS POINT AT YOUR OWN RISK *
;*******************************************************************************

;------------------------------------------------------------------------------;
; GET PARAMATERS AND SET HOTKEYS ;
;------------------------------------------------------------------------------;

;CHECKING FOR 2 PARAMS, IF NOT THEN EXIT
if 0 < 2
{
MsgBox Usage: HyperLaunch.ahk/exe "System Name" "Rom Name"
ExitApp
}

systemName = %1%
romName = %2%

Hotkey, %exitScriptKey%, ExitScript
if (hideCursor = "true")
{
Hotkey, %toggleCursorKey%, ToggleCursor
SystemCursor("Off")
}

WinClose, cmd.exe
;------------------------------------------------------------------------------;
; GET AND CHECK PATHS ;
;------------------------------------------------------------------------------;
GoSub, CheckINI
IniRead, iniEmuPath, %A_ScriptDir%\Settings\%systemName%.ini, exe info, path
emuPath := GetFullName(iniEmuPath)
IniRead, iniRomPath, %A_ScriptDir%\Settings\%systemName%.ini, exe info, rompath
romPath := GetFullName(iniRomPath)
IniRead, executable, %A_ScriptDir%\Settings\%systemName%.ini, exe info, exe
IniRead, romExtensions, %A_ScriptDir%\Settings\%systemName%.ini, exe info, romextension

romExtension =
GoSub, CheckPaths

;------------------------------------------------------------------------------;
; RUN SYSTEM ;
;------------------------------------------------------------------------------;


;****************************rca studio 2***************************
if (systemName = "rca studio 2" && (executable = "mess.exe" || executable = "mess.exe"))
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% studio2 -cart "%romPath%%romName%%romExtension%" -skip_gameinfo -nowindow -nonewui, %emuPath%
}
;****************************wonder color**************************
else if (systemName = "wonder color" && executable = "Oswan.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, "%EmuPath%%Executable%" -fs "%romPath%%romName%%romExtension%", Hide UseErrorLevel
}
;*****************************wonder mono**************************
else if (systemName = "wonder mono" && executable = "Oswan.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, "%EmuPath%%Executable%" -f "%romPath%%romName%%romExtension%", Hide UseErrorLevel
}
;******************************neo geo cd**************************
else if (systemName = "neo geo cd" && executable = "neoraine32.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %emuPath%%Executable% "%romPath%%romName%%romExtension%" -nogui, Hide UseErrorLevel
Process, WaitClose, neoraine32.exe
}
;********************************pcfx******************************
else if (systemName = "pcfx" && executable = "pcfx.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %DAEMONTOOLS% -mount 0`,"%romPath%%romName%%romExtension%"
RunWait, "%EmuPath%%Executable%" -cd,UseErrorLevel
}
;*********************************turbografx cd*********************
else if (systemName = "turbografx cd" && executable = "pce.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %DAEMONTOOLS% -mount 0`,"%romPath%%romName%%romExtension%"
RunWait, "%EmuPath%%Executable%" -cd,UseErrorLevel
}
;**********************************arcadia 2001********************
else if (systemName = "arcadia 2001" && (executable = "messui.exe" || executable = "mess.exe"))
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% arcadia -cart "%romPath%%romName%%romExtension%" -skip_gameinfo -nowindow -nonewui, %emuPath%
}
;***************************************aae************************
else if (systemName = "aae" && executable = "aae.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %Executable% %romName%, %EmuPath%, Hide UseErrorLevel
}
;**********************************creativision********************
else if (systemName = "creativision" && (executable = "mess.exe" ))
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% crvision -cart "%romPath%%romName%%romExtension%" -skip_gameinfo -nowindow -nonewui, %emuPath%
}
;********************************game boy color********************
else if (systemName = "game boy color" && executable = "visualboyadvance.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, "%emuPath%%executable%" "%romPath%%romName%%romExtension%", UseErrorLevel
}
;********************************game boy**************************
else if (systemName = "game boy" && executable = "visualboyadvance.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, "%emuPath%%executable%" "%romPath%%romName%%romExtension%", UseErrorLevel
}
;***********************************sega sg1000********************
else if (systemName = "sega sg1000" && executable = "Fusion.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %Executable% "%romPath%%romName%%romExtension%" -auto -sg -fullscreen, %EmuPath%, Hide UseErrorLevel
Process, WaitClose, fusion.exe
}
;**********************************zx spectrum**********************
else if (systemName = "zx spectrum" && (executable = "mess.exe" ))
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% spectrum -cart "%romPath%%romName%%romExtension%" -skip_gameinfo -nowindow -nonewui, %emuPath%
}
;**********************************vectrex**************************
else if (systemName = "vectrex" && (executable = "mess.exe" ))
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% vectrex -cart "%romPath%%romName%%romExtension%" -skip_gameinfo -nowindow -nonewui, %emuPath%
}
;**********************************adventure vision*****************
else if (systemName = "adventure vision" && (executable = "messui.exe" || executable = "mess.exe"))
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% advision -cart "%romPath%%romName%%romExtension%" -skip_gameinfo -nowindow -nonewui, %emuPath%
}
;**********************************famicom disk*********************
else if (systemName = "famicom disk" && executable = "Nestopia.exe")
{
Gui, Color, 000000
Gui -Caption +ToolWindow +AlwaysOnTop
Gui, Show, W%A_ScreenWidth% H%A_ScreenHeight%, BlackGui
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %executable% "%romPath%%romName%%romExtension%", %emuPath%, UseErrorLevel
Sleep, 2000
Gui, destroy
Process, waitClose, %executable%
exitapp
}
;**********************************channel f*************************
else if (systemName = "channel f" && (executable = "messui.exe" || executable = "mess.exe"))
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% channelf -cart "%romPath%%romName%%romExtension%" -skip_gameinfo -nowindow -nonewui, %emuPath%
}
;**********************************astrocade*************************
else if (systemName = "astrocade" && (executable = "messui.exe" || executable = "mess.exe"))
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% astrocde -cart "%romPath%%romName%%romExtension%" -skip_gameinfo -nowindow -nonewui, %emuPath%
}
;**********************************gx4000****************************
else if (systemName = "gx4000" && (executable = "messui.exe" || executable = "mess.exe"))
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% gx4000 -cart "%romPath%%romName%%romExtension%" -skip_gameinfo -nowindow -nonewui, %emuPath%
}
;**********************************super vision**********************
else if (systemName = "super vision" && (executable = "messui.exe" || executable = "mess.exe"))
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% svision -cart "%romPath%%romName%%romExtension%" -skip_gameinfo -nowindow -nonewui, %emuPath%
}
;*************************************odissey*************************
else if (systemName = "odissey" && (executable = "messui.exe" || executable = "mess.exe"))
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% Odyssey2 -cart "%romPath%%romName%%romExtension%" -skip_gameinfo -nowindow -nonewui, %emuPath%
}
;**********************************intellivision**********************
else if (systemName = "intellivision" && executable = "nostalgia.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% "%romPath%%romName%%romExtension%", %emuPath%, UseErrorLevel
}
;**********************************colecovision***********************
else if (systemName = "Colecovision" && (executable = "messui.exe" || executable = "mess.exe"))
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% coleco -cart "%romPath%%romName%%romExtension%" -skip_gameinfo -nowindow -nonewui, %emuPath%
}
;***********************************Atomiswave*************************
;Required - Settings.ini:
; http://www.hyperspin-fe.com/forum/showp ... tcount=113
else if (systemName = "Atomiswave" && executable = "demul.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
;Blockinput on

;\\\optional plain black screen\\\
;Gui +AlwaysOnTop -Caption +ToolWindow
;Gui, color, 0
;Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, HSHIDE

;\\\Please Wait Loading Screen change size,color,font,background color,what you want to say\\\
IniRead, Long_RomName, %emupath%settings.ini, %Romname%, Long_RomName
WinHide ahk_class Shell_TrayWnd
guiheight:=A_ScreenHeight/9*4
Gui, +toolwindow -Caption +AlwaysOnTop
Gui, Color, black
Gui, Font, S24 Cred, verdanna
Gui, Add, Text, y%guiheight% W%A_ScreenWidth% H%A_ScreenHeight% Center, Please Wait! Now Loading...`n %systemnane%`n`n"%Long_RomName%" ;"%romname%"
Gui, Show, W%A_ScreenWidth% H%A_ScreenHeight%,

IniRead, system, %emupath%settings.ini, %RomName%, System,
IniRead, Screen_Timeout, %emupath%settings.ini, %Romname%, Screen_Timeout
IniRead, LoadDecrypted, %emupath%settings.ini, %Romname%, LoadDecrypted

;\\\This section swaps out controls for different game types\\\
demul_controller_code = 16777216
demul_mouse_code = 131072
demul_keyboard_code = 1073741824
demul_lightgun_code = -2147483648
IniRead, controls, %emupath%settings.ini, %RomName%, controls, standard
IniRead, current_device, %emupath%demul.ini, PORTB, device, demul_controller_code
IniRead, current_controls, %emupath%padDemul.ini, CONTROL_TYPE, CONTROL_TYPE, standard
If(controls = "standard" && (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%SFSTYLE_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "sfstyle" && (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%SFSTYLE_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "ggxstyle" && (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%SFSTYLE_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "reverse" && (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%SFSTYLE_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "driving" && (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%SFSTYLE_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "fps" && (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%SFSTYLE_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "samba" && (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%SFSTYLE_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "lightgun" && (current_device != demul_mouse_code or current_controls != controls))
{
filecopy, %emupath%SFSTYLE_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_mouse_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "keyboard" && (current_device != demul_keyboard_code or current_controls != controls))
{
filecopy, %emupath%SFSTYLE_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_keyboard_code%, %emupath%demul.ini, PORTB, device
}

;\\\add sounds\\\
;sounds go in demul directory change to .mp3 if desired or specify a directory of sounds for "romname"
;soundplay, %A_ScriptDir%\%systemame%.wav
;soundplay, %A_ScriptDir%\%Romname%.wav
;soundplay, %A_ScriptDir%\%anyname%.wav

If (LoadDecrypted = "false")
{
Run, %emupath%%executable% -run=%system% -rom=%Romname%
sleep, %Screen_Timeout%
send, {ALTDOWN}{ENTER}{ALTUP} ; Go full Screen demul 56
Blockinput off
sleep, 1000
Gui Destroy
winactivate, DEMUL
Process, WaitClose, %executable%
}
else if (LoadDecrypted = "true")
{

Run, %emupath%%executable% -run=%system% -rom=%Romname%
send, {Down 2}
send, {ENTER}
send, {shiftdown}{Tab}{Shiftup}
send, {Enter}
sleep, 2000
clipboard=
clipboard=%A_ScriptDir%\%romName%
ClipWait
Sleep,100
Send,^v
Sleep,100
send, {ENTER}
sleep, %Screen_Timeout%
send, {ALTDOWN}{ENTER}{ALTUP} ; Go full Screen demul 56
Blockinput off
sleep, 1000
Gui Destroy
winwaitactive, DEMUL
Process, WaitClose, %executable%
}
}
;**********************************atari jaguar**********************
else if (systemName = "atari jaguar" && executable = "PT.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, "%EmuPath%%Executable%",,Hide UseErrorLevel
DetectHiddenWindows, on
sleep, 500
WinActivate, Project Tempest
WinWait, Project Tempest,
Send, {ALTDOWN}{ALTUP}fo
WinWait, Open ROM File,
IfWinNotActive, Open ROM File, , WinActivate, Open ROM File,
WinWaitActive, Open ROM File,
sleep, 500
clipboard=
clipboard=%romPath%%romName%%romExtension%
ClipWait
Sleep,100
Send,^v
Sleep,100
send, {ENTER}
WinWait, Project Tempest,
IfWinNotActive, Project Tempest, , WinActivate, Project Tempest,
WinWaitActive, Project Tempest,
Process, WaitClose, PT.exe
winactivate, hyperspin.exe
}
;***********************************CPS3****************************
else if (systemName = "CPS3")
{
if(executable = "emulator.exe" )
{
;hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess, ExitScript
Run, %executable% %romName%, %emuPath%, Hide UseErrorLevel
DetectHiddenWindows, on
WinWait, Capcom Play System 3 Emulator
WinShow
Process, WaitClose, %executable%
}
}
;************************sega naomi***********************************************
else if (systemName = "sega naomi" && executable="naomi.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
IniRead, Xram, %emupath%settings.ini, %RomName%, Xram, 2PH
IniRead, Region, %emupath%settings.ini, %RomName%, Region, 0
If (Xram = "1ph"){
filecopy, %emupath%1PH_xram.bin, %emupath%xram.bin, 1
IniWrite, %Region%, %emupath%NAOMI.ini, Settings, Region
}
Else if(Xram = "1pv"){
filecopy, %emupath%1PV_xram.bin, %emupath%xram.bin, 1
IniWrite, %Region%, %emupath%NAOMI.ini, Settings, Region
}
Else if(Xram = "2pv"){
filecopy, %emupath%2PV_xram.bin, %emupath%xram.bin, 1
IniWrite, %Region%, %emupath%NAOMI.ini, Settings, Region
}
Else{
filecopy, %emupath%2PH_xram.bin, %emupath%xram.bin, 1
IniWrite, %Region%, %emupath%NAOMI.ini, Settings, Region
}
Run, "%emupath%%executable%" "%romPath%%romName%%romExtension%", %emuPath%, Hide UseErrorLevel
Process, WaitClose, %executable%
}
;**********************************ATARI 7800**********************
else if (systemName = "Atari 7800" && (executable = "messpp.exe" || executable = "mess.exe"))
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% a7800 -cart "%romPath%%romName%%romExtension%" -skip_gameinfo -nowindow -nonewui, %emuPath%, Hide UseErrorLevel
}
;**********************************ATARI 2600**********************
else if (systemName = "Atari 2600" && (executable = "messpp.exe" || executable = "mess.exe"))
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% a2600 -cart "%romPath%%romName%%romExtension%" -skip_gameinfo -nowindow -nonewui, %emuPath%, Hide UseErrorLevel
}
;**********************************ATARI 5200**********************
else if (systemName = "Atari 5200" && (executable = "messpp.exe" || executable = "mess.exe"))
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% a5200 -cart "%romPath%%romName%%romExtension%" -skip_gameinfo -nowindow -nonewui, %emuPath%, Hide UseErrorLevel
}
;**********************************ATARI Lynx**********************
else if (systemName = "Atari Lynx" && executable = "handy.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% "%romPath%%romName%%romExtension%", %emuPath%, UseErrorLevel
}
;************************************DAPHNE*************************
else if (systemName = "Daphne" && executable = "daphne.exe"){
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
daphneParams = vldp -fullscreen -x 640 -y 480 -nohwaccel -framefile
frameFilePath = %romPath%%romName%%romExtension%
RunWait, %executable% %romName% %daphneParams% %frameFilePath%, %emuPath%, UseErrorLevel
}
;********************************GAMEBOY ADVANCE********************
else if (systemName = "Gameboy Advance" && executable = "visualboyadvance.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, "%emuPath%%executable%" "%romPath%%romName%%romExtension%", UseErrorLevel
}
;********************************GAMEBOY********** ******************
else if (systemName = "Gameboy" && executable = "visualboyadvance.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, "%emuPath%%executable%" "%romPath%%romName%%romExtension%", UseErrorLevel
}
;********************************GAMEBOY COLOR************************
else if (systemName = "Gameboy Color" && executable = "visualboyadvance.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, "%emuPath%%executable%" "%romPath%%romName%%romExtension%", UseErrorLevel
}
;********************************Future Pinball************************
else if (systemName = "Future Pinball" && executable = "Future Pinball.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Runwait, "%emuPath%%executable%" /open "%romPath%%romName%%romExtension%" /play /exit %emuPath%, Hide UseErrorLevel
}
;*************************************MAME******************************
else if (systemName = "MAME" && executable = "mame.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Runwait, %executable% %romName%, %EmuPath%, Hide UseErrorLevel
Process, waitClose, %executable%
exitapp
}
;***********************************NEO GEO*****************************
else if (systemName = "Neo Geo" && executable = "mame.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% "%romName%", %emuPath%, Hide UseErrorLevel
}
;*****************************NEO GEO POCKET COLOR**********************
else if (systemName = "Neo Geo Pocket Color" && executable = "NeoPop-Win32.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% "%romPath%%romName%%romExtension%", %emuPath%, UseErrorLevel
}
;***********************************NINTENDO 64**************************
else if (systemName = "Nintendo 64" && executable = "Project64.exe")
{
hideDesktop()
Sleep, 2000
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% "%romPath%%romName%%romExtension%", %emuPath%, Hide UseErrorLevel
}
;****************************NINTENDO ENTERTAINMENT SYSTEM****************
else if (systemName = "Nintendo Entertainment System" && executable = "Nestopia.exe")
{
Gui, Color, 000000
Gui -Caption +ToolWindow +AlwaysOnTop
Gui, Show, W%A_ScreenWidth% H%A_ScreenHeight%, BlackGui
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %executable% "%romPath%%romName%%romExtension%", %emuPath%, UseErrorLevel
Sleep, 2000
Gui, destroy
Process, waitClose, %executable%
exitapp
}
;***********************************Panasonic 3DO***********************
else if (systemName = "Panasonic 3DO" && executable = "FreeDO.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, "%EmuPath%%Executable%",,Hide UseErrorLevel
DetectHiddenWindows, on
WinShow, FreeDO Beta 1.6.2
WinWait, FreeDO Beta 1.6.2
ControlSend, , {F4}, FreeDO Beta 1.6.2
WinWaitActive, FreeDO Beta 1.6.2
SendInput, {ALTDOWN}f{ALTUP}{ENTER}
IfWinNotActive, Open, Common Places Host W
WinActivate, Open, Common Places Host W
WinWaitActive, Open, Common Places Host W
clipboard=
clipboard=%romPath%%romName%%romExtension%
ClipWait
Sleep,100
Send,^v
Sleep,100
send, {ENTER}
WinWait, FreeDO Beta 1.6.2
IfWinNotActive, FreeDO Beta 1.6.2, , WinActivate, FreeDO Beta 1.6.2,
WinWaitActive, FreeDO Beta 1.6.2,
SendInput, {ALTDOWN}c{ALTUP}{ENTER}{ENTER}
Process, WaitClose, FreeDO.exe
}
;***********************************SEGA 32X*************************
else if (systemName = "Sega 32X" && executable = "Fusion.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %Executable% "%romPath%%romName%%romExtension%" -auto -32X -fullscreen, %EmuPath%, Hide UseErrorLevel
Process, WaitClose, fusion.exe
}
;***********************************SEGA CD**************************
else if (systemName = "Sega CD" && executable = "Fusion.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %Executable% "%romPath%%romName%%romExtension%" -auto -scd -fullscreen, %EmuPath%, Hide UseErrorLevel
Process, WaitClose, %Executable%
exitapp
}
;*********************************dreamcast********************************
else if (systemName = "dreamcast" && executable = "nullDC_100b1_6.exe")
{
hideDesktop()
Run, %Executable% -config nulldc:Emulator.AutoStart=1 -config ImageReader:DefaultImage="%romPath%%romName%%romExtension%" -config ImageReader:loadDefaultImage=1 -config drkpvr:Fullscreen.Enabled=1, %EmuPath%, Hide UseErrorLevel
Process, wait, %Executable%, 10
Hotkey, %exitEmulatorKey%, CloseProcess
Process, waitclose, %Executable%
}
;*********************************SEGA Game Gear********************************
else if (systemName = "Sega Game Gear" && executable = "Fusion.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %Executable% "%romPath%%romName%%romExtension%" -auto -sms -fullscreen, %EmuPath%, Hide UseErrorLevel
Process, WaitClose, fusion.exe
}
;*********************************SEGA Genesis**********************************
else if (systemName = "Sega Genesis" && executable = "Fusion.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %Executable% "%romPath%%romName%%romExtension%" -auto -gen -fullscreen, %EmuPath%, Hide UseErrorLevel
Process, WaitClose, fusion.exe
}
;*******************************SEGA Master System******************************
else if (systemName = "Sega Master System" && executable = "Fusion.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %Executable% "%romPath%%romName%%romExtension%" -auto -sms -fullscreen, %EmuPath%, Hide UseErrorLevel
Process, WaitClose, fusion.exe
}
;***********************************SEGA MODEL 2*********************************
else if (systemName = "Sega Model 2")
{
if(executable = "emulator_multicpu.exe" || executable = "emulator.exe" )
{
;hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %executable% %romName%, %emuPath%, Hide UseErrorLevel
DetectHiddenWindows, on
WinWait, Model 2
WinShow
Process, WaitClose, %executable%
}
}
;***********************************SEGA Naomi***********************************
else if (systemName = "SEGA Naomi")
{
if(executable = "NAOMI.exe" || executable = "nullDC-Naomi_1.0.3_mmu.exe" )
SetWorkingDir, %emuPath%
Hotkey, %exitEmulatorKey%, CloseProcess
IniWrite, %romPath%%romName%%romExtension%, %A_WorkingDir%\DIMM.ini, Settings, image
Run, %executable% ; launches emulator
Process, WaitClose, %executable%
exitapp
}
;**********************************SEGA SATURN***********************************
else if (systemName = "Sega Saturn" && executable = "SSF.exe")
{
RunWait, %DAEMONTOOLS% -mount 0`,"%romPath%%romName%%romExtension%"
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %executable% , %emuPath%, UseErrorLevel
}
;********************************Sony Playstation*******************************
else if (systemName = "Sony Playstation" && executable = "psxfin.exe")
{
psxParams = -f
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %Executable% %psxParams% "%romPath%%romName%%romExtension%", %EmuPath%, Hide UseErrorLevel
DetectHiddenWindows, on
WinWait, ahk_class pSX
hideDesktop()
WinWaitClose, ahk_class pSX
}
;***********************Super Nintendo Entertainment System*********************
else if (systemName = "Super Nintendo Entertainment System" && executable = "zsnesw.exe")
{
hideDesktop()
SetKeyDelay, 250
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %Executable% "%romPath%%romName%%romExtension%", %EmuPath%
}
;**********************************Turbo Duo***********************************
else if (systemName = "Turbo Duo" && executable = "pce.exe")
{
RunWait, %DAEMONTOOLS% -mount 0`,"%romPath%%romName%%romExtension%"
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %executable% syscard3.pce , %emuPath%, UseErrorLevel
}
;**********************************TurboGrafx 16********************************
else if (systemName = "TurboGrafx 16" && executable = "Ootake.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, "%EmuPath%%Executable%" "%romPath%%romName%%romExtension%",,UseErrorLe vel
}
;***********************************JukeBox*************************************
else if (systemName = "Jukebox" && executable = "Silverjuke.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseJuke
RunWait, %emuPath%%executable% --kiosk, Hide UseErrorLevel
}
else if (systemName = "Jukebox" && executable = "SKJukebox.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %emuPath%%executable%, Hide UseErrorLevel
}
;***************************************Zinc************************************
else if (systemName = "Zinc" && executable = "zinc.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %Executable% %romName%, %EmuPath%, Hide UseErrorLevel
}

else
{
MsgBox,48,Error,%systemName% is an invalid System Name or %executable% isnt supported yet,6
}
;------------------------------------------------------------------------------;
; WHEN EMULATOR FINISHES OR IF LAUNCH EXE FAILS ;
;------------------------------------------------------------------------------;
;************PROBABLY DO NOT NEED TO EDIT THIS AREA*************

if (ErrorLevel = "ERROR")
{
MsgBox,48,Error,Failed to run executable check your paths,6
}
Goto ExitScript ; Exits script and returns to frontend


;------------------------------------------------------------------------------;
; KILL COMMANDS ;
;------------------------------------------------------------------------------;
;************PROBABLY DO NOT NEED TO EDIT THIS AREA*************

/*
Most emu's can be closed with CloseProcess when using a 2 key combo, if not set a custom
close.
*/
CloseJuke:
RunWait, %emuPath%%executable% --execute="program.shutdown(30);", Hide UseErrorLevel
return

CloseProcess:
Hotkey, %exitScriptKey%, Off
Process, Close, %Executable%
Process, WaitClose, %Executable%
Gui, Color, 000000
Gui -Caption +ToolWindow +AlwaysOnTop
Gui, Show, W%A_ScreenWidth% H%A_ScreenHeight%, BlackGui
return

ExitScript:
Process, Exist, HyperSpin.exe
PID := errorLevel
if (PID)
{
WinActivate, ahk_pid %PID%
WinWaitActive, ahk_pid %PID%
Gui, destroy
if (hideCursor)
SystemCursor("On")
if (hideTaskbar)
WinShow ahk_class Shell_TrayWnd
ExitApp
}


OnExit, ExitScript
return








;------------------------------------------------------------------------------;
; REST OF SCRIPT ;
;------------------------------------------------------------------------------;
;************PROBABLY DO NOT NEED TO EDIT THIS AREA*************



SystemCursor(OnOff=1) ; INIT = "I","Init"; OFF = 0,"Off"; TOGGLE = -1,"T","Toggle"; ON = others
{
static AndMask, XorMask, $, h_cursor
,c0,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13 ; system cursors
, b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12,b13 ; blank cursors
, h1,h2,h3,h4,h5,h6,h7,h8,h9,h10,h11,h12,h13 ; handles of default cursors
if (OnOff = "Init" or OnOff = "I" or $ = "") ; init when requested or at first call
{
$ = h ; active default cursors
VarSetCapacity( h_cursor,4444, 1 )
VarSetCapacity( AndMask, 32*4, 0xFF )
VarSetCapacity( XorMask, 32*4, 0 )
system_cursors = 32512,32513,32514,32515,32516,32642,32643,32644,32645,32646,32648,32649,32650
StringSplit c, system_cursors, `,
Loop %c0%
{
h_cursor := DllCall( "LoadCursor", "uint",0, "uint",c%A_Index% )
h%A_Index% := DllCall( "CopyImage", "uint",h_cursor, "uint",2, "int",0, "int",0, "uint",0 )
b%A_Index% := DllCall("CreateCursor","uint",0, "int",0, "int",0
, "int",32, "int",32, "uint",&AndMask, "uint",&XorMask )
}
}
if (OnOff = 0 or OnOff = "Off" or $ = "h" and (OnOff < 0 or OnOff = "Toggle" or OnOff = "T"))
$ = b ; use blank cursors
else
$ = h ; use the saved cursors

Loop %c0%
{
h_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 )
DllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% )
}
}
ToggleCursor:
SystemCursor("Toggle")
return

IniRead(Filename, Section, Key, Default = "") {
FileRead, text, *t %Filename%
text = `n%text%`n
StringTrimLeft, text, text, InStr(text, "`n[" . Section . "]`n")
Loop, 8 {
sp := sp . " "
StringReplace, text, text, %Key%%sp%=, %Key%=
If ErrorLevel
Break
}
start := InStr(text, "`n" . Key . "=")
If !start
Return, Default
start += StrLen(Key) + 2
StringMid, Value, text, start, InStr(text, "`n", false, start) - start
Return, Value
}

;Get Full Path from Relative Path
GetFullName( fn ) {
static buf, i
if !i
i := VarSetCapacity(buf, 512)
DllCall("GetFullPathNameA", "str", fn, "uint", 512, "str", buf, "str*", 0)
return buf
}

hideDesktop(){
;WinHide ahk_class Shell_TrayWnd
;Gui, +toolwindow
;Gui, -Caption
;Gui, Color, black
;Gui, show, +toolwindow Maximize
Gui, Color, 000000
Gui -Caption +ToolWindow
Gui, Show, W%A_ScreenWidth% H%A_ScreenHeight%, BlackScreen

}

CheckINI:
IfNotExist, %A_ScriptDir%\HyperSpin.exe
{
MsgBox,48,Error, Must be in same directory as HyperSpin.exe,6
Goto ExitScript
}
IfNotExist, %A_ScriptDir%\Settings\%systemName%.ini
{
MsgBox,48,Error,Cannot Find %A_ScriptDir%\Settings\%systemName%.ini,6
Goto ExitScript
}
return

CheckPaths:
romFound =
StringRight, emuPathBackSlash, EmuPath, 1
StringRight, romPathBackSlash, RomPath, 1

If (emuPathBackSlash != "\" || romPathBackSlash != "\")
{
MsgBox,48,Error, Make sure your paths contains a backslash on the end ,6
Goto ExitScript
}
If (executable = "")
{
MsgBox,48,Error, Missing executable in %systemName%.ini ,6
Goto ExitScript
}
If (romPath = "")
{
MsgBox,48,Error, Missing rom path in %systemName%.ini ,6
Goto ExitScript
}
If (emuPath = "")
{
MsgBox,48,Error, Missing emulator path in %systemName%.ini ,6
Goto ExitScript
}
IfNotExist, %EmuPath%%Executable%
{
MsgBox,48,Error,Cannot Find %EmuPath%%Executable%,6
Goto ExitScript
}
if(systemName != "zinc")
{
If (romExtensions = "")
{
MsgBox,48,Error, Missing rom extension in %systemName%.ini ,6
Goto ExitScript
}
Loop, parse, romExtensions, `,
{
inputVar = %A_LoopField%
StringLeft, charToCheck, inputVar, 1
If(charToCheck = ".")
{
MsgBox,48,Error, Make sure your rom extensions do not contain a ".",6
Goto ExitScript
}
IfExist %RomPath%%RomName%.%A_LoopField%
{
romExtension = .%A_LoopField%
romFound = true
break
}else{
IfExist %RomPath%%RomName%\%RomName%.%A_LoopField%
{
RomPath = %RomPath%%RomName%\
MsgBox %RomPath%
romExtension = .%A_LoopField%
romFound = true
break
}else{
romFound = false
}
}
}
}
if (romFound = "false")
{
if(systemName != "daphne"){
MsgBox,48,Error,Cannot find Rom - %RomPath%%RomName% with any provided extension,6
Goto ExitScript
}else{
MsgBox,48,Error,Cannot find Daphne framefile - %RomPath%%RomName% with any provided extension,6
Goto ExitScript
}
}
return
Grazie 1000 ancora e let me know :-D
Project Cocktail Cab Ikea: viewtopic.php?f=21&t=5726

Immagine
1°Cosmo gang the video: 1.879.510
1°Black Tiger: 211.250
Recods: Cosmo gang the video: 3.262.570


Rispondi

Chi c’è in linea

Visitano il forum: Bing [Bot] e 1 ospite