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 

On and Off?

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



Joined: 01 Jun 2008
Posts: 1

PostPosted: Sun Jun 01, 2008 8:03 am    Post subject: On and Off? Reply with quote

Im making a small autoclicker program for a game and i would like to know how to turn it on and off, here is what i have so far:

Code:
::/click::
Loop
{
Click
Sleep 1000
}



^ Thats simple, but effective.. as you can see it starts clicking when you type /click i would like it to stop clicking when i type /stop. Any ideas?

EDIT: I figured it out myself, now im wondering how to make it so you can pick how many milliseconds per click, like you would type /click AMMOUNT
Back to top
View user's profile Send private message
twhyman



Joined: 07 Dec 2005
Posts: 218

PostPosted: Tue Jun 03, 2008 11:28 am    Post subject: Reply with quote

Hi,

You create a hotkey that calls an input box and type the new sleep ms time.

Twhyman
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 6772
Location: Pacific Northwest, US

PostPosted: Tue Jun 03, 2008 6:52 pm    Post subject: Reply with quote

Please click on the link in my sig. It answers your question.
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   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