Typora实现划词后弹出右键上下文菜单
autohotkey代码:
#IfWinActive ahk_exe Typora.exe
~LButton::
CoordMode, Mouse, Screen
SetKeyDelay 0, 10
MouseGetPos, x1, y1
KeyWait, LButton
MouseGetPos, x2, y2
if (x1<>x2 or y1<>y2) {
Send {Click Right}
return
}
如果有其他实现方法请不吝赐教!

浙公网安备 33010602011771号