Sign in to follow this  
Followers 0
Swift

Taskbar Google Search

3 posts in this topic

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

Share this post


Link to post
Share on other sites



Hi, try GUICtrlRead($search):

_IECreate("http://www.google.com/search?source=ig&hl=en&rlz=1G1GGLQ_ENUS255&q=" & GUICtrlRead($search))
I didn't test it and I'm only going by a brief glance at your code.

Cheers

Share this post


Link to post
Share on other sites

Wow...it worked...thank you :D

Another question...why isnt this working properly...i have a hotkeyset to {ENTER} IF ITS Active...but...it always uses enter....hmmmm?

Share this post


Link to post
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
Sign in to follow this  
Followers 0