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 

Newb asking, a simple loop

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





PostPosted: Sat Mar 21, 2009 12:31 pm    Post subject: Newb asking, a simple loop Reply with quote

Hi Im playing a game, and I only want it to spam button ingame "2" for every 3 sec 50 times,

pls help me out...
Back to top
Montu



Joined: 11 Feb 2009
Posts: 142
Location: India

PostPosted: Sat Mar 21, 2009 1:16 pm    Post subject: Reply with quote

press Control 1 for this to work
Code:

^1::
loop, 50
{
send, 2
sleep 3000
}
return
Back to top
View user's profile Send private message
menaphus



Joined: 28 Nov 2008
Posts: 111
Location: United Kingdom

PostPosted: Sat Mar 21, 2009 2:57 pm    Post subject: Reply with quote

Code:
!x::
Loop, 50
{
Send, 2
Sleep, 3000
}
Return
;you need to press Alt + x to send the code


or remove the first line to have it work without the need of a button press
_________________
Adam
http://moourl.com/8w0tx
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bennon
Guest





PostPosted: Sat Mar 21, 2009 3:41 pm    Post subject: Reply with quote

Thx very much, worked well!
Back to top
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