Jump to content

Recommended Posts

Posted

Newb alert!

Here's the situation, this code works great when the browser is visible. It clicks a flash button on the site it browses to. However, as soon as the invisible option is used, no clicky.

$oIE = _IECreate ($link, 0, 0, 1, 1)

$oForm = _IEGetObjById ($oIE, "hotzoneDiv_asset2")

$clicker = MouseClick("left")

$oclick = _IEAction($oForm, $clicker)

I used every other clickable option i can think of but they either don't work at all in either visible or invisible, like _ieaction ($xx, "click").

Any ideas?

Posted

Thanks for the responses guys. Yes, I stand corrected, i am talking about the hidden window. When the window is not hidden, the click happens, returns a value of 1. When the window is hidden i get return value of 0, and script pauses. So, I am looking for a means of having the click happen in the hidden window.

Posted

I don`t know if this will work but try it.

$oIE = _IECreate ($link, 0, 0, 1, 1)
$oForm = _IEGetObjById ($oIE, "hotzoneDiv_asset2")
If isobj($oForm) Then $oForm.click

If you can post the web that you need to do the click, it will be more easy to us help you.

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
×
×
  • Create New...