Autohotkey to select text under cursor?

Is it possible to select the text under the cursor with Autohotkey specifically using mouse and keyboard shortcut. eg I specifically want to just make a Ctrl-clip on any word in IE / FF / Foxit Reader and a web page will open with the first google search result. Thanks.

+2


a source to share


1 answer


Yes, maybe ...

The easiest way is to set Ctrl+ LButton to double-click (which selects the current word under the cursor), copy the word to the clipboard, and then use google with parameters "q="

for your search query and "btnI=I'm+Feeling+Lucky"

to use the "I feel happy" feature.

It will look like this:

^LButton::
Send, {LButton 2}^c
Run, http://www.google.com/search?&q=%clipboard%&btnI=I'm+Feeling+Lucky
return

      

This will work in most cases without issue, the problem arises when choosing words such as:



53 ° C

Yon-x

% S test

and others, since double clicking on them only selects the first part of the text before the characters.

So, if you double click with normal words, this should work fine.

+5


a source







All Articles