Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Help Needed: Number and Clicks


  • Please log in to reply
1 reply to this topic
AsianKong
  • Members
  • 1 posts
  • Last active: Nov 06 2015 10:03 AM
  • Joined: 29 Oct 2015

Can anyone help me with my script. I want to make a script like this:

 

1, Wait, Click, Wait

2, Wait, Click, Wait

3, Wait, Click, Wait

4, Wait, Click, Wait

5, Wait, Click, Wait

6, Wait, Click, Wait

7, Wait, Click, Wait

8, Wait, Click, Wait

9, Wait, Click, Wait

Wait 7 secs

Return

 

I want the wait to be around 0.5 secs. This is what i gathered so far:

 

#Persistent
SetTimer, PressTheKey,
Click, 10000
Return
 
Esc::ExitApp
 
PressTheKey:
Send, {1}
Sleep, 150   ;sleeps for 0.5 secs
 
Send, {2}
Sleep, 150   ;sleeps for 0.5 secs
 
Send, {3}
Sleep, 150   ;sleeps for 0.5 secs
 
Send, {4}
Sleep, 150   ;sleeps for 0.5 secs
 
Send, {5}
Sleep, 150   ;sleeps for 0.5 secs
 
Send, {6}
Sleep, 150   ;sleeps for 0.5 secs
 
Send, {7}
Sleep, 150   ;sleeps for 0.5 secs
 
Send, {8}
Sleep, 150   ;sleeps for 0.5 secs
 
Send, {9}
Sleep, 150   ;sleeps for 0.5 secs
 
Send, {0}
Sleep, 150   ;sleeps for 0.5 secs
Return


Jackie Sztuk _Blackholyman
  • Spam Officer
  • 3757 posts
  • Last active: Apr 03 2016 08:47 PM
  • Joined: 28 Feb 2012
#Persistent
 
Sleep, 500   ;sleeps for 0.5 secs
 
Send, 1
Sleep, 500   ;sleeps for 0.5 secs
Click
Send, 2
Sleep, 500   ;sleeps for 0.5 secs
Click
Send, 3
Sleep, 500   ;sleeps for 0.5 secs
Click
Send, 4
Sleep, 500   ;sleeps for 0.5 secs
Click
Send, 5
Sleep, 500   ;sleeps for 0.5 secs
Click
Send, 6
Sleep, 500   ;sleeps for 0.5 secs
Click
Send, 7
Sleep, 500   ;sleeps for 0.5 secs
Click
Send, 8
Sleep, 500   ;sleeps for 0.5 secs
Click
Send, 9
Sleep, 500  ;sleeps for 0.5 secs
Click
Send, 0
Sleep, 500   ;sleeps for 0.5 secs
Click
Return
 
Esc::ExitApp
or

#Persistent

Sleep, 500   ;sleeps for 0.5 secs
loop 10
{
	Number := SubStr(A_index, 0)
	Send, %number%
	Sleep, 500   ;sleeps for 0.5 secs
	Click
	sleep 500
}
Return

Esc::ExitApp

Helping%20you%20learn%20autohotkey.jpg?d

[AHK] Version. 1.1+ [CLOUD] DropBox ; Copy [WEBSITE] Blog ; About