dustyRods Posted July 26, 2007 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
MHz Posted July 26, 2007 Posted July 26, 2007 Look at Opt('WinTitleMatchMode', 2) for matching substrings within a title.
dustyRods Posted July 26, 2007 Author Posted July 26, 2007 Brilliant!!! thanks ill have a look at it now. MHz said: Look at Opt('WinTitleMatchMode', 2) for matching substrings within a title.
dustyRods Posted July 26, 2007 Author 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... MHz said: Look at Opt('WinTitleMatchMode', 2) for matching substrings within a title.
MHz Posted July 26, 2007 Posted July 26, 2007 dustyRods said: 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")
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