I want to send a lst of keys repeatedly when te cursor stops. For example: "p + 10 ms p" a lot of times during the mouse is stopped.
Thanks for the attention!
[Mod edit: Moved from Scripts and Functions > Gaming' to 'Ask For Help > Gaming'. ]
A list of keys when mouse move stops Topic is solved
Re: A list of keys when mouse move stops Topic is solved
Hallo,
try:
try:
Code: Select all
#InstallMouseHook
*q::SetTimer Tq,% (Tq:=!Tq)?10:"Off" ;On/Off with key Q
Tq:
SendInput,% A_TimeIdleMouse>400?"p": ;If mouse was stopped > 400ms
Return
Re: A list of keys when mouse move stops
Ok, and if I want to send "p" just one time when the mouse move stops for 400 how i do?
Thank you a lot!
Thank you a lot!
Re: A list of keys when mouse move stops
And if I need keep pressed the letter "p" while the mouse is stopped How i do?
Re: A list of keys when mouse move stops
send "p" just one time when the mouse move stops for 400:And bye!
Code: Select all
#InstallMouseHook
*q::SetTimer Tq,% (Tq:=!Tq)?100:"Off" ;On/Off with key Q
Tq:
IF A_TimeIdleMouse between 350 and 450
{
Send, p
Sleep, 100
}
Return
Who is online
Users browsing this forum: Google [Bot], Xeokis and 127 guests