Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: When does mamewah.cfg update?  (Read 1777 times)

0 Members and 1 Guest are viewing this topic.

chrisindfw

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 262
  • Last login:May 09, 2020, 05:57:34 pm
  • I drank what?
When does mamewah.cfg update?
« 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?


papaschtroumpf

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 972
  • Last login:July 23, 2013, 11:41:10 pm
  • Have a Cow!
Re:When does mamewah.cfg update?
« Reply #1 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.

chrisindfw

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 262
  • Last login:May 09, 2020, 05:57:34 pm
  • I drank what?
Re:When does mamewah.cfg update?
« Reply #2 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.

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re:When does mamewah.cfg update?
« Reply #3 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 ;)

chrisindfw

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 262
  • Last login:May 09, 2020, 05:57:34 pm
  • I drank what?
Re:When does mamewah.cfg update?
« Reply #4 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 ;)

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re:When does mamewah.cfg update?
« Reply #5 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 ;)

papaschtroumpf

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 972
  • Last login:July 23, 2013, 11:41:10 pm
  • Have a Cow!
Re:When does mamewah.cfg update?
« Reply #6 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.

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re:When does mamewah.cfg update?
« Reply #7 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?

chrisindfw

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 262
  • Last login:May 09, 2020, 05:57:34 pm
  • I drank what?
Re:When does mamewah.cfg update?
« Reply #8 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 -
- - -  

bioart

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 90
  • Last login:November 28, 2006, 11:38:14 pm
    • The ArtCade
Re:When does mamewah.cfg update?
« Reply #9 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!

:)