How can I set the script to close all windows before doing the backup?
thanks
Close all windows
Moderators: Dorian (MJT support), JRL
Have a try,
Code: Select all
CapsOff
//Use Taskmanager to activate existing windows
Press ALT
Press TAB
Release ALT
WaitWindowOpen>*
Label>Next
GetActiveWindow>window,x,y
//Program Manager=The name of a window commonly known as --> Desktop
If>window=Program Manager,Backup
CloseWindow>%window%
Wait>1
Goto>Next
Label>Backup
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Hi Lumumba...
Nice routine to handle that.
But shouldn't the Label>Next be at the top of the first section, before press the ALT-TAB combination? Change shown below:
Nice routine to handle that.
But shouldn't the Label>Next be at the top of the first section, before press the ALT-TAB combination? Change shown below:
//Use Taskmanager to activate existing windows
Label>Next
Press ALT
Press TAB
Release ALT
WaitWindowOpen>*
GetActiveWindow>window,x,y
//Program Manager=The name of a window commonly known as Desktop
If>window=Program Manager,Backup
CloseWindow>%window%
Wait>1
Goto>Next
Label>Backup