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
----------复制以下内容----------
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
----------复制以上内容----------