Macro Scheduler 15

GetWindowList

GetWindowList>window_list

 

Returns a list of open top-level window titles.  The list is delimited by carriage-return-line-feed pairs (CRLF).

 

To return window handles instead of window titles first set the WIN_USEHANDLE variable to 1.

 

Abbreviation: GWL

 

Examples:

 

//Loop through a list of windows
GetWindowList>winlist
Separate>winlist,CRLF,windows
Let>k=1
Repeat>k
  Let>this=windows_%k%
  MessageModal>this
  Let>k=k+1
Until>k>windows_count
 

//Populate a dialog combo box with a window list

GetWindowList>Dialog1.msComboBox1.Items.Text
ResetDialogAction>Dialog1