darkmaster071 Posted April 14, 2009 Share Posted April 14, 2009 (edited) Im trying to automate a flash game all in the background and hidden. I tried with controls but it seems like they dont work as they are only for Windows, and i tried with _ie functions like _IEGetObjByName but they only work for the most simple forms and cannot identify flash buttons with it. So im asking if there is anyway at all to work with flash websites hidden in background? Any help will be much appreciated, i really want this to work. Edited April 14, 2009 by darkmaster071 Link to comment Share on other sites More sharing options...
blitzkrg Posted April 14, 2009 Share Posted April 14, 2009 Im trying to automate a flash game all in the background and hidden. I tried with controls but it seems like they dont work as they are only for Windows, and i tried with _ie functions like _IEGetObjByName but they only work for the most simple forms and cannot identify flash buttons with it. So im asking if there is anyway at all to work with flash websites hidden in background? Any help will be much appreciated, i really want this to work.I'm trying to do something similar with silverlight.I have not found a viable solution yet. Link to comment Share on other sites More sharing options...
darkmaster071 Posted April 14, 2009 Author Share Posted April 14, 2009 I am struggling to get this working. However the controlclick is bugging me why cant you just target the IE instance, get the control mouse coordinates of that window and click all you want, wherever you want and in a hidden background process. Isnt there a solution to clicking on flash object in hidden window? Does it or does it not exist? Link to comment Share on other sites More sharing options...
darkmaster071 Posted April 15, 2009 Author Share Posted April 15, 2009 Anyone? Please. Link to comment Share on other sites More sharing options...
RobertKipling Posted April 15, 2009 Share Posted April 15, 2009 Try pressing TAB multiple times while in the Flash window. It might cycle through clickable elements. There's a recording tool that comes with AutoIt, it's okay, but getting the timing right might take a little more effort. Link to comment Share on other sites More sharing options...
blitzkrg Posted April 15, 2009 Share Posted April 15, 2009 the problem with control click or any of the similar methods, is they require unique handles. with falsh and silverlight, i think the buttons, the screen/display, etc. all have the same exact handle. so you cant address say the "pause" button uniquely, choose the pause handle is the same as chooseing the next or play or whatever.. I've used multiple "info/spy" tools and they all report the same information. Link to comment Share on other sites More sharing options...
darkmaster071 Posted April 15, 2009 Author Share Posted April 15, 2009 It seems like ive managed to setup Controlclick to target IE window all together and can click flash. However there is one button which controlclick cannot click, idk why and the sending TAB keystroke worked. Thanks. Link to comment Share on other sites More sharing options...
Bert Posted April 15, 2009 Share Posted April 15, 2009 AutoIt is not designed to work with flash. You will have to mouseclick to click on the spot you want. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
blitzkrg Posted April 16, 2009 Share Posted April 16, 2009 AutoIt is not designed to work with flash. You will have to mouseclick to click on the spot you want.AutoIt wasn't "designed" to work with allot of things, but some very crafty people have found all kinds of ways of making AutoIt interact with things that were not foreseen from a design perspective.I think this problem (and mine / silverlight) is solvable by someone with more knowledge on the subject. 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