Re: [AHK-] AutoHotKey程式码失效?

楼主: pierli (Pier起来)   2019-02-15 12:55:54
你可以试试这个
#g::
SavedClipTemp := ClipboardAll
Clipboard = ; empty
SendInput, ^c ; copy highlighted text
ClipWait, 1 ; wait for change
if ErrorLevel
{
Clipboard := SavedClipTemp
SoundBeep
return
}
if Clipboard contains http
{
Run, %Clipboard%
Return
}
Else
Run, https://www.google.com/search?q=%Clipboard%
Return
作者: solomn (九米)   2019-02-15 19:29:00
谢啦^^ 成功改善问题了

Links booklink

Contact Us: admin [ a t ] ucptt.com