Jump to content

<IE.au3> _IEAttach - $_IEStatus_NoMatch


Recommended Posts

I tried to use _IEAttach function with "dialogbox" parameter but don't succeed.

1.Here is code of the button:

<button id="i167" name=":submit" value="vl" onclick="var wcall=wicketSubmitFormById('actionForm', '?x=Goyqg*H6M3WGHkeSG*WX5fInhnwvtVVKiL75z-DSWNxjD0HmgKj-ga*N9dSoSBLKyoHhVa3UfdfFHnlWJsiWo407qVkhikLpPjkBeYHCbyN*SOhulP77QK*uqYyRUJIj', ':submit' ,null,null, function() {return Wicket.$$(this)&amp;&amp;Wicket.$$('actionForm')}.bind(this));;; return false;" type="button">
            Click Me
        </button>

a dialogbox appear after click button.

2.Here is code of dialog:

<title>Here is title</title>
<form id="cf" action="?x=Wz6QLwif5XQ-In*NeT9HGHcmAp-UhVI3ZVBvv*D4Xh3B0sfxDqG3m6eutINwc9PV" target="_parent" method="post">

<p class="center">
<button id="focusObj" type="submit">OK</button>
<button id="i17f" onclick="var wcall=wicketAjaxGet('?x=Wz6QLwif5XQ-In*NeT9HGHyclezytkJdhw840heocbSEYT5SOXb0rcXWhyKsCfUBFHgX67AmsK8',null,null, function() {return Wicket.$('i17f') != null;}.bind(this));return !wcall;" key="cancel_but">Cancel</button>
</p>
</form>

I tried with:

$oIE = _IEAttach("Here is title", "dialogbox")

~> $_IEStatus_NoMatch

I want to control that dialog and click on OK button.

Can anyone help me? :cry:

Edited by trandatnh
Link to comment
Share on other sites

Please note this in the IEAttach remarks in the helpfile:

The advanced Window Title selection syntax available to the standard Win* functions may be used in place of a title sub-string for the modes "dialogbox" and "embedded".

Please see if you can find the window with standard Win* functions first, then move on to _IEAttach

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

thank Dale!

I will try again. :)

P/S: how do I attach a IE's messagebox?

If it's an ordinary Windows dialog box, you don't "attach", you use the ordinary AutoIt tools, like WinActivate(), WinGetText(), ControlClick(), etc. This is most likely.

You would only _IEAttach() to the pop-up if it was another IE browser instance (rare but possible).

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

If it's an ordinary Windows dialog box, you don't "attach", you use the ordinary AutoIt tools, like WinActivate(), WinGetText(), ControlClick(), etc. This is most likely.

You would only _IEAttach() to the pop-up if it was another IE browser instance (rare but possible).

:)

Yep, I think so too. Because this pop-up is not an IE browser instance. It's not in task bar. Thank for your advice!

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...