I want do a google search in adress bar from the active browser that i use, On my windows 10 system.
The autohotkey (AHK) macro script must do this:
- copy the selected text to clipboard memory
- goto the adress bar
- a - put the text https://www.google.com/search?q=
- b - put the clipboard memory text
- c - put the google parameter text &lr=lang_us&hl=us&num=50
a+b+c
And then if i click F2 it must can do, direct a google search with parameters
I need a command that can goto the adress bar in browsers like (google chrome) or other browsers (the active one)
This script code can not do that. it does not go to the adress bar
; ^ = Ctrl
; ! = Alt
; + = Shift
; # = Win (Windows logo key)
f2:: ; press f2 for a google search
send ^c
send https://www.google.com/search?q=%clipboard%&lr=lang_us&hl=us&num=50
send {enter}
return