dustyRods Posted July 26, 2007 Share Posted July 26, 2007 Hi, Ive written a script that work with different versions of flash. currently i have WinWaitActive("Macromedia Flash MX") but this breaks if im using flash 8 because its window would be WinWaitActive("Macromedia Flash Professional 8") Im wondering can i just use the first word of the window so something like if window title contains macromedia then wait till its active WinWaitActive(substing("Macromedia") or something along those lines any help appriciated. D Link to comment Share on other sites More sharing options...
MHz Posted July 26, 2007 Share Posted July 26, 2007 Look at Opt('WinTitleMatchMode', 2) for matching substrings within a title. Link to comment Share on other sites More sharing options...
dustyRods Posted July 26, 2007 Author Share Posted July 26, 2007 Brilliant!!! thanks ill have a look at it now.Look at Opt('WinTitleMatchMode', 2) for matching substrings within a title. Link to comment Share on other sites More sharing options...
dustyRods Posted July 26, 2007 Author Share Posted July 26, 2007 Hi me again (pfft noobs ) opt("wintitlematchmode",2) WinWaitActive("Macromedia") i did this and it seems to work but am i lucking out and its not really waiting for it hmmm... Look at Opt('WinTitleMatchMode', 2) for matching substrings within a title. Link to comment Share on other sites More sharing options...
MHz Posted July 26, 2007 Share Posted July 26, 2007 i did this and it seems to work but am i lucking out and its not really waiting for it hmmm...Perhaps the window is not recognized as activated. Try this Opt('TrayIconDebug', 1) Opt("WinTitleMatchMode", 2) WinWait("Macromedia") WinActivate("Macromedia") WinWaitActive("Macromedia") 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