Autohotkey 有人能让我的剧本保持正确吗;鼠标左键拖动鼠标?

Autohotkey 有人能让我的剧本保持正确吗;鼠标左键拖动鼠标?,autohotkey,Autohotkey,大家好,我有一个AHK的条带…当我按下鼠标右键和左键时,鼠标会开始移动…但我想按住鼠标右键和左键来拖动鼠标,所以当我不按住鼠标时,它会停止,就像“如果条件”,如果不按住鼠标停止 剧本: ~RButton & LButton:: ;This is just a note While GetKeyState("RButton", "P") AND GetKeyState("LButton", "P") { DllCall("mouse_event", uint, 1, int

大家好,我有一个AHK的条带…当我按下鼠标右键和左键时,鼠标会开始移动…但我想按住鼠标右键和左键来拖动鼠标,所以当我不按住鼠标时,它会停止,就像“如果条件”,如果不按住鼠标停止

剧本:

~RButton & LButton:: ;This is just a note
While GetKeyState("RButton", "P") AND GetKeyState("LButton", "P")
{   
     DllCall("mouse_event", uint, 1, int, -3, int, 3, uint, 1, int, 0)
     Sleep, 10
     DllCall("mouse_event", uint, 1, int, -3, int, 3, uint, 0, int, 0)
     Sleep, 10
     DllCall("mouse_event", uint, 1, int, -3, int, 3, uint, 1, int, 0)
     Sleep, 2
     DllCall("mouse_event", uint, 1, int, -3, int, 3, uint, 0, int, 0)
     Sleep, 10
     DllCall("mouse_event", uint, 1, int, -3, int, 3, uint, 1, int, 0)
     Sleep, 10
     DllCall("mouse_event", uint, 1, int, -3, int, 3, uint, 0, int, 0)
     Sleep, 10
} Return


F12::ExitApp
试试这个

   F10::

   Send {F1 down}{F12 down}

   KeyWait F10

   Return

  F10 up::Send {F12 up}{F1 up}
你可以用钥匙换钥匙