Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Prochaine révision Les deux révisions suivantes | ||
tutos:software:systemes:camputers_lynx [2017/01/08 12:11] nabubokon |
tutos:software:systemes:camputers_lynx [2017/01/08 13:51] nabubokon [Module AHK] |
||
---|---|---|---|
Ligne 48: | Ligne 48: | ||
Utiliser ce module: | Utiliser ce module: | ||
- | Module | + | <wrap info>Module |
- | settingsFile := modulePath . "\" . moduleName . " | + | Module MEmu = Jynx \\ |
- | Run(executable, | + | MEmuV = v1.07 \\ |
- | WinWait(" | + | MURL = [[http:// |
- | If InStr(romName, | + | MAuthor = craiganderson \\ |
+ | |||
+ | MVersion = 1.0 \\ | ||
+ | |||
+ | MCRC = \\ | ||
+ | |||
+ | iCRC = \\ | ||
+ | |||
+ | MID = \\ | ||
+ | |||
+ | MSystem = " | ||
+ | |||
+ | ; | ||
+ | |||
+ | ;Game Info \\ | ||
+ | |||
+ | ; Moonfall: The french (fr) rom seems to work better that the other two. \\ | ||
+ | |||
+ | ; Dungeon Adventure: The name of the rom must include " | ||
+ | |||
+ | ; Colossal Adventure: Same as Dungeon Adventure. Must include " | ||
+ | |||
+ | ; Several ROMS have been modified (i.e. multiple tapes combined to one tape OR " | ||
+ | |||
+ | ; Full screen can be set in HLHQ \\ | ||
+ | |||
+ | ; If RUN is not being typed on the screen in the games that need it, increase the value below in the module from Sleep, 6000 to maybe Sleep, 8000 (see text below in module). \\ | ||
+ | |||
+ | ; | ||
+ | |||
+ | BlockInput, On \\ | ||
+ | |||
+ | StartModule() \\ | ||
+ | |||
+ | BezelGUI() \\ | ||
+ | |||
+ | FadeInStart() \\ | ||
+ | |||
+ | 7z(romPath, romName, romExtension, | ||
+ | |||
+ | settingsFile := modulePath . " | ||
+ | |||
+ | Fullscreen := IniReadCheck(settingsFile, | ||
+ | |||
+ | BezelStart(" | ||
+ | |||
+ | \\ | ||
+ | |||
+ | Run(executable, | ||
+ | |||
+ | \\ | ||
+ | |||
+ | WinWait(" | ||
+ | |||
+ | WinWaitActive(" | ||
+ | |||
+ | If InStr(romName, | ||
+ | |||
+ | { | ||
+ | |||
+ | WinMenuSelectItem, | ||
+ | |||
+ | \\ | ||
+ | Sleep, 10 | ||
+ | |||
+ | } | ||
+ | |||
+ | else | ||
+ | |||
+ | If InStr(romName, | ||
+ | |||
+ | { | ||
+ | |||
+ | WinMenuSelectItem, | ||
+ | |||
+ | Sleep, 10 | ||
+ | |||
+ | } | ||
+ | |||
+ | else | ||
+ | |||
+ | { | ||
+ | |||
+ | WinMenuSelectItem, | ||
+ | |||
+ | Sleep, 10 | ||
+ | |||
+ | } | ||
Sleep, 500 | Sleep, 500 | ||
Ligne 62: | Ligne 149: | ||
WinMenuSelectItem, | WinMenuSelectItem, | ||
- | WinWait(" | + | WinWait(" |
+ | |||
+ | WinWaitActive(" | ||
+ | |||
+ | Sleep, 1000 | ||
+ | |||
+ | Loop | ||
+ | |||
+ | { | ||
+ | |||
+ | ControlGetText, | ||
+ | |||
+ | If ( edit1Text = romPath . " | ||
+ | |||
+ | Break | ||
+ | |||
+ | Sleep, 100 | ||
+ | |||
+ | ControlSetText, | ||
+ | |||
+ | } | ||
+ | |||
+ | ControlSend, | ||
+ | |||
+ | WinWait(" | ||
+ | |||
+ | WinWaitActive(" | ||
+ | |||
+ | Sleep, 6000 ; increase this value if RUN is not being typed on the games that need it. | ||
+ | |||
+ | SetKeyDelay, | ||
+ | |||
+ | Send, {r down}{r up}{u down}{u up}{n down}{n up}{ENTER down}{ENTER up} | ||
+ | |||
+ | Sleep,100 | ||
+ | |||
+ | \\ | ||
+ | If Fullscreen = true | ||
+ | |||
+ | { | ||
+ | |||
+ | Sleep, 10 | ||
+ | |||
+ | WinMenuSelectItem, | ||
+ | |||
+ | } | ||
+ | |||
+ | Sleep, | ||
+ | |||
+ | BlockInput, Off | ||
+ | |||
+ | BezelDraw() | ||
+ | |||
+ | FadeInExit() | ||
+ | |||
+ | Process(" | ||
+ | |||
+ | 7zCleanUp() | ||
+ | |||
+ | BezelExit() | ||
+ | |||
+ | FadeOutExit() | ||
+ | |||
+ | ExitModule() | ||
- | Loop { ControlGetText, | + | CloseProcess: |
- | WinWait("Jynx ahk_class # | + | FadeOutStart() |
- | Sleep,100 If Fullscreen = true { Sleep, 10 WinMenuSelectItem, Jynx ahk_class #32770, , Display, Full screen } | + | Process, Close, Jynx-Windows-64bit.exe |
- | Sleep,1000 BlockInput, Off | + | Process, Close, Jynx-Windows-32bit.exe |
- | BezelDraw() FadeInExit() Process(" | + | Return |
- | CloseProcess: | + | </ |
Marche parfaitement | Marche parfaitement | ||