Тема: Rust: Не правильно работает код, не выполнение частей кода
Нужно чтоб при Зажатии LCtrl & ~LButton производился выстрел, смешение (компенсация отдачи) потом опять нажатие выстрел, за место того чтоб быстро самому нажимать LButton
LCtrl & ~LButton::
Loop
If GetKeyState("LButton") {
Sleep,4
moveAmount := (moveAmount = xy) ? 0 : -1
mouseXY(moveAmount,39.0)
mousemove, L, 190, 1,
}
else
break
while GetKeyState("LButton", "P") {
Click
Sleep 5
}
Return
mouseXY(x,y)
{
DllCall("mouse_event",int,1,int,x,int,y,uint,1.5,uint,4.0)
}