Page 1 sur 1

Dice

Publié : 03 mai 2016 - 10:58
par micaelo14
Dice

[BBvideo 560,340][/BBvideo]

Image

Les prémices du JV :lol:

Utiliser l'émulateur Dice

Paramétrer RL ainsi:

Image

Utiliser ce module:
Dice
MEmu = Dice
MEmuV = v0.9
MURL = http://adamulation.blogspot.com/" onclick="window.open(this.href);return false;
MAuthor = djvj
MVersion = 2.0.2
MCRC = 279900D6
iCRC = 1E716C97
MID = 635038268883967308
MSystem = "DICE"
;----------------------------------------------------------------------------
; Notes:
; Create 4 txt files in the emu dir, one each for Gotcha, Pong, Rebound and SpaceRace.
; romExtension should be txt
; Point both emu and rom dirs to the dir that contains Dice.exe
; Dice stores its config in your user dir: C:\Users\username\AppData\Roaming\dice
;----------------------------------------------------------------------------
StartModule()
BezelGui()
FadeInStart()

settingsFile := modulePath . "\" . moduleName . ".ini"
Fullscreen := IniReadCheck(settingsFile, "Settings", "Fullscreen","true",,1)

BezelStart()
hideEmuObj := Object("DICE ahk_class phoenix_window",1) ; Hide_Emu will hide these windows. 0 = will never unhide, 1 = will unhide later
7z(romPath, romName, romExtension, 7zExtractPath)

StringLower, romName, romName ; the rom's name must be passed lowercase to the emu otherwise it doesn't work

fullscreen := If fullscreen = "true" ? "" : " -window"

HideEmuStart()

Run(executable . " " . romName . fullscreen, emuPath, "Hide") ; need Hide here otherwise the app pops into view over our GUI

WinWait("DICE ahk_class phoenix_window")

Control, Hide, , msctls_statusbar321, DICE ahk_class phoenix_window ; Removes the StatusBar

WinActivate, DICE ahk_class phoenix_window ; dice 0.8 does not give focus properly, this ensures it gets focus
WinWaitActive("DICE ahk_class phoenix_window") ; dice 0.8 has a status bar at the bottom
Control, Hide, , msctls_statusbar321, DICE ahk_class phoenix_window ; Removes the StatusBar
BezelDraw()
Sleep, 1000 ; small sleep required ottherwise your Front End can flash back into view

HideEmuEnd()
FadeInExit()
Process("WaitClose", executable)
7zCleanUp()
BezelExit()
FadeOutExit()
ExitModule()


CloseProcess:
FadeOutStart()
WinClose("DICE ahk_class phoenix_window")
Return
Fonctionne impec :D