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

时间:2013-05-10 18:56:53

标签: autohotkey

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

谢谢, 埃伦

1 个答案:

答案 0 :(得分:0)

艾伦,我们走了:

#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