Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: Endprodukt on July 19, 2013, 07:57:17 am

Title: Can someone help with a little ahk script for a shell?
Post by: Endprodukt 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.
Title: Re: Can someone help with a little ahk script for a shell?
Post by: degenatrons on July 19, 2013, 08:08:15 am
Code looks ok but you mispelled marquee in the BMP filename,  could that be it?
Title: AW: Can someone help with a little ahk script for a shell?
Post by: Endprodukt on July 19, 2013, 08:17:45 am
Oh, no its correct in the script.
Title: AW: Can someone help with a little ahk script for a shell?
Post by: Endprodukt 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?
Title: Re: Can someone help with a little ahk script for a shell?
Post by: degenatrons 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
Title: AW: Can someone help with a little ahk script for a shell?
Post by: Endprodukt on July 19, 2013, 09:33:44 am
I have compiled.
Title: Re: Can someone help with a little ahk script for a shell?
Post by: BadMouth 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?
Title: AW: Can someone help with a little ahk script for a shell?
Post by: Endprodukt 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