为了和Chrome等浏览器触摸板操作体验一致,瞎写了一个ahk,如有更好的实现方式请告诉我。
下载链接:https://transfer.sh/QPiy/tgback.exe
;tg back
#MaxThreadsPerHotkey 1
#HotkeyInterval 2000
#MaxHotkeysPerInterval 200
WheelLeft::
intCount := (intCount = "" ? 1 : intCount + 1)
if (intCount > 10) {
WinGetActiveTitle, Title
StringGetPos,pos,Title,%A_space%,R
if (pos != -1)
Title := SubStr(Title,1,pos)
if (Title == "Telegram" || Title == "Media") {
intCount := "" ;
;tip
#Persistent
ToolTip, ←
SetTimer, RemoveToolTip, -200
send {Esc}
}
}
Return
RemoveToolTip:
ToolTip
return