From a66e5a7141b45474aed558f17da22e0b7a1771fe Mon Sep 17 00:00:00 2001 From: Mark Wiemer Date: Wed, 19 Jun 2024 20:09:05 -0700 Subject: [PATCH] Add sample auto-clicker --- demos/autoclicker.ahk | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 demos/autoclicker.ahk diff --git a/demos/autoclicker.ahk b/demos/autoclicker.ahk new file mode 100644 index 00000000..56ece154 --- /dev/null +++ b/demos/autoclicker.ahk @@ -0,0 +1,17 @@ +#Requires AutoHotkey v2 +#SingleInstance Force +#MaxThreadsPerHotkey 3 + +global ClickerToggle := false +ClicksPerSecond := 10 +^z:: +{ + global ClickerToggle := !ClickerToggle + Loop + { + If (!ClickerToggle) + Break + Click + Sleep 1000 / ClicksPerSecond + } +} \ No newline at end of file