StrokePlus - 鼠标手势神器的代码编写技巧
2019-05-24
StrokePlus.net
is the new version ofStrokePlus
, checkStrokePlus.net
instead of legacyStrokePlus
. Cheatsheet here.
最后面包含了几个快捷键的格式
其实是在 StrokesPlus.xml 这个文件里面
将这一段
<GesturesDisabled>1</GesturesDisabled>
修改为
<GesturesDisabled>0</GesturesDisabled>
//ctrl+alt+a 按下一次
acSendKeys("^%a")
//alt+F4
acSendKeys("%{F_4}")
//ctrl+win+右键
acSendKeys("@^{Right}")
注意 control 键和 windows 键同时使用的时候上方不是写{ctrl}{WIN},必须用两个特殊符号代替。
//移动到右下角,网易云音乐的删除按钮点击之后,并返回鼠标原来所在的地方
local x = acGetMouseLocationX()
local y = acGetMouseLocationY()
acMouseClick(2750, 660, 2, 1, 1)
acMouseMove(x,y)
acRunProgram("C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe","",0, 0, 500, 500, 2)
acShellExecute("open", "http://www.google.com", "", "", 1)
这里是 oneNote 的例子
local iHandle = acFindWindowByTitleRegex(".*OneNote.*")
--acMessageBox(iHandle)
if iHandle == 0 then
acDisplayBalloonTip('Summoning OneNote')
acRunProgram("C:\\Program Files\\Microsoft Office\\root\\Office16\\ONENOTE.EXE","",0, 0, 500, 500, 2)
Else
acActivateWindow(iHandle)
acMaximizeOrRestoreWindow(iHandle,0,0)
end
关于本文
文章标题 | StrokePlus - 鼠标手势神器的代码编写技巧 |
发布日期 | 2019-05-24 |
文章分类 | Tech |
相关标签 | #StrokePlus |