AutoClicker + reverse

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
gauthaus
Posts: 1
Joined: 07 Dec 2022, 02:03

AutoClicker + reverse

Post by gauthaus » 07 Dec 2022, 02:22

Hello! Can u help me with script please ?

Activation key - CapsLock
Script action:
autoclick Num1 every ~10ms
but when you hold Alt key script autoclicks Num2 instead of Num1(every 10ms).
after release Alt key, script returns to autoclick Num1

Thanks!

Rohwedder
Posts: 7551
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: AutoClicker + reverse

Post by Rohwedder » 07 Dec 2022, 04:03

Hallo,
try:

Code: Select all

*CapsLock::
While, GetKeyState("CapsLock","P")
	SendInput,% GetKeyState("Alt","P")?"{Numpad2}":"{Numpad1}"
Return

Post Reply

Return to “Ask for Help (v1)”