Autohotkey to select text under cursor?
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 to share