Jump to content

Window Not Recognized


DuncanM
 Share

Recommended Posts

Thanks. I agree..I haven't had any luck finding any posts with the same issue and a solution either. You would think this would be a common task! Hopefully it's just something we're overlooking, but I've tried a ton of things so far..

I've some day off...

can anyone give us an help?

As far as I've understood, when you click on that kind of links control is taken by the dialog box interrupting the execution of any script line following ...

How can we solve this problem?

As Duncan says is a very basic automation with IE and it's impossible that none has faced it previously. :lmao:

Link to comment
Share on other sites

Through this whole thread, you've managed to show "nothing" of what you've tried and what hasn't worked for you :lmao:

Did you try the basics?

Opt('WinTitleMatchMode', 4)
Dim $Continue = True;If $Continue = True then it will (should if it's default) click the Continue or Ok button

While 1
    If WinExists('classname=#32770') Then
        If $Continue Then
            Send('{ENTER}')
        Else
            Send('{TAB}{ENTER}')
        EndIf
    EndIf
    Sleep(10)
WEnd
Ooopss.... :geek:

Haven't seen this :ph34r:

thankyou 'SmOke_N'. I'll try it and give you a feedback.

Link to comment
Share on other sites

The whole purpose of this script is to automatically configure a browser-based device - that is why there is not site I can give you to test with. The answer to the second question is the same as the first - this is a trusted device and we want to automatically accept the certs. Both of these are IE dialog boxes, which is why I'm puzzled as to why no one has had this issue before.

DuncanM,

I ran into something like this a bit ago.

Give this code a try.

#include <IE.au3>
$oIE = _IECreate("https://192.168.100.1", 0, 1, 0)
WinWait("Client Authentication", "The Website you want to view")
ControlSend("Client Authentication", "OK", 1)

HTH.

Link to comment
Share on other sites

DuncanM,

I ran into something like this a bit ago.

Give this code a try.

#include <IE.au3>
$oIE = _IECreate("https://192.168.100.1", 0, 1, 0)
WinWait("Client Authentication", "The Website you want to view")
ControlSend("Client Authentication", "OK", 1)

HTH.

lte5000,

THANK YOU!!! That did the trick..I knew there had to be some way around it - you're a lifesaver!

Link to comment
Share on other sites

lte5000,

THANK YOU!!! That did the trick..I knew there had to be some way around it - you're a lifesaver!

Welcome!

Without those extra parameters (actually the fourth parameter) _IECreate just waits and waits and the page never loads

Optional: specifies whether to wait for page to load before returning

0 = Return immediately, not waiting for page to load

1 = (Default) Wait for page load to complete before returning

Link to comment
Share on other sites

Welcome!

Without those extra parameters (actually the fourth parameter) _IECreate just waits and waits and the page never loads

lte,

One more quick question - later in my script, I get references to the left and right frames as follows:

$leftFrame = _IEFrameGetCollection($oIE, 1)

$rightFrame = _IEFrameGetCollection($oIE, 2)

Then, I click a submit button in the right frame, which displays a generic popup window asking me if I want to continue (OK/CANCEL) - I cannot seem to get it to click on the OK button for this popup. Do you know if this could be caused by the fact that I'm referencing a specific frame, or if there are additional parameters I need to use when creating the reference to the right frame? Thanks again!

Link to comment
Share on other sites

lte,

One more quick question - later in my script, I get references to the left and right frames as follows:

$leftFrame = _IEFrameGetCollection($oIE, 1)

$rightFrame = _IEFrameGetCollection($oIE, 2)

Then, I click a submit button in the right frame, which displays a generic popup window asking me if I want to continue (OK/CANCEL) - I cannot seem to get it to click on the OK button for this popup. Do you know if this could be caused by the fact that I'm referencing a specific frame, or if there are additional parameters I need to use when creating the reference to the right frame? Thanks again!

Wouldn't know... without seeing your code. :lmao:

Link to comment
Share on other sites

Wouldn't know... without seeing your code. :lmao:

I apologize, but I am not able to import all my code at the moment - my only question is if AutoIT might somehow be waiting for the dialog box to exit before continuing, and if so, is there a way to have it not wait?

Link to comment
Share on other sites

I apologize, but I am not able to import all my code at the moment - my only question is if AutoIT might somehow be waiting for the dialog box to exit before continuing, and if so, is there a way to have it not wait?

Have you been perusing the docs for the _IE functions? (in the AU3 help file under 'User Defined Functions' > 'IE Management')

Anyway, I assume you are using _IEFormSubmit to click the 'submit button'?

Try this:

_IEFormSubmit ($TheForm, 0)oÝ÷ Ú)ìµæ¡ûaÆ®¶­sbôTf÷&Õ7V&ÖBb33cµFTf÷&Ò

--------------------------------------------------------------------------------

Submit a specified Form.

#include <IE.au3>

_IEFormSubmit ( ByRef $o_object [, $f_wait = 1])

Parameters

$o_object Object variable of an InternetExplorer.Application, Form object

$f_wait Optional: specifies whether to wait for page to load before returning

0 = Return immediately, not waiting for page to load

1 = (Default) Wait for page load to complete before returning

Link to comment
Share on other sites

Sorry for the delayed response - I've been out the past several days. Thanks for the help, but _IEFormSubmit is not responding. I know I'm referencing the correct form object, and it still will not submit (yet I get no errors, nothing). Have you encountered this before??

Link to comment
Share on other sites

  • 5 weeks later...

DuncanM,

I ran into something like this a bit ago.

Give this code a try.

#include <IE.au3>
$oIE = _IECreate("https://192.168.100.1", 0, 1, 0)
WinWait("Client Authentication", "The Website you want to view")
ControlSend("Client Authentication", "OK", 1)

HTH.

Hi need urgent help

i tried your code but still doesnt works:(

please look

#include <IE.au3>
$oIE = _IECreate("https://website", 0, 1, 0)
WinWait("Client Authentication", "The Website you want to view")
ControlSend("Client Authentication", "OK", 1)
Edited by emre
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...