edena Posted October 10, 2012 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.
ileandros Posted October 10, 2012 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.
JohnOne Posted October 10, 2012 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.
Gibbz Posted October 10, 2012 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
Danyfirex Posted October 10, 2012 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
edena Posted October 10, 2012 Author 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.
ileandros Posted October 10, 2012 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.
JohnOne Posted October 10, 2012 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.
edena Posted October 11, 2012 Author Posted October 11, 2012 Okay Thanks Danyfirex and Thanks to everyone, its working well!
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