ALRIGHT:
1. Everything works except Windows Explorer. When I bring THAT up, even with a TEN second delay, Macro Scheduler still thinks that itself is the active window.
2. I can't do without ,X,Y in GetActiveWindow>window_handle,X,Y. That is, using only GetActiveWindow>window_handle screws things up.
3. Is there an advantage in using Label>waitforchange_1 instead of Label>waitforchange1 ?
This script brings up, maximizes, minimizes and closes notepad and wordpad, but it chokes on Explorer, even with a ten second wait.......
Let>WW_TIMEOUT=0
Let>WIN_USEHANDLE=1
GetActiveWindow>old_window
Run Program>C:\WINDOWS\notepad.exe
Label>waitforchange_1
GetActiveWindow>window_handle,X,Y
If>window_handle=old_window,waitforchange_1
Let>justopened_1=window_handle
WindowAction>1,justopened_1
Wait>0.5
WindowAction>2,justopened_1
GetActiveWindow>old_window
Run Program>C:\Program Files\Windows NT\Accessories\wordpad.exe
Label>waitforchange_2
GetActiveWindow>window_handle,X,Y
If>window_handle=old_window,waitforchange_2
Let>justopened_2=window_handle
WindowAction>1,justopened_2
Wait>0.5
WindowAction>2,justopened_2
Wait>1.5
WindowAction>3,justopened_1
WindowAction>3,justopened_2
GetActiveWindow>old_window
Run Program>C:\WINDOWS\explorer.exe
Label>waitforchange_3
GetActiveWindow>window_handle,X,Y
If>window_handle=old_window,waitforchange_3
Let>justopened_3=window_handle
//WaitWindowOpen>justopened_3
Wait>10
WindowAction>1,justopened_3
Wait>0.5
WindowAction>2,justopened_3
WindowAction>3,justopened_3
