Jump to content

Problem clicking on a dialog window from IE


Recommended Posts

Hi!

I've been working with the _IE tools and the forums helped me a lot, but i don't know how to deal with this.

I must click on a link that when i click it, pops out a little dialog asking you a YES/No question.

Here's the code of the onclick event from the HTML.

onclick="if ( !confirm ('//some prompt text') ) { return false; }"

I've tried some things with the _IEAction command, without success.

Any help would be appreciated.

I attached a screenshot of the prompt window too.

Posted Image

Thx in advance!

Edited by Soulstriker
Link to comment
Share on other sites

Examine that dialog box with the AutoIt info tool (AU3Info.exe). It might be a normal window with normal controls that respond to ControlSend() or ControlClick().

:mellow:

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

Hi! Thx for the replies!

Ok, I found out that when that box pops out, the script, for some unknown reason stop executing, and anything else that should happen after that box, doesn't happen.

What I did was try some control commands. Something curious was that ControlClick didn't work but ControlSend did.

I made another script that executes before clicking the link and sends an Enter key to the box.

It worked perfect.

Thx for the help!

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