擴充彈性十足的滑鼠手勢軟體:StrokesPlus
和我先前介紹過的StrokeIt和gMote一樣,StrokesPlus也是一款滑鼠手勢的Windows軟體,免費、耗用資源小、有32位元與64位元程式,而且還是持續在更新的活躍軟體。因為過年期間在家裡用的是24吋的寬螢幕, 視窗放到最大時右上角的關閉會在很「遠」的位置,滑鼠的移動距離相對變得較大,有時又懶得按鍵盤,此時使是使用滑鼠手勢軟體的好場合,因此就把StrokesPlus安裝起來試試。
StrokesPlus是使用Lua腳本來當做動作的控制語法,因此能讓我們依需求撰寫要執行的動作,擴充彈性頗強,除了要去查查Lua語法之外,它的腳本還算非常好寫,我依自己的需要寫了下面幾個,除了最後一個之外,都加在【Global Actions】裡面:
S手勢:開啟StrokesPlus設定視窗
原來的S手勢是中止媒體播放器,我修改成將縮小到系統匣的StrokesPlus重新顯示到螢幕上。
-- 你沒看錯,就一行而已 acShowActions()
L手勢:關閉分頁或視窗
在Firefox或Google Chrome裡經常用L手勢來關閉分頁,此處的Lua是判斷當前的視窗再分別送出〔Ctrl+W〕、〔Alt+F4〕、〔Win+Alt+Delete〕(ConEmu使用)或〔Ctrl+F4〕(Java編輯器IntelliJ IDEA使用)。StrokesPlus用的按鍵寫法和Autohotkey差異很大,可參考Help最後面的說明。
-- this code sends the CTRL+W key combination, which -- will usually close a window or tab within an application -- 取得有焦點的視窗 local handle = acGetForegroundWindow() --acMessageBox(handle,"ActiveWindow",1) local handleTaskman = acFindWindowByTitleRegex("工作管理員") local handleEvernote = acFindWindow("ENMainFrame") local handleConEmu = acFindWindow("VirtualConsoleClass") local handleIDEA = acFindWindow("SunAwtFrame") -- IntelliJ IDEA --acMessageBox(handleEvernote,"handle",1) if (handle == handleTaskman) or (handle == handleEvernote) then acSendKeys("%{F_4}") elseif (handle == handleConEmu) then acSendKeys("@%{DELETE}") elseif (handle == handleIDEA) then acSendKeys("^{F_4}") else acSendKeys("^w") end
→手勢:開啟瀏覽器連結
點擊設定視窗的【Configure Actions】→【Internet Browser】後我們可在右側的「File Name Pattern」欄位看到「firefox.exe|chrome.exe|iexplore.exe」表示此處設定是針對此三個瀏覽器而設定的。我將向右手勢修改成開啟連結處網址的功能。 原來的寫法將網址開啟在當頁,我加上按下〔Ctrl〕鍵再點擊,讓網頁開啟在新分頁。
-- this code does one of two things, if the mouse cursor -- is a HAND, the link below the cursor is opened in a new -- tab. If the mouse cursor is not a HAND, a new browser -- tab is opened this action is executed by holding the -- stroke button and clicking the left mouse button, either -- over a link or anywhere over the browser for a new tab if acGetMouseCursorType() == "HAND" then acSendControlDown() acMouseClick(gsx, gsy, 2, 1, 1) acSendControlUp() else acSendKeys("^t") end
2013/02/20新增:T手勢:開啟TortoiseSVN瀏覽檔案庫
- 參考TortoiseProc可用的命令參數:http://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-automation.html
acShellExecute("open", "C:\\Program files\\Tortoisesvn\\bin\\TortoiseProc.exe", "/command:repobrowser", "", 1)
##
您可能也會有興趣的類似文章
- GestureSign:觸控板、手寫筆和觸控螢幕也能使用的手勢工具 (0則留言, 2022/12/18)
- 使用EasyStroke在Ubuntu/Linux Mint檔案管理視窗按滑鼠中鈕返回上一層資料夾 (0則留言, 2013/12/28)
- MouseInc離線設定的方法 (0則留言, 2023/09/11)
- Android快速啟動器SwipePad、Smart Taskbar、GMD GestureControl評比 (0則留言, 2012/08/25)
- 讓WordPress SyntaxHighlighter Evolved外掛能顯示Lua語法 (0則留言, 2013/02/22)
- [Obs#114] 取代Obsidian核心外掛的替代性外掛:Better Commander、Another Quick Switcher、Alternate File Tree、Quiet Outline (0則留言, 2023/02/20)
- Xuite 浮光掠影的映像介紹 (0則留言, 2005/03/29)
- 透過ASSP的郵件介面自行控制白名單與黑名單 (0則留言, 2010/05/27)
- PhraseExpress:凡人版的AutoHotkey [修訂] (0則留言, 2009/11/28)
- [Obs#95] Obsidian v0.16對於使用介面的強化🚀 (0則留言, 2022/09/04)
- [Obs#88] 綜合練習:快速設定的6種方法─使用8個Obsidian外掛 (0則留言, 2022/05/21)
- 用AutoHotkey輕鬆製作螢幕小鍵盤 (16則留言, 2008/03/16)
- [轉貼電腦報] HiNet推出Xuite,整合部落格、相簿、信箱及硬碟服務 (1則留言, 2005/03/31)
- [OOo] 插入目錄的操作-補充 (1則留言, 2006/05/15)
- 超值的iPad分頁式瀏覽器:Mercury Browser (3則留言, 2011/01/19)
要是有一个直达官网的连接就好了。。。。。。。
第一段的StrokesPlus文字就有連結了…