Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: shateredsoul on July 26, 2010, 08:46:49 pm

Title: help with autohotkey (aka hyperlaunch) and hyperspin
Post by: shateredsoul on July 26, 2010, 08:46:49 pm
Hi so I can't ask for help about this on the hyperspin forum because it's about the Nintendo DS.  So initially I was able to get desmume to launch just fine.  All I needed as for autohotkey to presse alt + enter for me.  I also had it wait 8 seconds, for testing.  That should be more than enough time for desmume to launch. 

Well the result really confused me.  When launched, "alt+enter" is never pressed. Instead it seems to activate the sleep mode when I exit back to hyperspin. When I have the sleep line in there it seems to take about 8 seconds to exit when I take the line out it exits instantly.  Any ideas why alt+enter and the sleep command are being sent on exit? and why this is not happening right after the launche of desmume.

else if (systemName = "Nintendo DS" && executable = "desmume_x64.exe")
{
    hideDesktop()
    Hotkey, %exitEmulatorKey%, CloseProcess
    RunWait, "%emuPath%%executable%" "%romPath%%romName%%romExtension%"
    Sleep, 8000
    Send !{enter}

    Process, WaitClose, desmume_64.exe
   
}
Title: Re: help with autohotkey (aka hyperlaunch) and hyperspin
Post by: brian_hoffman on July 27, 2010, 01:17:24 am
Its because Runwait will *RUN* the specified program and *wait* for it to finish before continuing. EG, await till the process exits.

Happy Gaming

Use RUN instead
Title: Re: help with autohotkey (aka hyperlaunch) and hyperspin
Post by: shateredsoul on July 27, 2010, 11:22:07 am
very nice! thanks, worked like a charm!