F8 to toggle autoclick when I hold down left mouse

Ask gaming related questions (AHK v1.1 and older)
Uhix
Posts: 1
Joined: 27 Dec 2017, 15:43

F8 to toggle autoclick when I hold down left mouse

27 Dec 2017, 15:48

I need a code where if I press f8, it will toggle on/off a code that autoclicks for me whenever I hold down the left mouse button. Thanks in advance for helping!
User avatar
Scr1pter
Posts: 1272
Joined: 06 Aug 2017, 08:21
Location: Germany

Re: F8 to toggle autoclick when I hold down left mouse

27 Dec 2017, 20:17

Why was my answer deleted??

Edit
Sorry, my bad.
I confused this thread with another one...
Please use [code][/code] when posting code!
Keyboard: Logitech G PRO - Mouse: Logitech G502 LS - OS: Windows 10 Pro 64 Bit - AHK version: 1.1.33.09
PointBlankStudios
Posts: 11
Joined: 19 Dec 2015, 18:20

Re: F8 to toggle autoclick when I hold down left mouse

16 Jan 2018, 20:39

Code: Select all

;F11 to toggle off, and on
;End key will completely turn it off
;This will NEVER be detected by VAC (Only if VALVe blacklists this program)

F8:: Hotkey, *~$LButton, Toggle

End::
ExitApp

*~$LButton::
Sleep 5
Loop
{
GetKeyState, LButtonState, LButton, P
If LButtonState = U
break 
Sleep 1
Send, {Blind}{LButton}
}
Return[code=autohotkey file=Untitled.ahk]
[/code]

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: mikeyww and 86 guests