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: help with autohotkey (aka hyperlaunch) and hyperspin  (Read 4526 times)

0 Members and 1 Guest are viewing this topic.

shateredsoul

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1412
  • Last login:January 25, 2013, 08:23:51 pm
help with autohotkey (aka hyperlaunch) and hyperspin
« 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
   
}

brian_hoffman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 131
  • Last login:July 02, 2011, 09:02:20 pm
Re: help with autohotkey (aka hyperlaunch) and hyperspin
« Reply #1 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

shateredsoul

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1412
  • Last login:January 25, 2013, 08:23:51 pm
Re: help with autohotkey (aka hyperlaunch) and hyperspin
« Reply #2 on: July 27, 2010, 11:22:07 am »
very nice! thanks, worked like a charm!