Jump to content

Accessing a Modal Dialog


hward
 Share

Recommended Posts

I am relatively new to AutoIt, but have managed to find solutions from help or these forums for everything I need except this one.

I am clicking an image that opens another web page using the following:

_IEImgClick ($oFrame, "https://alinea.inmar.com/alinea/images/adddocument.gif")

This creates a modal dialog using javascript "showModalDialog":

function AddDoc () {

var retVal;

retVal = showModalDialog("docex/docx_rep2.asp",'newdocx','dialogWidth:330px;dialogHeight:445px;status:no;scroll:no');

if (retVal == "ok") {

sParm = "";

//Submit request for Doc X

docXsubmitAsync (sParm);

return;

}

}

I have my AutoIt options set like this:

Opt ("WinDetectHiddenText", 1)

Opt ("WinSearchChildren", 1)

Opt ("MustDeclareVars", 1)

I have tried everything I can think of or find in the help, but when the _IEImgClick executes, the dialog opens, but the script freezes at that point until the dialog is manually closed.

How can I get access to this page and keep the script running?

Link to comment
Share on other sites

  • 3 months later...

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