heyo, can someone help me add a loop for toggle script.Thanks in advance!
Now am using this
F1::
While GetKeyState("F1","P")
{
Click, Left
Sleep 5 ; milliseconds
}
Return
-i do click F1 manually
-i want toggle loop like :
hold RightClick and release RightClick then F1 is pressed
-to activate or stop RightClick - CTRL+5
-F1 has to be multi-clicks
R/LButton toggle
Re: R/LButton toggle
Hallo,
perhaps (your specification is not unique):
perhaps (your specification is not unique):
Code: Select all
F1::
While GetKeyState("F1","P")
{
Click, Left
Sleep 5 ; milliseconds
}
Return
^5::RButton:=!RButton ;to activate or stop RightClick - CTRL+5
$RButton::
IF RButton
SetTimer Click,% (Toggle := !Toggle) ? 5 : "Off"
Else
{
Toggle := False
SetTimer Click, Off
Send, {RButton Down}
KeyWait, RButton
Send, {RButton Up}
}
Return
Click:
Click, Left
Return
Who is online
Users browsing this forum: Google [Bot] and 63 guests