Jump to content

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

Tutorial for Toggled alternative to hold mouse button 1


  • Please log in to reply
1 reply to this topic
stryke297
  • Members
  • 7 posts
  • Last active: Dec 03 2013 06:16 PM
  • Joined: 10 Oct 2012

I'm trying to create a script so that when I press and hold mouse button 1, instead of registering as a long press, it instead registers as me clicking many times.  But I also would like this to be toggled, so that I can also use single clicks and long clicks if need be.

 

I've used AHK before but once it was to log into a game and broadcast a message, and then click a couple times to not get kicked for AFK, and then a similar script for a multiplayer server.

 

I have no idea how to make the toggle function, or the multiclick thing, but if I could make the speed at which it clicks, and then the toggle button variables that would be superb.

 

 

Edit: working on some script strings with click and setmousedelay.

II.

So I guess I really just want something like:

 

toggle

{

if ; mouse button is pressed

{

mouse clicks like crazy mode

}



stryke297
  • Members
  • 7 posts
  • Last active: Dec 03 2013 06:16 PM
  • Joined: 10 Oct 2012
$F5 x=1
$F7 x=0
while x=1
{
$Click down::
while GetKeyState("Click down","P")
{
SetMouseDelay, 20
send{click}
}
return
}
 
 
 
not sure if the top part is anything or just two random statements.  Pretty sure I need to change click down to LButton.