Jump to content

Did any window spring up or close?


jdickens
 Share

Recommended Posts

Func NumOWinsIsChanged($NumOWinsPrev, $NumOWinsNow = 0)
  $WinsRA = WinList()
  $NumOWinsNow = $WinsRA[0][0]
    If $NumOWinsPrev <> $NumOWinsNow Then
    Return 1
  Else
    Return 0
  EndIf
EndFunc

Func GetNumOWins(ByRef $NumOWins)
  $WinsRA = WinList()
  $NumOWins = $WinsRA[0][0]
  Return $NumOWins
EndFunc

dim $ANumOWins
GetNumOWins($ANumOWins)
While 1
  If NumOWinsIsChanged($ANumOWins) Then
    MsgBox(0, "Number of Windows", "Number of Windows has changed.")
    ExitLoop ; MsgBox alters number of windows; must exit or apply logic for open or close windows
  EndIf
WEnd

Someone let me know if there is supposed to be a better place for these very basic "UDF's" I thought they might be useful for beginners like me.

Not relevant:

PS - Did you care that UDF is a chain of convenience marts here in sunny sun-shiny Ohio? PS Our rain makes London look like Southern California (when it's not raining there). We laugh at Seattle's rain. Ha ha.

If I am too verbose, just say so. You don't need to run on and on.

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