[Windows]Telegram触摸板右滑返回

为了和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
1 个赞

这个赞啊,不过我习惯了 esc :joy:

可以我不会用呵呵

装 AHK,然后保存代码为 .ahk,双击

可以编译成exe发出来,方便一些没装ahk的用户开箱即用

论坛不知道如何发附件,又不想放自己服务器,被打怕了。

放蓝奏云什么的就行了,然后扔个链接

虽然它已经很良心了下载不用注册,但上传因为要手机号注册,所以我还是算了。https://transfer.sh/QPiy/tgback.exe