just looking for a simple code that does this....
i Click left mouse, presses A for 1.5 seconds then D for 1.5 seconds. and repeats on click.. thanks...
On left click press A and D
-
- Posts: 1472
- Joined: 05 May 2018, 12:23
Re: On left click press A and D
Code: Select all
LButton::
Send {a down}
sleep, 1500
Send {a up}
Send {d down}
sleep, 1500
Send {d up}
return
^esc::ExitApp
Re: On left click press A and D
Can i get some help on this one?? i am trying to complete my code, but when i press A, or D i want to be able to pause the scriptAHKStudent wrote:Code: Select all
LButton:: Send {a down} sleep, 1500 Send {a up} Send {d down} sleep, 1500 Send {d up} return ^esc::ExitApp
but when that button is released the script turns right back on.
Code: Select all
~RButton::Strafe()
F7::_strafe := ! _strafe
F6::suspend
Strafe()
{
global _Strafe
if _Strafe
{
Loop
{
if GetKeyState("RButton", "P"){
Send, {RButton Down}
Send {O down}
sleep, 500
Send {O up}
Send {L down}
sleep, 500
Send {L up}
Send, {RButton Up}
}
else
break
} ;; loop
} ;; if
} ;; Strafe()
Who is online
Users browsing this forum: Bing [Bot], Starker and 285 guests