Jump to content

Taskbar Google Search


Swift
 Share

Recommended Posts

herees the file...run it...pressing enter while its active should open a internet explorer...but it searchs for '3'...not what you want...

#include <GUIConstants.au3>
#include <IE.au3>
HotKeySet("{ENTER}", "_run")
$GUI = GUICreate("", 150, 25, @DesktopWidth- 300, @DesktopHeight -27, BitOR($WS_POPUP,$WS_CLIPSIBLINGS), 0x00000088)
GUISetBkColor(0x000000)
$search = GUICtrlCreateInput("Google Search", 25, 5, 100, 17)
GUICtrlSetBkColor(-1, 0x000000)
GUICtrlSetColor(-1, 0xFFFFFF)
$Icon1 = GUICtrlCreateIcon("C:\WINDOWS\system32\shell32.dll", -221, 8, 5, 15, 15, BitOR($SS_NOTIFY,$WS_GROUP))
GUISetState(@SW_SHOW)
$nMsg = GUIGetMsg()
If $nMsg = $GUI_EVENT_CLOSE Then
Exit
EndIf
While 1
    WinSetOnTop($GUI, "", 1)
WEnd
Func _run()
    If WinActive($GUI) Then
        _IECreate("http://www.google.com/search?source=ig&hl=en&rlz=1G1GGLQ_ENUS255&q=" & $search)
    EndIf
EndFunc
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...