Autohotkey to do global google search
#1
Posted 10 April 2009 - 08:08 AM
Are there already scripts to do this?
Greetings,
Rosto
#2
Posted 10 April 2009 - 08:10 AM
#g:: ClipTemp := Clipboard Send ^c Run, http://www.google.com/search?q=%Clipboard% Clipboard := ClipTemp return
#3
Posted 10 April 2009 - 09:19 AM
Something like this would probably work
#g:: ClipTemp := Clipboard Send ^c Run, http://www.google.com/search?q=%Clipboard% Clipboard := ClipTemp return
Would it be possible to create more of these scripts p.e. global amazon search, yahoo search etc. and put them all in one application?
If not, do I have to create of each script a .exe and load them all in memory?
sorry, I'm new to autohotkey.
#4
Posted 10 April 2009 - 09:45 AM
#5
Posted 10 April 2009 - 05:48 PM
Refer to my thread on this.
; IE AutoOpen Hotkeys
#w::IEAutoOpen("URL","") ; WinKey+w ;;AutoOpen Link
#g::IEAutoOpen("Google","www.google.com/search?q=") ; WinKey+g ;;AutoOpen Google and Search
#p::IEAutoOpen("Yahoo profiles","profiles.yahoo.com/") ; WinKey+p ;;AutoOpen Yahoo Profiles Link
#u::IEAutoOpen("Free Dictionary search","http://www.thefreedictionary.com/") ; Win+u ;;AutoOpen Free Dictionary
IEAutoOpen(Desc,URL) ; v1.0.2, 09/18/07
{
ClipSaved := ClipboardAll ; Save the entire clipboard to a variable of your choice.
Clipboard = %Clipboard%
TextClip = %Clipboard%
Clipboard =
Send, ^c
ClipWait, 1
IEClip = %Clipboard%
Clipboard = %TextClip%
InputBox, URLString, %Desc%, Please enter the %Desc% string to be opened in IE:, , , , , , , , %IEClip%
If (GetKeyState("Control")) And (URL = "") ; Suggested by Lexikos
URLString = www.%URLString%.com ; Suggested by Lexikos
Clipboard := ClipSaved ; Restore the original clipboard. Note the use of Clipboard (not ClipboardAll).
ClipSaved = ; Free the memory in case the clipboard was very large.
If ErrorLevel <> 0
Return
Run, iexplore.exe %URL%%URLString%
}
#6
Posted 10 April 2009 - 07:13 PM
Gui, Add, Text, x10 y18, Select the site to Google: Gui, Add, DropDownList, x10 y38 w150 vSearchSite, |Autohotkey|Yahoo|Amazon|eBay|Dictionary|Brittanica|Fark Gui, Add, Edit, x10 y78 w150 vSearchTerms Gui, Add, Button, x115 y118, Search Gui, Show, Center AutoSize, Googler! return ButtonSearch: Gui, Submit, NoHide if (SearchSite) Run, http://www.google.com/search?q=%SearchTerms%+site:%SearchSite%.com else Run, http://www.google.com/search?q=%SearchTerms% return GuiClose: ExitApp
#7
arun
Posted 05 March 2010 - 01:53 PM
Here's a simple GUI that can Google itself and several other sites listed in a dropdown. To do a general Google search, leave the dropdown blank, otherwise select the site you would like to use Google to search. Bear in mind that to keep this example simple I used only sites that end in ".com":
Gui, Add, Text, x10 y18, Select the site to Google: Gui, Add, DropDownList, x10 y38 w150 vSearchSite, |Autohotkey|Yahoo|Amazon|eBay|Dictionary|Brittanica|Fark Gui, Add, Edit, x10 y78 w150 vSearchTerms Gui, Add, Button, x115 y118, Search Gui, Show, Center AutoSize, Googler! return ButtonSearch: Gui, Submit, NoHide if (SearchSite) Run, http://www.google.com/search?q=%SearchTerms%+site:%SearchSite%.com else Run, http://www.google.com/search?q=%SearchTerms% return GuiClose: ExitApp
#8
Posted 31 July 2010 - 03:27 PM
If you change
Run, iexplore.exe %URL%%URLString%
to
Run, %URL%%URLString%
This will result in the command running in your default browser.
It is a band-aid.
Peace,
Juergs
#9
Posted 03 May 2012 - 02:49 PM
Could anyone add the ability to search the search field at <!-- m -->http://ejje.weblio.jp/<!-- m --> for text copied to the clipboard to one of the above scripts (or make a new one? All I need is the Weblio search above and Yahoo JAPAN)? Oh, and I use Google Chrome BTW.
Thanks!




