作者mayuyu (‵・ω・′)
看板Browsers
标题[-GC-] PttChrome和其他网页使用不同的手势操作
时间Sun Dec 28 18:59:19 2014
在Firefox底下使用BBSFox+FireGestures的时候有一个功能,
那就是可以设定BBSFox和其他网页的页面使用不同的滑鼠手势动作,
例如「←」按住滑鼠右键往左滑动的这个手势,可以设定成在
一般网页里是执行「回到上一页」的动作,
在BBSFox页面底下则是变更为执行送出键盘的方向左键「←」。
而「→」按住滑鼠右键往右滑动的这个手势,在一般网页里是执行
「前进到下一页」的动作,在BBSFox页面底下则是变更为
送出键盘的方向右键「→」。
我个人习惯是设定在一般网页里「↓」为跳到页尾,「↑」是回到页首,
但是在BBS里向下一页PageDown和向上一页PageUp比较常用,
所以在BBSFox页面底下,滑鼠手势「↓」和「↑」则变更为送出
PageDown和PageUp,另外二个手势「﹁往右然後往下」
和「﹂往左然後往上」才是End和Home。
可是在Chrome底下没有可以区分不同分页指定不同手势的扩充,
而且Chrome的扩充手势不能在Chrome的新分页、设定页面、
Chrome 线上应用程式商店、应用程式等页面底下执行,
手势操作不能全域使用,很不方便。
所以使用另外的系统全域手势软体来执行手势操作,
应该会比用扩充手势来得好。
我是用StrokesPlus,因为有在更新和支援Windows 8.1和64bit,
StrokesPlus可以指定作用的Window Title,
让PttChrome的页面可以使用独立的滑鼠手势设定。
例如「回到上一页」和「在PttChrome底下送出方向左键」
Lua script可以写成:
local currentWindowTitle = acGetWindowTitle(nil, gsx, gsy)
if currentWindowTitle == "ptt.cc - Google Chrome" or currentWindowTitle ==
"ptt.cc:443 - Google Chrome" or currentWindowTitle == "ptt2.cc - Google
Chrome" or currentWindowTitle == "ptt2.cc:443 - Google Chrome" then
acSendKeys("{LEFT}")
else
acSendKeys("{BROWSERBACK}")
end
同样「跳到页尾」和「在PttChrome底下送出PageDown」
Lua script可以写成:
local currentWindowTitle = acGetWindowTitle(nil, gsx, gsy)
if currentWindowTitle == "ptt.cc - Google Chrome" or currentWindowTitle ==
"ptt.cc:443 - Google Chrome" or currentWindowTitle == "ptt2.cc - Google
Chrome" or currentWindowTitle == "ptt2.cc:443 - Google Chrome" then
acSendKeys("{PGDN}")
else
acSendKeys("{END}")
end
这样就可以做到类似BBSFox+FireGestures的功能了,
不过BBSFox+FireGestures还有一些操作,例如在原地就可以弹出
分页浏览纪录、所有分页列表和已关闭分页的快显列表...等等,
用Chrome+StrokesPlus还是没有办法做到一模一样,
整体来说我觉得还是FireGestures比较顺手和方便。
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 61.219.36.126
※ 文章网址: http://webptt.com/cn.aspx?n=bbs/Browsers/M.1419764361.A.53F.html
※ 编辑: mayuyu (61.219.36.126), 12/28/2014 19:02:18