Looking for help writing script Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Sandm4n2355
Posts: 2
Joined: 16 Jan 2019, 04:45

Looking for help writing script

16 Jan 2019, 04:55

Hi I've been stumped over the past few hours trying to write a specific script...

What I want it to do is when I press F8:
Left click where the cursor is,
pause for a second,
Press space bar 3 times,
pause for a second,
press the number 3
pause for a second,
press space bar another 3 times
then repeat from the start

and have it so it stops when i press F8 again

any help is really appreciated :)
thanks in advance
ktbjx
Posts: 71
Joined: 11 Jul 2015, 23:53

Re: Looking for help writing script

16 Jan 2019, 05:16

Code: Select all

#SingleInstance, Force
#NoEnv
$F8::
Click
Sleep, 80
Send, {space 3}
Sleep, 80
Send, 3
Sleep, 80
Send, {space 3}
Return
User avatar
jmeneses
Posts: 524
Joined: 28 Oct 2014, 11:09
Location: Catalan Republic

Re: Looking for help writing script  Topic is solved

16 Jan 2019, 05:33

hI Sandm4n2355 and welcome
Other way but whit loop

Code: Select all

#NoEnv 
#SingleInstance force 
#Persistent   
#MaxThreadsPerHotkey, 2  ;may be necessary for allowing you to turn off the while loop
Return                   

F8::
toggle:=!toggle    
While toggle {                             
  Click
  Sleep 100
  Send {Space 3}
  Sleep 100
  Send 3
  Sleep 100
  Send {Space 3}
  Sleep 100
}
Return
Donec Perficiam
Sandm4n2355
Posts: 2
Joined: 16 Jan 2019, 04:45

Re: Looking for help writing script

16 Jan 2019, 05:46

jmeneses thank you so much its perfect

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], Joey5 and 171 guests