Quick google search ahk

Hi,

I made a simple script to run a Google search:

(1) Highlight the text to search for

(2) Click both mouse buttons at once

The append variable adds some text after the search term. This can be quite useful and can be changed depending on your language pair or just omitted if you prefer

This script uses the first tab open in the browser, but you can use a different tab by changing the "SendInput ^1" line to a different tab number

If you use Firefox rather than Chrome, change the WinActivate line to "Mozilla" instead of "Chrome"

~LButton & RButton::
~RButton & LButton::
{
clipboard =
SendInput, ^c
Clipwait
clipsaved := clipboard
append := " English"
clipboard := clipsaved . append
WinActivate, Chrome
Sleep, 50
SendInput, ^1
Sleep, 50
SendInput, ^k
Sleep, 50
SendInput, ^v
Sleep, 50
SendInput, {Enter}
return
}

Parents Reply Children
No Data