2008-12-13

AHK实现的鼠标中键粘贴选中字符串

;命令前置条件:鼠标选中文字
MButton:: ;鼠标中键激发事件
Send, ^c ;复制选中的文字
clipwait ;等待复制完成
Click ;在点击鼠标中键的地方模拟左键点击
Send, ^v ;粘贴
TrayTip, clipboard, %clipboard%, 20, 16
return



----------------------


#space::
Click
return

*#p::MouseMove, 0, -10, 0, R ; Win+UpArrow hotk
*#n::MouseMove, 0, 10, 0, R ; Win+DownArrow => Movewnward
*#b::MouseMove, -10, 0, 0, R ; Win+LeftArrow => Move cursor
*#f::MouseMove, 10, 0, 0, R ; Win+RightArrow => Move cursor to

No comments:

Post a Comment