你可以试试这个
#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