Sign in to follow this  
Followers 0
cypher175

How Can I Block This IE Warning From Appearing..?

13 posts in this topic

Is there anyway that I Can Block This IE Warning From Appearing or occurring when using _IE functions in my script..??

Posted Image

Share this post


Link to post
Share on other sites



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)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Val's suggestion will work

To 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

Share this post


Link to post
Share on other sites

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...??

Share this post


Link to post
Share on other sites

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)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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 _IEAction

There 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

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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..??

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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..??

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

so how would you prevent that ("Windows Internet Explorer", ExampleFormSubmited) popup window from occurring then, with the above GUI - IECreateEmbedded() AutoIt Script..??

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0