Jump to content

Auto IT Script and FireFox Popup issue


Recommended Posts

Hi

I am using FireFox 3.5 and executing my pop up script on it. Somehow the control click is not able to click on the OK button on the popup window which appears. I am able to detect and close the window although.

Could anyone please help in here.

Attached is the popup page and the auto it script.

Thanks

--

Neelakshi

Link to comment
Share on other sites

Hi

I am using FireFox 3.5 and executing my pop up script on it. Somehow the control click is not able to click on the OK button on the popup window which appears. I am able to detect and close the window although.

Could anyone please help in here.

Attached is the popup page and the auto it script.

Thanks

--

Neelakshi

Can you post your code please that we can test it ,

Thanks

Link to comment
Share on other sites

Can you post your code please that we can test it ,

Thanks

I am sorry i added that as an attachment i wonder why they were not there:

HTMLPAGE:

<html>

<head>

<title>My page</title>

<script type="text/javascript">

function show_confirm()

{

var r=confirm("Press a button");

if (r==true)

{

}

else

{

}

}

</script>

</head>

<body>

<input type="button" onclick="show_confirm()" value="Show confirm box" />

</body>

</html>

AutoIT Code:

$title="[REGEXPTITLE:" & $CmdLine[1] & "]"

$timeout=$CmdLine[2]

$buttontext=$CmdLine[3]

$imagefile =$CmdLine[4]

$prnt="prntscrn.exe " & $imagefile

WinWait($title,"",$timeout)

RunWait($prnt)

;WinClose($title)

ControlClick($title,"",$buttontext)

Thanks

--

Pallavi.

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