Manage Windows Controls - Examples         How to use?

 

Example 1: To extract the event log of a pc.

  1. Open the Event viewer and double click on the event log to view its properties.
  2. Open the Task Editor from Tools->Task Editor.
  3. Double click on 'Get text'
  4. Select the appropriate window from the list.
  5. Click on 'Capture' and select the text which contains the error report.
  6. Assign the value to the desired variable.
  7. Click 'Save' button.

Example 2: To get checkbox status while configuring a software.

  1. Open the Task Editor from Tools -> Task Editor.
  2. Double Click on 'Check Box' command.
  3. Select the window title from the list. e.g. Options.
  4. Click and hold the capture and drag your mouse on the checkbox whose status you are seeking. The appropriate line containing the checkbox will get selected.
  5. Select the 'Get Check Box Status' action.
  6. Assign the value to a variable from the list.
  7. Click on 'Save' button.

Example 3: To enter data from a comma separated (.csv) file into an application.

  1. Open the application you want to enter data into.
  2. Open the Task Editor from Tools -> Task Editor.
  3. Double Click the Excel->Open Spreadsheet command to open the comma separated (.csv) file having the data.
  4. Double Click the Excel->Get Cells (Multiple) and specify the 'From Specific Cell' as the first cell in your csv file & the 'To Specific Cell' as the last cell.
  5. Insert a loop 'Each row in an Excel Dataset'.
  6. Depending on the controls in your application double click on the relevant 'Manage Windows Controls' command. Select the application window from the list. Click on 'Capture' and hold and drag your mouse on the control. Then select the required action to set the value of the control to that from the Excel dataset.
  7. Click on 'Save' button.
  8. Repeat steps 6 to 7 for all the fields in the application.
  9. Click 'Capture' and hold and drag your mouse on the button to be clicked to save the data entered in your application. (Steps 6 to 8 should be within the loop)
  10. Click on 'Save' button.
  11. Double click the Excel->Close Spreadsheet command.
  12. Click on 'Save' button.

Example 4: To select options required to generate a report from an application.

  1. Open the application you want to generate the report from.
  2. Open the Task Editor from Tools -> Task Editor.
  3. Depending on the controls in the report generation options window of your application double click on the relevant 'Manage Windows Controls' command. Select the report generation options window from the list. Click on 'Capture' and hold and drag your mouse on the control. Then select the required action to set the value of the control.
  4. Click on 'Save' button.
  5. Repeat steps 6 to 7 for all the options to be set for the report.
  6. Click 'Capture' and hold and drag your mouse on the button to be clicked to save the options entered and start processing the report.
  7. Click on 'Save' button.

Example 5: To extract a table from a web page after it is loaded.

  1. Open the Task Editor from Tools -> Task Editor.
  2. Double click on the Internet->Web Recorder command and select the 'Open Browser' command and specify the URL of the site to be opened.
  3. Click on 'Save' button.
  4. Double click on the 'Manage Windows Controls' command and select the 'Status Bar' control. Select the relevant Internet Explorer window from the list. Click on 'Capture' and hold and drag your mouse on the status bar. Then select the variable to which the value in the status bar has to be assigned.
  5. Click on 'Save' button.
  6. Double click the Conditions/Loops->If/Else command and select the option 'Variable'. Click 'Edit' button and select the variable specified in Step 4. Select 'Equal To(= )' and then select the option 'Fix' for which the value should be 'Done'. Click on 'Save' button.
  7. Double click the Internet->Web Recorder command and select the option 'Extract Table'. Specify the URL of the website to launch and capture the required table after the page is loaded. Specify the name of the csv file to which the table data has to be saved. The 'Extract Table' command should be within the 'If' and 'End If'.
  8. Click on 'Save' button.
  9. Double click the Internet->Close Browser' command.
  10. Click on 'Save' button.

 

Tip: Using Wildcards (*)

  1. In all the 'Manage Windows Controls' options you can specify wild cards i.e. * in the window title.
  2. For e.g. if you want to perform any operation in any window with the word 'Untitled' anywhere in the Title. It can have any string before and after the word 'Untitled'.
  3. In that case you can specify '*Untitled*' in the window title.
  4. Automation Anywhere will first search for the exact window i.e. '*Untitled*' and if it does not find it then it looks for windows that has the word 'Untitled' in the Title.
  5. You can put wild card character (*) at the beginning or end of the window title.