I have a front end for several emulators..
one emulator will not go into fullscreen unless I press alt+enter
I tried
{enter}!
and it says that
"error at line 18"
Line Text: enter}!
Error: This line does not contain a recognized action.
The program will exit
I have no idea to go back in and edit it again.. it did it automatically the first itme I launched it.. can someone help me out?

how to get autohotkey to press "alt+enter" for me?
Started by
shateredsoul
, Mar 19 2010 05:35 AM
11 replies to this topic
#1
-
Posted 19 March 2010 - 05:35 AM

now i have
:{enter}! ::
and it says
Error at line 18.
Line text:{enter}! ::
Error: Invalid hotkey.
The program will exit
:{enter}! ::
and it says
Error at line 18.
Line text:{enter}! ::
Error: Invalid hotkey.
The program will exit
#2
-
Posted 19 March 2010 - 05:42 AM

#4
-
Posted 19 March 2010 - 05:52 AM

so would this work?
SendMode, Input
; Sleep (How long to wait in milliseconds between moves.)
SleepAmount = 50
Send {enter}!
SendMode, Input
; Sleep (How long to wait in milliseconds between moves.)
SleepAmount = 50
Send {enter}!
#5
-
Posted 19 March 2010 - 05:58 AM

SendMode, Input ; Sleep (How long to wait in milliseconds between moves.) SleepAmount = 50 [color=red]Sleep, %sleepamount%[/color] Send {enter}!
assuming you want to sleep the duration set in the variable (as opposed to just writing Sleep 50), I've fixed your code for you

#7
-
Posted 19 March 2010 - 06:03 AM

why would you put f9 at the beginning?
He put F9 at the beginning because he was turning F9 into a hotkey for Alt+Enter to demonstrate what the code would look like

#8
-
Posted 19 March 2010 - 06:03 AM

ahhh i see,
thank you guys you are really helpful, I just want to launch autohotkey.exe to prese the keys after a few seconds
I'm using a program called Maximus ARcade to launch several emulators, but one kept launching in windowed mode, Maximus arcade gives you the option of launching a program before the emulator, during, or after
so this helps a lot!
I'll let you guys know i fit works when I get to my desktop (it's currently not accessible)
Thanks!
I think this should work fine
thank you guys you are really helpful, I just want to launch autohotkey.exe to prese the keys after a few seconds
I'm using a program called Maximus ARcade to launch several emulators, but one kept launching in windowed mode, Maximus arcade gives you the option of launching a program before the emulator, during, or after
so this helps a lot!
I'll let you guys know i fit works when I get to my desktop (it's currently not accessible)
Thanks!
I think this should work fine
#9
-
Posted 19 March 2010 - 06:11 AM

I would use WinWaitActive
WinWaitActive , WinTitle ;Replace WinTitle with the actual title Send !{Enter}
#10
-
Posted 19 March 2010 - 06:19 AM

ok.. so it would be
WinWaitActive , PCSX2.exe ;Replace WinTitle with the actual title
Send !{Enter}
and I just ran across something.. when I launch the autohotkey.exe does it press alt+enter each time I launch it? Or does it have to assigned to a key (like the previous person who suggested f9)?
I'm trying to make it so launching this program alone will do alt+enter without any further button presses.
WinWaitActive , PCSX2.exe ;Replace WinTitle with the actual title
Send !{Enter}
and I just ran across something.. when I launch the autohotkey.exe does it press alt+enter each time I launch it? Or does it have to assigned to a key (like the previous person who suggested f9)?
I'm trying to make it so launching this program alone will do alt+enter without any further button presses.
#11
-
Posted 19 March 2010 - 06:24 AM

ok.. so it would be
WinWaitActive , PCSX2.exe ;Replace WinTitle with the actual title
Send !{Enter}
and I just ran across something.. when I launch the autohotkey.exe does it press alt+enter each time I launch it? Or does it have to assigned to a key (like the previous person who suggested f9)?
I'm trying to make it so launching this program alone will do alt+enter without any further button presses.
and by that i mean, the front end will automatically launch autohotkey.exe when it launches pcsx.exe and I want it to press "alt+enter" not to long after the game begins.
#12
-
Posted 19 March 2010 - 06:31 AM
