Holding LButton while clicking it every 30 seconds

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Alex_12
Posts: 1
Joined: 19 Apr 2018, 00:43

Holding LButton while clicking it every 30 seconds

19 Apr 2018, 00:58

Hey guys, Im new to this but i need a script that holds down the left mousebutton and clicks the left mousebutton every 30 seconds. I did try this but the loop part didn’t work. It stops after some time when i use, idk Why. Here is what i did:
!x::
Loop, 10
{
Toggle:=GetKeyState("LButton")
Send % "{Click " . ( Toggle ? "Up}" : "Down}" )
Sleep 30000
{
Toggle:=GetKeyState("LButton")
Send % "{Click " . ( Toggle ? "Down}" : "Up}" )
return
}
}
LButton:
Send {Down}
return

Thanks for help ~Alex

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: ntepa and 239 guests