Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: chrisindfw on June 26, 2004, 03:48:36 pm

Title: When does mamewah.cfg update?
Post by: chrisindfw on June 26, 2004, 03:48:36 pm
I am trying to work on an application that will change my lcd screen when the user changes the emulator?

At first I thought I could just watch the Mamewah.cfg file for when the "Current Emulator" changes. But after testing, it looks like that doesnt get updated until you exit mamewah.

Anyone know of a way to trap when a user changes emulators other than trying to trap the key press?

If I put a .bat file in place of the winipac would that load when I switched emulators?

Title: Re:When does mamewah.cfg update?
Post by: papaschtroumpf on June 26, 2004, 10:46:44 pm
very klugdy but you my try AutoIt. it'll "read" the current window and allow to script actions based on the results.
Title: Re:When does mamewah.cfg update?
Post by: chrisindfw on June 27, 2004, 06:41:57 pm
Thanks... Il try it...

Minwah... How does Mamewah use the ipac filename? I am wondering if I can stick an bat file in there to run it?

Just a thought


very klugdy but you my try AutoIt. it'll "read" the current window and allow to script actions based on the results.
Title: Re:When does mamewah.cfg update?
Post by: Minwah on June 27, 2004, 07:31:18 pm
Thanks... Il try it...

Minwah... How does Mamewah use the ipac filename? I am wondering if I can stick an bat file in there to run it?

Well it doesn't get used until a game is launched...I can't think of how you can do this atm  :(

I hope to add some LCD support soon so I will bear it in mind ;)
Title: Re:When does mamewah.cfg update?
Post by: chrisindfw on June 27, 2004, 09:32:45 pm
Thanks! I know alot of the lcd panels out there use batch files to load them.

Other than that... A great product... I wish I could see the code you have for the layout designer. I could use it to help me at my job. lol


Thanks... Il try it...

Minwah... How does Mamewah use the ipac filename? I am wondering if I can stick an bat file in there to run it?

Well it doesn't get used until a game is launched...I can't think of how you can do this atm  :(

I hope to add some LCD support soon so I will bear it in mind ;)
Title: Re:When does mamewah.cfg update?
Post by: Minwah on June 28, 2004, 09:38:29 am
Thanks! I know alot of the lcd panels out there use batch files to load them.

Other than that... A great product... I wish I could see the code you have for the layout designer. I could use it to help me at my job. lol

Drop me an email if there's something specific you're interested in...I won't give you the whole lot but I don't mind giving you a start ;)
Title: Re:When does mamewah.cfg update?
Post by: papaschtroumpf on June 28, 2004, 12:30:18 pm
Minwah,
How about you copy something to the clipboard (or a file) that describe the "state" of the FE? For example a fixed format string like [emulator][Rom name unser the cursor][status] that someone would parse? (Status could be list/launched/...?)
It seems I have seen this type of request more than once and using the clipboard should be easy for you to do rather than messing with files or sockets.
Title: Re:When does mamewah.cfg update?
Post by: Minwah on June 28, 2004, 01:12:21 pm
Minwah,
How about you copy something to the clipboard (or a file) that describe the "state" of the FE? For example a fixed format string like [emulator][Rom name unser the cursor][status] that someone would parse? (Status could be list/launched/...?)
It seems I have seen this type of request more than once and using the clipboard should be easy for you to do rather than messing with files or sockets.

Well I've already done something to add the romname / description to the caption of the main form (window) - I could easily add the emulator name etc. to that - would that be any good here?
Title: Re:When does mamewah.cfg update?
Post by: chrisindfw on June 29, 2004, 01:58:25 pm
Well.. I wrote a little program that looks at the cfg file and based on what emulator is loaded, loads a batch file that makes the proper screen on my lcd panel.

Then it starts mamewah...

When you change the emulator, it then changes the lcd screen.

So when you go to the nintendo emu, the screen shows..

Nintendo

Player 1
o o -
- - -  
Title: Re:When does mamewah.cfg update?
Post by: bioart on June 29, 2004, 04:18:38 pm
Thanks... Il try it...

Minwah... How does Mamewah use the ipac filename? I am wondering if I can stick an bat file in there to run it?


I hope to add some LCD support soon so I will bear it in mind ;)

Oh yes!, Oh yes!, Oh Yes!

:)