Mouse button pull down
Mouse button pull down
Hello! I am looking for a script that moves the mouse crosshair down at a steady rate when I hold down the left mouse button over half a second! Any help with this script would be great! I'm new to scripting and I'm trying it out on some processes!
Thanks!
Thanks!
Last edited by gregster on 08 May 2021, 22:30, edited 1 time in total.
Reason: Topic moved to 'Ask For Help > ...'.
Reason: Topic moved to 'Ask For Help > ...'.
Re: Mouse button pull down
Try this:
Code: Select all
Speed := 2
LButton::
Click, Down
KeyWait, LButton, T0.5
if ErrorLevel {
while GetKeyState("LButton", "P")
MouseMove, 0, Speed, 0, R
}
Click, Up
return
Re: Mouse button pull down
THANK YOU!!!
do you also know of a script where if I hold down the spacebar for more than half a second the spacebar get spammed until i let go of the spacebar
do you also know of a script where if I hold down the spacebar for more than half a second the spacebar get spammed until i let go of the spacebar
Last edited by AshMann on 09 May 2021, 01:45, edited 1 time in total.
Re: Mouse button pull down
@boiler
^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^
Re: Mouse button pull down
@boiler
also... is it possible to make it where it only goes down with both mouse clicks
also... is it possible to make it where it only goes down with both mouse clicks
Re: Mouse button pull down
Patience is a virtue...
Re: Mouse button pull down
Try this:
Code: Select all
$Space::
Send, {Space}
KeyWait, Space, T0.5
if ErrorLevel
while GetKeyState("Space", "P") {
Send, {Space}
Sleep, 50
}
return
I don't know what you mean by this. Do you mean you want it to move the mouse pointer down only after a double-click and the button is held down after the second click?
Re: Mouse button pull down
@boiler
I mean if I hold the RButton down AND the LButton down on the mouse at the same time... only then will the mouse move down until the buttons are released
I mean if I hold the RButton down AND the LButton down on the mouse at the same time... only then will the mouse move down until the buttons are released
Re: Mouse button pull down
Code: Select all
Speed := 2
LButton::
Click, Down
KeyWait, LButton, T0.5
if ErrorLevel {
while GetKeyState("LButton", "P") && GetKeyState("RButton", "P")
MouseMove, 0, Speed, 0, R
}
KeyWait, LButton
Click, Up
return