![]() |
| |||||||
Automation Anywhere Post messages and questions related to Automation Software here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| I know AA 5.0 can do this but rather than spending the hours it will take learning how I was hoping someone out there knows how to do it quickly and efficiently. I have a web page that I refresh and the message is the same until I get an order. How can I have AA loop (refresh web page and (extract?)) until it sees something different and then stops and plays a sound or music file. Any help would be appreciated. |
| |||
| Hello, There are two ways to perform this task. First is, copy the entire contents of a webpage using keystrokes Ctrl+a followed by Ctrl+c and loop until $Clipboard$ includes that message when you have not received an order. Inside loop, refresh the webpage using keystroke F5 and copy the contents of webpage again. As soon as you will receive an order the webpage will not contain that static message and hence, the task will come out of the loop. After 'End Loop' command you can insert Extract Data or Extract Table commands to extract data as per your requirement. Text format of commands would appear something like this, 1 Open "http://www.XYZ.com" 2 Keystrokes: [CTRL DOWN]a[CTRL UP] in "*Windows Internet Explorer" 3 Keystrokes: [CTRL DOWN]c[CTRL UP] in "*Windows Internet Explorer" 4 Loop While $Clipboard$ Includes "Static Message" 5 Keystrokes: [F5] in "*Windows Internet Explorer" 6 Keystrokes: [CTRL DOWN]a[CTRL UP] in "*Windows Internet Explorer" 7 Keystrokes: [CTRL DOWN]c[CTRL UP] in "*Windows Internet Explorer" 8 End Loop 9 Comment: Extract Data or Extract Table command as per your requirement. Second is, you can make use of 'Loop While Web Control does not Exists' command to loop until the webpage does not contain a web control that exists only when you receive an order. Inside loop you just have to refresh the webpage using F5 keystroke. Text format of commands would appear something like this, 1 Open "http://www.XYZ.com" 2 Loop While Web Control Does Not Exist(Link on: XYZ Consulting) in the webpage Then 3 Keystrokes: [F5] in "*Windows Internet Explorer" 4 End Loop 5 Comment: Extract Data or Extract Table command as per your requirement. Hope that helps. If you could reply to following questions, we would be able to help you more with specific task. • What website you want to extract the data? • What are the steps we need to follow to go to the page where the data is? • What pieces of data you want to extract? • Where do you want the data to be extracted? |
| |||
| 1) I have attached a photo of the web site. This is an appraisal management company that post new advertised orders on this web site. If there are no new orders this screen shows up. If an order comes up the screen changes. It's that change I am trying to catch and have AA alert me. 2)The web site has a secure log, which I log into first thing in the morning. I am just trying to avoid having watching this web site all day. 3)I am not trying to extract data at this time. I just want to know when the screen text is different. Because that is a new order. I want AA to alert me "play a song or Beep" when this condition exist so I can go to my computer and review the order and decide if I want it or not. 4)Nowhere Thank you for your help. |
| |||
| I captured an order for an example of change in the web site. It's this change that I am trying to capture using AA and have the my computer alert me. I tried both your suggestions but the program only opens the web site once. Again Thank you for your help. |
| |||
| Hello, Looking at the screenshots, we suggest you to try using the first way we suggested in our last post. To play a song or music file, you can use 'Open Program/File' command. Text format of commands would appear something like this, 1 Open "http://www.XYZ.com" 2 Keystrokes: [CTRL DOWN]a[CTRL UP] in "*Windows Internet Explorer" 3 Keystrokes: [CTRL DOWN]c[CTRL UP] in "*Windows Internet Explorer" 4 Loop While $Clipboard$ Includes "There are currently no orders in the queue for the selected client" 5 Keystrokes: [F5] in "*Windows Internet Explorer" 6 Keystrokes: [CTRL DOWN]a[CTRL UP] in "*Windows Internet Explorer" 7 Keystrokes: [CTRL DOWN]c[CTRL UP] in "*Windows Internet Explorer" 8 End Loop 9 Open "C:\..\My Music\music.wma " You can set this task to 'repeat until I stop it' or 'repeat for certain duration’ as per your requirement. You can find Repeat options under Properties window at the bottom. Hope that helps. |
| |||
| The recommendation got me close but the select all copies everything and it does not work well in the clipboard. This seems to work but the loop only picks up at the refresh and does not repeat at the beginning so when a new order shows up it just refresh past it. It seems that it only copies the "There are currently no orders in this queue for the selected client" at the beginning of the cycle. Open"https:/lcc.landsafe.com/default.aspx?pageld=AutoAdvertise" Mouse Click: Left Button (818.392)in "Landsafe Advertised Orders-Windows Internet Explorer" Keystrokes:[CTRL DOWN]c[CTRL UP] in "Landsafe Advertised Orders-Windows Internet Explorer" Loop While$Clipboard$Includes "There are currently no orders in this queue for the selected client" Keystokes:[F5] in "Landsafe Advertised Orders-Windows Internet Explorer" End Loop Play Media File: Thanks again for your help |
| |||
| I forgot that I also tried including this after the [F5] step Mouse Click: Left Button (818.392)in "Landsafe Advertised Orders-Windows Internet Explorer" Keystrokes:[CTRL DOWN]c[CTRL UP] in "Landsafe Advertised Orders-Windows Internet Explorer" same result |
| |||
| Hello, We suggest inserting Delay of minimum 200 ms after every command so that so that command gets enough time to execute on replay. . You can find Delay command under 'Pause/Delays/Wait' command category. Just double click on it, specify the delay time and save the command. Text format of command would appear as follows, Delay: (200 ms) In addition, we recommend using keyboard short cuts instead of mouse clicks, as they are more reliable than mouse moves/clicks irrespective of change in screen resolution or window size. Hope that helps. |
![]() |
| Thread Tools | |
| Display Modes | |
| |