Jump to content
Sign in to follow this  

Accessing a Modal Dialog

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);




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?

Share this post

Link to post
Share on other sites

i got this problem too....

anyone give the recipe?

_IEAttach doesn't work.(or may i can do something wrong)

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.