Jump to content

script restores and positions xpadder on screen during gameplay


craiganderson

Recommended Posts

Hello,

still playing with the camputers lynx system

Rather than making a bezel with the xpadder profile on it for each game I decided to play around with the module and see if I could simply use the module to restore and position the xpadder window on the screen as well as re-position the emulator (and hide menu bar and title bar)

I think its pretty cool.

I have bezels off.

I have hide desktop and hide frontend to true.

I have fade OFF

The module positions the emulator window off to the left and then hides the menu bar and title bar....so it kinda looks like it in a bezel anyway.

(but not a fancy one or anything)

and then the xpadder active window is positioned on the screen as well...so that the user can see what each button does while playing the game

the weird thing is (as a side note), the xpadder buttons dont light up for some reason although they are clearly working as u can see by me playing the game

FACa43pJw2U

doing something like this might be a nice option to think about on some other systems that require many different xpadder profiles for different games

\just a thought

MEmu = Jynx
MEmuV =  v1.07
MURL = http://jynx-emulator.tumblr.com/
MAuthor = craiganderson
MVersion = 1.0
MCRC = 
iCRC =
MID = 
MSystem = "Camputers Lynx"
;----------------------------------------------------------------------------
; Game Info
; Moonfall: The french (fr) rom seems to work better that the other two.
; Dungeon Adventure: The name of the rom must include "Dungeon" or "dungeon." The module changes the display setting if either of those words are in the rom. 
; Colossal Adventure: Same as Dungeon Adventure. Must include "Colossal" or "colossal" in rom name.
; Several ROMS have been modified (i.e. multiple tapes combined to one tape OR "fixed" for other reasons) in order to make them playable. These include Dungeon Adventure, Colossal Adventure, Mazeman, Power Blaster. PM Me if you need these roms.
; 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, 7zExtractPath)

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

Run(executable, emuPath)

WinWait("Jynx ahk_class #32770")
WinWaitActive("Jynx ahk_class #32770")

If InStr(romName, "Dungeon") or InStr(romName, "dungeon")
{
   WinMenuSelectItem, Jynx ahk_class #32770, , Display, Level 9 game colours
   Sleep, 10
}
else
If InStr(romName, "Colossal") or InStr(romName, "colossal")
{
   WinMenuSelectItem, Jynx ahk_class #32770, , Display, Level 9 game colours
   Sleep, 10
}
else
{
WinMenuSelectItem, Jynx ahk_class #32770, , Display, Normal Lynx colours
   Sleep, 10
}

Sleep, 500

WinMenuSelectItem, Jynx ahk_class #32770, , File, Run TAP file ...

WinWait("Open Lynx TAP file ahk_class #32770")
WinWaitActive("Open Lynx TAP file ahk_class #32770")
Sleep, 1000

Loop {
	ControlGetText, edit1Text, Edit1, Open Lynx TAP file ahk_class #32770
	If ( edit1Text = romPath . "\" . romName . romExtension )
		Break
	Sleep, 100
	ControlSetText, Edit1, %romPath%\%romName%%romExtension%, Open Lynx TAP file ahk_class #32770
}
ControlSend, Button1, {Enter}, Open Lynx TAP file ahk_class #32770

WinWait("Jynx ahk_class #32770")
WinWaitActive("Jynx ahk_class #32770")
Sleep, 6000 ; increase this value if RUN is not being typed on the games that need it.
SetKeyDelay, 50
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, Jynx ahk_class #32770, , Display, Full screen
}

Sleep,10
BlockInput, Off

BezelDraw()
WinRestore, Xpadder
WinWait, Xpadder
WinMove, 666, 44

Sleep, 100

WinActivate, Jynx ahk_class #32770
WinRestore, Jynx ahk_class #32770
WinWait, Jynx ahk_class #32770
WinMove, 50, 25
DllCall("SetMenu", uint, WinActive( "A" ), uint, 0)
Sleep,10
WinSet, Style, -0xC00000, A

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


CloseProcess:
FadeOutStart()
Process, Close, Jynx-Windows-64bit.exe
Process, Close, Jynx-Windows-32bit.exe
Return

craig

Link to comment
Share on other sites

I've been looking for a way to get Xpadder to STAY VISIBLE on a second screen, when I launch HS... So that I can see what profiles it's loading when I enter and exit different emus.

Xpadder INSIST on minimizing every godamn time It loads/switches profiles. I have turned off all options related to minimizing, but it still does it.

All I want the window to do is stay where I put it and not minimize, but alas it will not

Link to comment
Share on other sites

I've been looking for a way to get Xpadder to STAY VISIBLE on a second screen, when I launch HS... So that I can see what profiles it's loading when I enter and exit different emus.

Xpadder INSIST on minimizing every godamn time It loads/switches profiles. I have turned off all options related to minimizing, but it still does it.

All I want the window to do is stay where I put it and not minimize, but alas it will not

this is for one emulator only

sorry...i do not know how to do it on a hyperspin wide basis

but im sure somebody else does

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...