Swift Posted January 30, 2008 Share Posted January 30, 2008 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 More sharing options...
smashly Posted January 30, 2008 Share Posted January 30, 2008 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 Link to comment Share on other sites More sharing options...
Swift Posted January 30, 2008 Author Share Posted January 30, 2008 Wow...it worked...thank you Another question...why isnt this working properly...i have a hotkeyset to {ENTER} IF ITS Active...but...it always uses enter....hmmmm? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now