Jump to content

How to find a "floating window"?


Guest lucAI
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

:)

Link to comment
Share on other sites

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 by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Link to comment
Share on other sites

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...