本帖最后由 pcl_test 于 2015-8-18 19:00 编辑
发个ahk,实现鼠标左键拖选复制- ~LButton::
- mousedrag := 1 ; pixels
- MouseGetPos, mousedrag_x1, mousedrag_y1
- win1 := WinActive("A")
- KeyWait LButton
- MouseGetPos, mousedrag_x2, mousedrag_y2
- win2 := WinActive("A")
- WinGetClass cos_class, A
- if(((abs(mousedrag_x2 - mousedrag_x1) > mousedrag
- or abs(mousedrag_y2 - mousedrag_y1) > mousedrag)) and win1 = win2
- and cos_class != "ConsoleWindowClass")
- {
- SendInput ^c
- }
- return
复制代码
|