deadangel Posted January 8, 2008 Share Posted January 8, 2008 (edited) When I select one drop down menu on web page, IE will pop up one warning box, but I can't use "CntrolClick"to click "OK" button of warning box even if it has controlID. I need you help for this issue. thanks Edited January 8, 2008 by deadangel Link to comment Share on other sites More sharing options...
DaleHohm Posted January 8, 2008 Share Posted January 8, 2008 You'll need to show some code. Also, suggest you use SciTe debug mode (see my sig) to insure you know exacly how far your code gets. Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
deadangel Posted January 9, 2008 Author Share Posted January 9, 2008 You'll need to show some code. Also, suggest you use SciTe debug mode (see my sig) to insure you know exacly how far your code gets.Dalethanks for your suggestion, I will try it. Link to comment Share on other sites More sharing options...
deadangel Posted January 9, 2008 Author Share Posted January 9, 2008 When I select one drop down menu on web page, IE will pop up one warning box, but I can't use "CntrolClick"to click "OK" button of warning box even if it has controlID. I need you help for this issue. thanksbelow is my code #include <GUIConstants.au3> #include <IE.au3> $oIE = _IECreate("http://192.168.1.1/cfg_qos_bw_nwan1.htm",1) $oForm = _IEFormGetObjByName ($oIE, "form1") $oSelect = _IEFormElementGetObjByName ($oForm, "qos_enabled") if _IEFormElementGetValue($oSelect) == 1 Then _IEFormElementOptionselect($oSelect,0,1,"byValue") else _IEFormElementOptionselect($oSelect,1,1,"byValue") $oIE1 =_IEAttach("Microsoft Internet Explorer","DialogBox") _IEQuit($oIE1) EndIf $oSelect = _IEFormElementGetObjByName ($oForm, "but_save") _IEAction($oSelect,"click") Link to comment Share on other sites More sharing options...
DaleHohm Posted January 9, 2008 Share Posted January 9, 2008 And what is the output to the SciTe console using SciTe debug mode? This will tell you how far your code gets. Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
deadangel Posted January 9, 2008 Author Share Posted January 9, 2008 And what is the output to the SciTe console using SciTe debug mode? This will tell you how far your code gets.DaleI found Autoit can not handle the pop up windows when use _IECreate to call EXPLORE.EXE open web pages. Link to comment Share on other sites More sharing options...
DaleHohm Posted January 9, 2008 Share Posted January 9, 2008 I found Autoit can not handle the pop up windows when use _IECreate to call EXPLORE.EXE open web pages.I really doubt that is true, but really cannot comment on your issue since you have not provided the requested information.Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
deadangel Posted January 10, 2008 Author Share Posted January 10, 2008 (edited) I really doubt that is true, but really cannot comment on your issue since you have not provided the requested information.DaleHi DaleThanks for your help, I have resolved this issue by vicarious solution.use _IEFormElementOptionselect($oSelect,1,1,"byValue",0)0 = do not fire onchange or onclick event after setting valuethe pop up warning will not display. Edited January 10, 2008 by deadangel 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