cypher175 Posted May 9, 2009 Share Posted May 9, 2009 Is there anyway that I Can Block This IE Warning From Appearing or occurring when using _IE functions in my script..?? Link to comment Share on other sites More sharing options...
Valuater Posted May 9, 2009 Share Posted May 9, 2009 Well, you can get rid of it as soon as it pops up with something like this.. Func KillWindow($title) Local $Script = 'WinWait("' & $title & '", "")' & @CRLF & 'Send("{ENTER}")' Local $file_loc = @ScriptDir & "\Killer.au3" FileDelete($file_loc) FileWrite($file_loc, $Script) If @Compiled = 1 Then $file_exe = FileGetShortName(@AutoItExe & ' /AutoIt3ExecuteScript "' & $file_loc & '"') Run($file_exe) Else $file_au3 = FileGetShortName($file_loc) Run(@AutoItExe & " " & $file_au3, "", @SW_HIDE) EndIf EndFunc ;==>KillWindow 8) Link to comment Share on other sites More sharing options...
DaleHohm Posted May 9, 2009 Share Posted May 9, 2009 Val's suggestion will workTo get it at the source, figure out what function is being called as a result of the window onbeforeunload event and either override the function or insure that it does not pass a return value.Use the method I showed you here: http://www.autoitscript.com/forum/index.ph...c=94333&hl=Read more about this in this post: http://www.autoitscript.com/forum/index.ph...c=93917&hl=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...
cypher175 Posted May 9, 2009 Author Share Posted May 9, 2009 this URL http://forexproxyonline.info/browse.php?u=...e.cz%2F&b=4 also gives me an "Windows Internet Explorer" error popup message, but it seems to freeze my script until I manually close it myself.. how would i tackle this if im using _IECreateEmbedded() in a GUI..??someone told me that if it's a popup of the $oIE object I could use _IEPropertySet($oIE, 'silent', True) to block those IE error messages, but i am using that and it doesn't seem to be working...?? Link to comment Share on other sites More sharing options...
Valuater Posted May 9, 2009 Share Posted May 9, 2009 The OP is about a pop-up when you leave a URL. If you are now talking about "IE Error" messages, then you can use ... _IEErrorHandlerRegister() 8) Link to comment Share on other sites More sharing options...
DaleHohm Posted May 9, 2009 Share Posted May 9, 2009 You've already asked about a silver bullet here: http://www.autoitscript.com/forum/index.ph...c=94333&hl=And I gave you this reply:It may seem that there ought to be, but there is no "turn off pop-ups" setting anywhere. You need to dig in and find all of the specific methods and triggers used to create the pop-ups and address each one. You can typically do something about any and all of them, but it may be complex. So again, it depends on the page source and it will vary depending on whether they are alert boxes, navigation windows, print dialogs etc.There are many mechanisms at play here. In this specific case, look at the examples for _IEActionThere is no substitute for research and testing.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...
cypher175 Posted May 9, 2009 Author Share Posted May 9, 2009 why does this work..?? #include <IE.au3> $IE = _IECreate("http://forexproxyonline.info") _IENavigate($IE, "http://forexproxyonline.info/browse.php?u=http%3A%2F%2Fwww.google.cz%2F&b=4",0) WinWait("Windows Internet Explorer") ControlSend("Windows Internet Explorer","", "[CLASS:Button; TEXT:OK; Instance:1;]", "{Enter}") Sleep(10000)oÝ÷ Ù»¶¬v¬mjëh×6#include <IE.au3> $IE = _IECreateEmbedded() GUICreate("", 1100, 800) GUICtrlCreateObj($IE, 0, 0, 1100, 800) GUISetState() _IENavigate($IE, "http://forexproxyonline.info") _IENavigate($IE, "http://forexproxyonline.info/browse.php?u=http%3A%2F%2Fwww.google.cz%2F&b=4",0) WinWait("Windows Internet Explorer") ControlSend("Windows Internet Explorer","", "[CLASS:Button; TEXT:OK; Instance:1;]", "{Enter}") Sleep(10000) Link to comment Share on other sites More sharing options...
DaleHohm Posted May 9, 2009 Share Posted May 9, 2009 Explain what "doesn't work" means 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...
cypher175 Posted May 9, 2009 Author Share Posted May 9, 2009 it wont close the the overstack error i get when the GUI version visits that page, but the $IE = _IECreate("http://forexproxyonline.info") version works just fine at closing that overstack error..?? with the GUI version the script freezes up or something and WinWait("Windows Internet Explorer") doesn't seem to be able to function properly becuz that overstack error is preventing the script from continuing until its closed..?? Link to comment Share on other sites More sharing options...
DaleHohm Posted May 10, 2009 Share Posted May 10, 2009 Your troubleshooting stinks. I think you should pick a simpler project until you get better at this. 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...
cypher175 Posted May 10, 2009 Author Share Posted May 10, 2009 Save the webpage that this opens to "C:\_IE_Example.htm" #include <IE.au3> $oIE = _IE_Example ("form")oÝ÷ ÚØ^붬B¡×¨«¨´-=ØÅ©©èm«¨µ«¢+Ø9½QÉå%½¸(¥¹±Õ±Ðí%¹ÔÌÐì(((ÀÌØí%ô}% Éѵ ¤)U% ÉÑ ÅÕ½ÐìÅÕ½Ðì°ÄÄÀÀ°àÀÀ¤)U% Ñɱ ÉÑ=¨ ÀÌØí%°À°À°ÄÄÀÀ°àÀÀ¤)U%MÑMÑÑ ¤()}%9Ù¥Ñ ÀÌØí%°ÅÕ½ÐíèÀäÈí}%}áµÁ±¹¡Ñ´ÅÕ½Ðì¤(ÀÌØíMÕµ¥Ðô}%Ñ=© å9µ ÀÌØí%°ÅÕ½ÐíÍÕµ¥ÑáµÁ±ÅÕ½Ðì¤)}%Ñ¥½¸ ÀÌØíMÕµ¥Ð°ÅÕ½Ðí½ÕÌÅÕ½Ðì¤) ½¹Ñɽ±M¹ ÅÕ½ÐìÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì°ÅÕ½Ðím 1MLé%¹ÑɹÐáÁ±½ÉÉ}MÉÙÈì%9MQ9 èÅtÅÕ½Ðì°ÅÕ½Ðíí¹ÑÉôÅÕ½Ðì¤(()]¥¹]¥Ð ÅÕ½Ðí]¥¹½ÝÌ%¹ÑɹÐáÁ±½ÉÈÅÕ½Ðì¤) ½¹Ñɽ±M¹ ÅÕ½Ðí]¥¹½ÝÌ%¹ÑɹÐáÁ±½ÉÈÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì°ÅÕ½Ðíí¹ÑÉôÅÕ½Ðì¤)M±À ÄÀÀÀÀ how do you tackle that lil ("Windows Internet Explorer", ExampleFormSubmited) window that pops up after the SUBMIT button gets pressed..?? Link to comment Share on other sites More sharing options...
DaleHohm Posted May 10, 2009 Share Posted May 10, 2009 An additional troubleshooting tool to use is #AutoIt3Wrapper_Run_Debug_Mode=Y There is an issue with the AutoIt script execution being paused when the alert is created. It does not in fact have anything to do with the script clicking the button that creates it. I do not know why it happens, but it does only happen with the embedded browser and not a stand-alone one. It is not an issue with IE.au3, but is rather an interaction between the browser control and the GUICtrlCreateObj container. It will be worth simplifying this issue and reporting it as a bug. In the mean time your only recourse will be to prevent the popup from occuring or running a companion script that will look for the popup and dismiss it. 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...
cypher175 Posted May 12, 2009 Author Share Posted May 12, 2009 so how would you prevent that ("Windows Internet Explorer", ExampleFormSubmited) popup window from occurring then, with the above GUI - IECreateEmbedded() AutoIt Script..?? 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