edena Posted October 10, 2012 Share Posted October 10, 2012 Hi!,Please can anyone help me with my script, because i cannot close the GUI after clicking on the link.#include <ButtonConstants.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <GUIConstantsEx.au3> #include <IE.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 146, 80, 192, 124) $Label1 = GUICtrlCreateLabel("Link that Opens Google", 16, 32, 116, 17) GUICtrlSetFont(-1, 8, 400, 4, "MS Sans Serif") GUICtrlSetColor(-1, 0x0000FF) GUICtrlSetCursor (-1, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Label1 $oIE = _IECreate ("[url="http://www.google.com"]www.google.com[/url]") EndSwitch WEndThank You. Link to comment Share on other sites More sharing options...
ileandros Posted October 10, 2012 Share Posted October 10, 2012 I can close it. Just tried and it closes. I think you have posted only some part of you script and the problem is not in this part of it. I feel nothing.It feels great. Link to comment Share on other sites More sharing options...
JohnOne Posted October 10, 2012 Share Posted October 10, 2012 Perhaps it's busy opening the IE window and navigating, I'm sure it closes after that is complete. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Gibbz Posted October 10, 2012 Share Posted October 10, 2012 Its Worked With Me Too And my advice is dont use koda cuz you will not know where the problem is Link to comment Share on other sites More sharing options...
Danyfirex Posted October 10, 2012 Share Posted October 10, 2012 So if you want to open a link I recomend you use ShellExecute, because it will open in defect broswer. #include <ButtonConstants.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <GUIConstantsEx.au3>#Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 146, 80, 192, 124) $Label1 = GUICtrlCreateLabel("Link that Opens Google", 16, 32, 116, 17) GUICtrlSetFont(-1, 8, 400, 4, "MS Sans Serif") GUICtrlSetColor(-1, 0x0000FF) GUICtrlSetCursor (-1, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Label1 $oIE = ShellExecute("http://www.google.com") EndSwitch WEnd Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
edena Posted October 10, 2012 Author Share Posted October 10, 2012 Okay! thank you Please! i have another question, When i click on the GUI link there's two browsers opening up. There's one with the Google webpage and the other one seem to be blank yet still loading. Now if this is happening to me how can i just open only one website instead of two? Thank You. Link to comment Share on other sites More sharing options...
ileandros Posted October 10, 2012 Share Posted October 10, 2012 Could be an advertisment on the site you are opening. Or check ur browser setting. With the code above this thing doesnt happen I feel nothing.It feels great. Link to comment Share on other sites More sharing options...
JohnOne Posted October 10, 2012 Share Posted October 10, 2012 (edited) If it were me, I'd be looking for problems on my computer. Infections of some sort, it is supposed to, and does open only one browser on a healthy computer. EDIT: or what ileandros said. Edited October 10, 2012 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
edena Posted October 11, 2012 Author Share Posted October 11, 2012 Okay Thanks Danyfirex and Thanks to everyone, its working well! 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