Guest lucAI Posted October 20, 2004 Posted October 20, 2004 Hi, I'm trying to automate Flash MX, which uses various panels. The panels have no Window Title and most of them, no Window Text. How can they be located using autoit? Thanks, Luc
trids Posted October 20, 2004 Posted October 20, 2004 Are the elements / panels visible to AutoSpy? And if so, is each element distinguishable from the next, when you view them with AutoSpy? If not, then I'd say they can't be automated by reference. Only by "blind" mouse clicks and drags etc.
Josbe Posted October 20, 2004 Posted October 20, 2004 They're treated as special classes, and you can't manipulate from AutoIt (I believe). Take a look using AutoIt-Spy like trids said. AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta
scriptkitty Posted October 20, 2004 Posted October 20, 2004 (edited) You can do a few things with them, I found that if you hold the mouse down on them, you can see thier individual classnames. Try this out, it will hide one of the windows for one second. I used photoshop CS for this example. AutoItSetOption("WinTitleMatchMode", 4);2 = Match any substring in the title winsetstate("classname=PSFloatC","",@SW_HIDE) sleep(1000) winsetstate("classname=PSFloatC","",@SW_SHOW) Don't have the newest Flash. Come to think of it, flash might not be useing the seperate windows. If similar to dreamweaver, you can do a few things with windows like the properties.AutoItSetOption("WinTitleMatchMode", 4);2 = Match any substring in the title winactivate("Macro") sleep(2000) winsetstate("classname=_macr_dreamweaver_floater_window_","",@SW_HIDE) sleep(1000) winsetstate("classname=_macr_dreamweaver_floater_window_","",@SW_SHOW) Edited October 20, 2004 by scriptkitty AutoIt3, the MACGYVER Pocket Knife for computers.
Guest lucAI Posted October 20, 2004 Posted October 20, 2004 Thanks for the tips. Using the Spy, I found out that all the floating windows of Flash (Mx and MX 2004) have the same classname ( classname=Afx:400000:8:10013:0:0 ). Moreover, if the panels are docked, the classname changes to ( classname=SmartSketchMDIFrame ). Testing applications, automating user input, such is WinRunner - how are they able to find the components, even if they're not standard window controls? -- luc
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