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: small batch file needed  (Read 1665 times)

0 Members and 1 Guest are viewing this topic.

tony.silveira

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 697
  • Last login:September 27, 2024, 03:04:35 pm
    • my baby
small batch file needed
« on: April 24, 2010, 09:32:34 pm »
hi all,

i'm trying to incorporate freedo 2.02 ALFA into my machine but i'm having a small issue.  this release was taken on by a russian programmer so none of the options are in english.

when i start the emu thru mamewah, it starts out in a window and i have to use one of the menu options to actually start the emulator.

i'd love to have a batch file run the key codes needed to fully launch the emu into full screen and run it but i know diddly about batch files.  if anyone can help, i am indebted.  here are the key presses that i would like to send when starting the emu:

ALT, right arrow, down arrow, enter, F10

thank you all for your time
« Last Edit: April 24, 2010, 09:55:18 pm by tony.silveira »

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: small batch file needed
« Reply #1 on: April 24, 2010, 11:35:28 pm »
Take a look at AutoHotkey

tony.silveira

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 697
  • Last login:September 27, 2024, 03:04:35 pm
    • my baby
Re: small batch file needed
« Reply #2 on: April 25, 2010, 01:06:22 am »
thanks kaze.  i gave it a try but it doesn't seem to work.  i think it's because of the name of the window when it's open, i don't think all of the extra characters are agreeing with AHK, here is what the window is named:

FreeDO v2.02 Alfa!+++ FPS 60`, INTFPS 60

it shows the fps which are always fluctuating so i don't think it can lock in on the window.

i appreciate the idea, this will work for some other stuff for me so thank you!

any other thoughts?

Take a look at AutoHotkey

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?

tony.silveira

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 697
  • Last login:September 27, 2024, 03:04:35 pm
    • my baby
Re: small batch file needed
« Reply #4 on: April 26, 2010, 07:51:30 pm »
thanks again, the script now works.

unfortunately, it doesn't work when launched thru my FE, mamewah.  when launched outside of my FE, it runs perfectly.

hopefully i'll get this thing working :)

qlunch

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 13
  • Last login:June 15, 2023, 08:55:09 am
Re: small batch file needed
« Reply #5 on: April 27, 2010, 05:37:53 pm »
I don't know what kind of behavior you are getting when it doesn't work but when using a script and an FE be sure to have the script run until you quit the emulator. I have a feeling that mamewah works similar to mala (what I use) in that the if you use a script to launch something and the script finishes before the program you're using it to launch, even though the emu is now running the fe sees the program it launched has started and exited so it will return to the fe.

Longwinded but be sure to have winwaitclose in there or something similar if this sounds familiar

gonzo90017

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1034
  • Last login:June 23, 2019, 02:41:07 pm
  • I'm a llama!
Re: small batch file needed
« Reply #6 on: April 28, 2010, 12:17:46 pm »
You need to convert the script to an .exe in order for it to work with Mamewah.

tony.silveira

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 697
  • Last login:September 27, 2024, 03:04:35 pm
    • my baby
Re: small batch file needed
« Reply #7 on: April 28, 2010, 03:23:57 pm »
thanks guys.  yes, converting to an exe worked, all good now.  thanks to all for the feedback!