脚本《在新标签打开链接/新标签搜索/新建标签》
strokesplus吧
全部回复
仅看楼主
level 9
Eternal_Time 楼主
从官方论坛看到,然后自己改进后的脚本。推荐设置为无手势,修饰键为左键。
----------复制以下内容----------
if acGetMouseCursorType() == "HAND" then--鼠标指针手型
acMouseClick(gsx, gsy, 1, 1, 1)--点击鼠标中键
else
local a = acGetClipboardText()--获取原剪贴板内容
acSendKeys("{DELAY=50}^c")--复制选中内容
acDelay(50)
local b = acGetClipboardText()--获取选中内容
if b ~= a then
b = "https://www.bing.com/search?q="..b--设置搜索地址
b = string.gsub(b, "%%","%%25")--转换%
b = string.gsub(b, " ","%%20")--转换空格
b = string.gsub(b, "&","%%26")--转换&
exe = acGetExecutableName(nil, gsx, gsy)--获取exe文件名
acShellExecute("open", exe, b, nil, 1)--打开搜索地址
else
acSendKeys("^t")--新建标签
end
end
----------复制以上内容----------
2014年02月26日 08点02分 1
level 9
Eternal_Time 楼主
b后面双引号搜索地址可修改为如下
htt[笑眼]ps://www.go[真棒]ogle.com/sea[太开心]rch?q=
h[弱]ttp://www.baid[喷]u.com/s?w[升起]d=
或其他,你知道格式就可以了
2014年02月26日 08点02分 4
1