Simple Google Search Msgbox Script

Get help with using AutoHotkey and its commands and hotkeys
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:
send ^c
sleep 100

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.

Posts: 551
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.
User avatar
Posts: 30
Joined: 09 Jun 2015, 21:08

Re: Simple Google Search Msgbox Script

21 Apr 2017, 20:10

loop {
MsgBox, Life is like an Infinite Message Box of chocolates.`nThere are %a_index% chocolates in this box.

Return to “Ask For Help”

Who is online

Users browsing this forum: Bad husband, Bing [Bot], davep, pteronaut, TAC109 and 25 guests