SetKeyDelay problem
Posted: 21 Apr 2018, 07:19
At first, I tried to make a macro for combo that spams left mouse button as fast as possible then delay 25ms then press down F button for 265ms
It turned out to spam left mouse button only. So I tried applying delay for both buttons.
Now it does not work at all.
Could anyone help me fix this problem? I have just started using AHK. I have already read documents about key delay but did not understand.
Code: Select all
~LButton::
While GetKeyState("LButton")
{
send {lbutton}
SetKeyDelay, 25,265
sendevent,{f},
}
return
Code: Select all
~LButton::Toggle:=!Toggle
While !Toggle
{
SetKeyDelay, 25,265
sendevent,{f},{lbutton}
}
return
Could anyone help me fix this problem? I have just started using AHK. I have already read documents about key delay but did not understand.