Command Reference - Action Examples
|
Actions used: |
In this example, we'll display a list of all of the windows that are currently open on the user's system in a List Box Object. This list will include any "hidden" windows that the user wouldn't normally see. (Any process that has a window of some sort in memory will be included in the list, even if the window is currently invisible or inaccessible by normal means.)
Here's what the action list looks like:

First, we use a "Window - Get Titles" action to get the names of all windows that are currently running, and store it in a variable called %WndTitles% as a double-semicolon (;;) delimited list.

Then, we use a "List Box Object - Remove" action to clear out our list box (by removing all of the items).

Finally, we use a "List Box Object - Add" action to add all of the window titles stored in %WndTitles% as a delimited list to our list box. To make each window title appear as a separate item in the list box, we just specify the same delimiter that we used in the "Window - Get Titles" action.

Note that you can add multiple items to a list box by using a delimited list with the "List Box Object - Add" action. The "List Box Object - Add" action scans through the string that you provide, looking for the delimiter...wherever the delimiter is found is considered the end of one item and the beginning of the next.
Here's a link to the finished example, as an AutoPlay Media Studio 4.0 page that you can import into your own project: