If Window Is a...
There are many different window options to pick from in Version 1.0... Button/Icon, Checkbox, Label, ListBox, Radio Button, Text Field, & Window. This will just add on the code you tell it to add at the end of your current code... After you select the command to use, a window will come up prompting you for the window you want to do whatever to. It will show a list of all the variables in your code, so all you do is pick the variable, and click 'OK'. All of the different options automatically add the declarations & constants you need to the Declarations & Constants window...
Example:
Lets say your current code is:
AOLFrame&
= FindWindow("AOL Frame25", vbNullString)
MDIClient& = FindWindowEx(AOLFrame&, 0&, "MDIClient", vbNullString)
AOLChild& = FindWindowEx(MDIClient&, 0&, "AOL Child", "Sign
On")
AOLIcon& = FindWindowEx(AOLChild&, 0&, "_AOL_Icon", vbNullString)
For i = 1 To 3
AOLIcon& = FindWindowEx(AOLChild&, AOLIcon&,
"_AOL_Icon", vbNullString)
Next i
Lets say you went to 'If Window Is a Button/Icon..." and selected: Click Button... (Using SendMessage). And you choose the AOLIcon& window from the Choose Window prompt. Your new code would be:
AOLFrame&
= FindWindow("AOL Frame25", vbNullString)
MDIClient& = FindWindowEx(AOLFrame&, 0&, "MDIClient", vbNullString)
AOLChild& = FindWindowEx(MDIClient&, 0&, "AOL Child", "Sign
On")
AOLIcon& = FindWindowEx(AOLChild&, 0&, "_AOL_Icon", vbNullString)
For i = 1 To 3
AOLIcon& = FindWindowEx(AOLChild&, AOLIcon&,
"_AOL_Icon", vbNullString)
Next i
Call SendMessage(AOLIcon&, WM_LBUTTONDOWN, 0&, 0&)
Call SendMessage(AOLIcon&, WM_LBUTTONUP, 0&, 0&)
That code will now click the AOLIcon& window using SendMessage. It's pretty much the same for all the other different "If Window Is a..." commands...