Simple Google Search Msgbox Script

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
siberianmoosecow
Posts: 2
Joined: 21 Apr 2017, 12:55

Simple Google Search Msgbox Script

21 Apr 2017, 13:34

Hi all

AHK Noob here. Was wondering how you'd make a script which, when text is selected, searches for a definition of the text in google, takes the response provided in the box google shows, and returns it to a message box.

What I currently have is:
+^c::
send ^c
sleep 100
run, http://www.google.com/search?q=define:%clipboard%
Return

but i'm not sure how to eloquently have autohotkey select the definition and save it. Also I'd prefer it to do this in a hidden window and not open up a browser window, search, then close it after.

Thanks
MaxAstro
Posts: 557
Joined: 05 Oct 2016, 13:00

Re: Simple Google Search Msgbox Script

21 Apr 2017, 16:32

Adding the Hide command to the run statement should cause your browser to launch in a hidden window; I honestly have no idea how you'd get the text from it at that point, though.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google Adsense [Bot], yuu453 and 296 guests