Software Support > PowerMAME

Showing CP while game is paused

<< < (4/7) > >>

headkaze:
I was experimenting using a keyboard hook to detect a keypress. Then if it finds the Mame process by searching for "MAME:" in the titlebar it will get the ROM name which is in square brackets at the end of the title bar eg. [1942], it will then minimise Mame and launch a program passing the ROM name as a parameter. I don't know if it works better than using an AHK script, but feel free to use the code if it works any better. It works pretty quick, but I guess it's the generation of the CP that is slow. What part of displaying a CP using an external viewer is slow? Is it reading the control.ini file? Generating the graphics? Perhaps writing the actual viewer in very lean C++ might speed things up a bit?

Anyway below is the keyboard hook code an external viewer launcher..

CPLaunch.zip

Buddabing:

--- Quote from: RobotronNut on April 12, 2006, 03:28:09 am ---
also, i like looking at a photo of the original arcade panel, together with a j5 image simultaneously. do any of the paused cp viewers support that?


--- End quote ---

CPMaker will support marquee and control panel images in version v0.105. If farmboy90 or someone else puts the code into PowerMAME, then PowerMAME will have that capability as well.

Viva la open source!

RobotronNut:

--- Quote from: Buddabing on April 14, 2006, 11:16:17 am ---CPMaker will support marquee and control panel images in version v0.105.

--- End quote ---

niiiiice!

headkaze:

--- Quote from: Howard_Casto on April 12, 2006, 03:44:09 pm ---I always intended on giving the ability to display a dedicated image for each rom, but I haven't gotten around to it yet.  The main reason behind it is that control panel packs are in png format and j5 doesn't support pngs natively.  I'd have to add the stupid old paintX.dll back in, which sucks. 

--- End quote ---

Dosn't J5 use GDI+ for graphics display? Because GDI+ natively supports PNG format if it is.

Howard_Casto:
j5 uses gdi as it is a vb app.  Vb can't natively load pngs without help.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version