Sign in to follow this  
Followers 0
momotan

IE not clicking when Invisible

5 posts in this topic

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



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

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  
Followers 0