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: Can someone help with a little ahk script for a shell?  (Read 1885 times)

0 Members and 1 Guest are viewing this topic.

Endprodukt

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 745
  • Last login:Today at 02:10:30 am
  • I want to build my own arcade controls!
Can someone help with a little ahk script for a shell?
« on: July 19, 2013, 07:57:17 am »
I need a batch that starts programs one after another and I can't seem to get it to work.

I first need to start a scrip that's giving me a desktop background in a custom shell, then hyperspin should launch which starts mamehooker as well.

That's my ahk:

Run,  c:\wallpaper.exe marqeuee.bmp

Sleep,  2000

Run, c:\hyperspin\hyperspin.exe

Doesn't work, what am I missing? Wallpaper app works, so does hyperspin that starts mamehooker, but the script doesn't launch one after another.

degenatrons

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 364
  • Last login:March 29, 2016, 05:53:23 pm
    • KADE
Re: Can someone help with a little ahk script for a shell?
« Reply #1 on: July 19, 2013, 08:08:15 am »
Code looks ok but you mispelled marquee in the BMP filename,  could that be it?

Endprodukt

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 745
  • Last login:Today at 02:10:30 am
  • I want to build my own arcade controls!
AW: Can someone help with a little ahk script for a shell?
« Reply #2 on: July 19, 2013, 08:17:45 am »
Oh, no its correct in the script.

Endprodukt

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 745
  • Last login:Today at 02:10:30 am
  • I want to build my own arcade controls!
AW: Can someone help with a little ahk script for a shell?
« Reply #3 on: July 19, 2013, 09:05:32 am »
Maybe that's a stupid question but does ahk need to be installed on the computer im using the ahk batch file on?

degenatrons

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 364
  • Last login:March 29, 2016, 05:53:23 pm
    • KADE
Re: Can someone help with a little ahk script for a shell?
« Reply #4 on: July 19, 2013, 09:10:10 am »
Maybe that's a stupid question but does ahk need to be installed on the computer im using the ahk batch file on?
yep,  unless you have compiled to .exe

Endprodukt

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 745
  • Last login:Today at 02:10:30 am
  • I want to build my own arcade controls!
AW: Can someone help with a little ahk script for a shell?
« Reply #5 on: July 19, 2013, 09:33:44 am »
I have compiled.

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9272
  • Last login:Today at 08:21:00 am
  • ...
Re: Can someone help with a little ahk script for a shell?
« Reply #6 on: July 19, 2013, 09:44:18 am »
I'm a dumb end-user, but here are my thoughts anyway.  :P

Doesn't work, what am I missing? Wallpaper app works, so does hyperspin that starts mamehooker, but the script doesn't launch one after another.

What exactly is happening?  Is the wallpaper app launching, but not Hyperspin? 
If that's the case, it might be waiting for the one program to close before opening the next.
I'm not sure about ahk, but in a batch file you'd make it:
start wallpaper.exe
to run them simultaneously. (Run,  start c:\wallpaper.exe marqeuee.bmp maybe?)


If the wallpaper app isn't launching, then will it launch if it's the only thing in the script?  If not, then does it depend on something that loads with explorer and isn't being loaded when shelled?

Endprodukt

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 745
  • Last login:Today at 02:10:30 am
  • I want to build my own arcade controls!
AW: Can someone help with a little ahk script for a shell?
« Reply #7 on: July 19, 2013, 01:04:37 pm »
Aah... Thanks for all the input. In the end it was the registry setting that started the wrong shell... :-D