Post by junjiefu » 20 May 2018, 01:17
Code: Select all
!g::
send ^c
sleep 500
ss=https://www.google.com/search?q=%clipboard%&ie=utf-8&oe=utf-8
run %ss%
return
一个最最简单的命令,按alt+g,复制当前选中内容并用google搜索。
为什么用send ^c可以,而改成sendinput ^c就不行呢?
[code=autohotkey file=Untitled.ahk]!g::
send ^c
sleep 500
ss=https://www.google.com/search?q=%clipboard%&ie=utf-8&oe=utf-8
run %ss%
return[/code]
一个最最简单的命令,按alt+g,复制当前选中内容并用google搜索。
为什么用send ^c可以,而改成sendinput ^c就不行呢?