proghodet Posted January 7, 2017 Share Posted January 7, 2017 Hey! I'm trying to get an emulator (no$GBA) to press ctrl+r, for it to enable the noise supression on start - somehow it's not on by default, and it turns itself off whenever i exit the emulator. I'm would also like to assign the escape key to alt+x, since the emulator in question actually crashes if i press the escape key. What i have so far (keep in mind, I have just searched the web for this, I do not know how to write this script language properly..) SendMode, Input ; Sleep (How long to wait in milliseconds between moves.) SleepAmount = 1000 Sleep, %sleepamount% Send {ctrl}r Esc:: {Alt}x When I run the emulator, none of this happens. I've tried using just one at a time, and many other variations on this. Is there something I need to do within LaunchBox (or within windows) to activate autohotkey? Is there anyone who knows this scripting language better than me? (Doesn't take much, I assure you!) Quote Link to comment Share on other sites More sharing options...
Crush Posted January 8, 2017 Share Posted January 8, 2017 The easiest way to map a key or gamepad button to an emulator shortcut is: ; Warp mode On/Off 4Joy15:: Send !{q} Return I use this to enable Warp mode (ALT+Q) in Hoxs64 (C64 emu) The first line is a comment, so you can ignore it. The second line tells AutoHotKey that i want to map button 15 on my fourth gamepad Third line is the actual keypress sent: ALT and q (NOTE: ! means ALT. See: https://autohotkey.com/docs/Hotkeys.htm ) Quote Link to comment Share on other sites More sharing options...
proghodet Posted January 15, 2017 Author Share Posted January 15, 2017 Thanks to you, I finally got it figured out! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.