Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

I want an auto-left-click script that's toggled by a key


  • Please log in to reply
2 replies to this topic
domino66
  • Members
  • 1 posts
  • Last active: Jun 05 2011 12:13 AM
  • Joined: 04 Jun 2011
Hi, I've searched a fair amount in the AHK forum for things like "autofire", and "autoclick", and have found a lot of scripts, but nearly all of them seem to be designed to click rapidly WHEN THE MOUSE BUTTON IS HELD DOWN.

I, however, want to press a keyboard key, which will simply make the left mouse button fire rapidly and continuously until I hit the toggle key again.

I couldn't find anything like that...anyone point me in the right direction?

None
  • Members
  • 3199 posts
  • Last active: Nov 05 2015 09:55 PM
  • Joined: 28 Nov 2009
The definitive autofire thread!
The first four examples behave in the way you describe.

Learning one
  • Members
  • 1483 posts
  • Last active: Jan 02 2016 02:30 PM
  • Joined: 04 Apr 2009
F1::domino66Click()



domino66Click(Interval=100){

   static Toggler

   Toggler := !Toggler

   TPer := Toggler ? Interval : "off"

   SetTimer, ClickClick, %TPer%

   return

   ClickClick:

   Click

   return

}