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 

how to add start/stop on clicker

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



Joined: 21 Nov 2009
Posts: 5

PostPosted: Sat Nov 21, 2009 2:19 pm    Post subject: how to add start/stop on clicker Reply with quote

I got this:

Loop
{
Click
Sleep, 200
}

But how do get a start/stop function with this... ie using numlock or any other key... dont really matter.
Back to top
View user's profile Send private message
Guest






PostPosted: Sat Nov 21, 2009 4:20 pm    Post subject: Reply with quote

check help file on Pause, just use it as a hotkey
Back to top
jaco0646



Joined: 07 Oct 2006
Posts: 1770
Location: MN, USA

PostPosted: Sat Nov 21, 2009 4:21 pm    Post subject: Reply with quote

How can a repeating action be stopped without exiting the script? AutoHotkey FAQ
_________________
http://autohotkey.net/~jaco0646/
Back to top
View user's profile Send private message Visit poster's website
Kimmi



Joined: 21 Nov 2009
Posts: 5

PostPosted: Sun Nov 22, 2009 12:02 am    Post subject: Reply with quote

Code:

^!p::Pause
Loop
{
Click
Sleep, 200
}


I tryed this and buch of other pause keys but it doesnt seem to work, now the script wont start at all... what am I missing here?
Back to top
View user's profile Send private message
Guest






PostPosted: Sun Nov 22, 2009 12:09 am    Post subject: Reply with quote

hotkeys go at the end
Code:


Loop
{
Click
Sleep, 200
}
^!p::Pause
 
Back to top
Kimmi



Joined: 21 Nov 2009
Posts: 5

PostPosted: Thu Nov 26, 2009 4:24 pm    Post subject: Reply with quote

Anonymous wrote:
hotkeys go at the end
Code:


Loop
{
Click
Sleep, 200
}
^!p::Pause
 


well this didnt pause for me.

What is wrong ??
Back to top
View user's profile Send private message
Vade



Joined: 14 Jun 2008
Posts: 5

PostPosted: Thu Nov 26, 2009 6:32 pm    Post subject: Reply with quote

SetTimer will do the job.
Code:
^s::setTimer, Clicker, 200    ;start
^p::setTimer, Clicker, off    ;pause

Clicker:
    click
return
Back to top
View user's profile Send private message
Kimmi



Joined: 21 Nov 2009
Posts: 5

PostPosted: Thu Nov 26, 2009 7:13 pm    Post subject: Reply with quote

Vade wrote:
SetTimer will do the job.
Code:
^s::setTimer, Clicker, 200    ;start
^p::setTimer, Clicker, off    ;pause

Clicker:
    click
return


Thanx, I just tryed it but I didnt work, Im a little confused tho, do you meen I should add this to my initial code, or just use the one you gave me.
Back to top
View user's profile Send private message
Vade



Joined: 14 Jun 2008
Posts: 5

PostPosted: Fri Nov 27, 2009 12:14 am    Post subject: Reply with quote

Kimmi wrote:
Thanx, I just tryed it but I didnt work, Im a little confused tho, do you meen I should add this to my initial code, or just use the one you gave me.


Just the one I gave you. SetTimer replaces the Loop.
Back to top
View user's profile Send private message
Kimmi



Joined: 21 Nov 2009
Posts: 5

PostPosted: Sat Nov 28, 2009 1:11 pm    Post subject: Reply with quote

Vade wrote:
Kimmi wrote:
Thanx, I just tryed it but I didnt work, Im a little confused tho, do you meen I should add this to my initial code, or just use the one you gave me.


Just the one I gave you. SetTimer replaces the Loop.


then I must be doing something wrong... whats the command to start stop?

ctrl+s and ctrl+p ?
Back to top
View user's profile Send private message
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