| Solution |
| 1. | Create New Task |
Click on New -> Task Editor. |
| 2. | Loop through all open Word windows |
Using the Loop command from the Conditions/Loops category, select
"Start Loop" and select "Condition" option from the Looping Commands wizard. Another window opens with the title "Loop While".
Select the option "Window Exist" and from the "Select Title" list select a Word window. Use the wild card (*) support to find
the all word window.
Screenshot 1Loop While Window Exists(- "Microsoft Word")
End Loop |
| 3. | Send Keystrokes to close the Word window |
Using the Insert Keystrokes command from the Keystrokes/Mouse category, specify the keystrokes ALT+F4 to close the Word window. Screenshot 2
Keystrokes: [ALT DOWN][F4][ALT UP] in "*Microsoft Word*" |
| 4. | Enable the option
"Enable this task to run with other similar files or window titles" |
In the main window of Automation Anywhere 5.0.2, select the
Properties Tab -> General Category. Click on the option "Enable this task to run with other similar files
or window titles". Screenshot 3 |
| |
When you run this task, it loops through all the open word windows and closes it. |