----------------------------------------
Code: Select all
~RButton::
while GetKeyState("RButton", "P")
send {d}
sleep 75
return
NumpadEnter::
Suspend
Pause ,,1
if A_IsPaused {
ToolTip, PAUSED, 200, 250
} else {
ToolTip, RUNNING, 200, 250
SetTimer RemoveToolTip, 1000
}
return
RemoveToolTip:
ToolTip
SetTimer, RemoveToolTip, Off
return
The basic conception of the script is to press the "D" key while I am pressing the right mouse button.
However, I need to add a time interval and a certain amount of random times that the "D" should be pressed.
I need that when I am pressing the right mouse button the "D" is pressed twice, before it is pressed twice more, have a short wait time so as not to get something like this:
"ddddddddddddddddddddddd ..."
it would look something like this:
dd (sleep 50) d (sleep 50) ddd (sleep 50) dd (sleep 50) d (sleep 50) ddd (sleep 50) ...
The important thing is that I just need to keep the right mouse button pressed, if I release it, it goes back to the beginning of the command
Can someone help me please!!!