momotan Posted June 30, 2011 Share Posted June 30, 2011 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? Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted June 30, 2011 Share Posted June 30, 2011 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? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
JohnOne Posted July 1, 2011 Share Posted July 1, 2011 Plus the window is not "invisible", it is hidden, and mouseclick wont cut it anyway. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
momotan Posted July 1, 2011 Author Share Posted July 1, 2011 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. Link to comment Share on other sites More sharing options...
monoscout999 Posted July 1, 2011 Share Posted July 1, 2011 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now