Jump to content
Sign in to follow this  
momotan

IE not clicking when Invisible

Recommended Posts

momotan

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?

Share this post


Link to post
Share on other sites
AdmiralAlkex

Hi and Welcome to the forums!

MouseClick() returns 1 or 0, where is that listed as a valid action for _IEAction()? Did you realllllly use the helpfile while writing this? :)

Share this post


Link to post
Share on other sites
momotan

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.

Share this post


Link to post
Share on other sites
monoscout999

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.

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.