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
}

如果有其他实现方法请不吝赐教!

posted @ 2021-05-19 18:24  思所匪夷  阅读(15)  评论(0)    收藏  举报  来源