ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

Winkey g Google Search ahk quickie

(1/3) > >>

MilesAhead:
Here is a quickie hotkey for when you don't have anything open to type into to select text etc.. and want to type in a string to search Google with the default browser.  If the InputBox is closed via OK Button it sounds a tone as indication the browser is being launched.

I just added the snippet below to my general purpose ahk hotkey script.


--- Code: Autohotkey ---;Winkey g to search Google using default browser#g::  InputBox,SearchVar,Google Search,Enter String for Google to Find  If (ErrorLevel)    return  ;MsgBox I would search Google for %SearchVar%  Run, http://www.google.com/search?q=%SearchVar%  SoundPlay,*64  return

Curt:
is it easy to change the hotkey combination?

WinKey+G
Activates the new Xbox game bar to let you record games or take screenshots.-Win 10
--- End quote ---

tomos:
is it easy to change the hotkey combination?
-Curt (January 14, 2016, 04:40 PM)
--- End quote ---

what do you want to change it to?



^This^ is the bit you need to change -- I always forget (I *think Ctrl='^'), and need to look up the AHK site.
I know from the screenshot that:
# = Winkey
and that's it....

so,
only half a solution -- or maybe just a quarter ;-)

MilesAhead:
The list of hotkey prefix keys is here:
https://autohotkey.com/docs/Hotkeys.htm#Symbols

IainB:
For Firefox users, it might be worth noting here about the search prefixes offered by the Instantfox Firefox add-on - http://www.instantfox.net/
You just type in to the URL bar. You could also (say) invoke them with FARR aliases, like the "dc searchstring" I use for searching in the DC forum.
Prefix keys (which can be changed by the user) include, for example:
g » G/Search  | e » eBay
i » G/Images   | b » Bing
m » G/Maps    | yh » Yahoo
y » YouTube    | a » Amazon
t » Twitter        | f » W.f/cast
w » Wikipedia  | c » Calculator
wa » WolframAlpha

I don't always remember the correct prefixes to use, so I have them on a Stick A Note that can be brought up in the top RH corner on any web page in Firefox. (Kudos to @anandcoral.)

Navigation

[0] Message Index

[#] Next page

Go to full version