AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Macro for game

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
omgoakley



Joined: 20 Nov 2009
Posts: 1

PostPosted: Fri Nov 20, 2009 3:35 pm    Post subject: Macro for game Reply with quote

Hi, I'm new to autohotkey but am impressed with how much time it can save me at work and in-game.

ATM i'm trying to work a script I think Might be right? i've only skimmed over the help sections and am going to delve deeper into them when I get back home but this is what I have so far

Code:
+F2:
IfWinActive, Forsaken Ragnarok Online - forsaken-ro.net,
{
Loop 15
{
Send, {F2}
sleep 10

}
}
return


the Idea is to press the F2 button 15 Times using I think would be the shit and f2 button? I figured it would work after run script but no such luck so either its right and i'm doing something wrong with the script or the other way round.

thank for any help in advance.

[Title edited. Please write descriptive titles for your topics. ~jaco0646]
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 8255
Location: Maywood, IL

PostPosted: Fri Nov 20, 2009 3:40 pm    Post subject: Reply with quote

hotkeys need to have :: not just :

please use code tags in the forum, like this:

Code:

[code]
;your AHK code goes here
[/code]


Also, You probably need to put $ before +F2, so that when the script presses F2, it won't re-trigger your hotkey.

You might also want a keywait to wait for you to let go of the Shift key
_________________

(Common Answers)
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group