Sign in to follow this  
Followers 0
dustyRods

WinWaitActive(substring())?

5 posts in this topic

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

Share this post


Link to post
Share on other sites



Look at Opt('WinTitleMatchMode', 2) for matching substrings within a title. :)

Share this post


Link to post
Share on other sites

Brilliant!!! thanks ill have a look at it now.

Look at Opt('WinTitleMatchMode', 2) for matching substrings within a title. :)

Share this post


Link to post
Share on other sites

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. :P

Share this post


Link to post
Share on other sites

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")

Share this post


Link to post
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
Sign in to follow this  
Followers 0