Autohotkey Lbutton事件似乎禁用了我的拖动

Autohotkey Lbutton事件似乎禁用了我的拖动,autohotkey,Autohotkey,我制作了一个记录鼠标点击的脚本,但在这一部分中,我不知道为什么左键拖动被禁用?发生的事情是,当你按下左键时,脚本会截取该事件,并再次按下左键。试着替换 LButton:: MouseClick, Left if(recodring==true){ mouseGetPos, x, y xPosPlan[pos] := x yPosPlan[pos] := y xPosPlan.push(0) yPosPlan.push(0) timePlan.pu

我制作了一个记录鼠标点击的脚本,但在这一部分中,我不知道为什么左键拖动被禁用?

发生的事情是,当你按下左键时,脚本会截取该事件,并再次按下左键。试着替换

LButton::
MouseClick, Left 
if(recodring==true){
    mouseGetPos, x, y
    xPosPlan[pos] := x
    yPosPlan[pos] := y
    xPosPlan.push(0)
    yPosPlan.push(0)
    timePlan.push(0)
    pos := pos + 1

return
}

。这将使脚本不会首先截获该事件

LButton::
MouseClick, Left
~LButton::