Jump to content

WinWaitActive(substring())?


Recommended Posts

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

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

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