Autohotkey 从可变点单击并拖动每个按键一个像素

Autohotkey 从可变点单击并拖动每个按键一个像素,autohotkey,Autohotkey,我想创建一组分配给四个箭头键的鼠标移动,在这四个箭头键中,击键将单击并向左、向右、向上或向下拖动一个像素。起点将是可变的。我不知道如何做到这一点。在问之前,我做了一次真诚的尝试,但我真的需要请人告诉我怎么做 谢谢, 艾伦,我们走吧: #Persistent ^NumPadUp:: Send, {LButton Down} MouseMove, 0, -1, 1, R ;Move the mouse one pixel Up Send, {LButton Up} Return ^NumPadD

我想创建一组分配给四个箭头键的鼠标移动,在这四个箭头键中,击键将单击并向左、向右、向上或向下拖动一个像素。起点将是可变的。我不知道如何做到这一点。在问之前,我做了一次真诚的尝试,但我真的需要请人告诉我怎么做

谢谢, 艾伦,我们走吧:

#Persistent

^NumPadUp::
Send, {LButton Down}
MouseMove, 0, -1, 1, R ;Move the mouse one pixel Up
Send, {LButton Up}
Return

^NumPadDown::
Send, {LButton Down}
MouseMove, 0, 1, 1, R ;Move the mouse one pixel Down
Send, {LButton Up}
Return

^NumPadRight::
Send, {LButton Down}
MouseMove, 1, 0, 1, R ;Move the mouse one pixel to the right
Send, {LButton Up}
Return

^NumPadLeft::
Send, {LButton Down}
MouseMove, -1, 0, 1, R ;Move the mouse one pixel to the left
Send, {LButton Up}
Return

非常感谢,罗伯特。我忘了第二个1。