Quick Google look-up of selected text

Press Alt+G after selecting the text

;Google lookup
!g::
OldClipboard:= Clipboard
Clipboard:= ""
Send, ^c ;copies selected text
ClipWait
Run http://www.google.com/search?q=%Clipboard%
Sleep 200
Clipboard:= OldClipboard
Return

 

Edit: Part of the script had been converted to a link and was not showing properly. I've now edited this.

Parents Reply
  • This is browser-dependant.

    You'll need to activate that browser window (with WinActivate function).

    Then switch to tab #1. Probably Send ^1 works (CTRL+1).

    Activate the browser's address bar. Probably Send ^l works (CTRL+L).

    Send the clipboard content with Send %clipboard%

    Last, press enter key with Send {Enter}

    ☛ Probably you'll need a Sleep command between each line mentioned above.

Children