Intelligent Automation & Macro Software  

Go Back   Automation Anywhere, Inc. Forums > Products Zone > Automation Anywhere
Register FAQ Search Today's Posts Mark Forums Read

Automation Anywhere Post messages and questions related to Automation Software here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-26-2010, 11:11 AM
ZFalcon ZFalcon is offline
Junior Member
 
Join Date: Feb 2010
Posts: 12
Default Random Numbers for Location

I wanted to see if anyone knew a way to have Automation Anywhere move the mouse to random positions on the screen within a certain parameter.

I want to be able to move the mouse from "x,y" to "a,b" where "a" is a random number between 200 and 400 and "b" is a random number between 500 and 800. Depending on how the testing and development goes, and if we decide to make it fluid motion or if we decide to require a click, I may want to have the mouse click when it gets to "a, b". Then a and b become x and y and new random numbers are generated for a and b and this procedure repeats.

The moves from point x,y to points a,b need to be natural since I am trying to emulate human movement as closely as possible. This won't work if the cursor just "jumps" from one position to another, but needs to move just like a person would making these movements.

Is there any way to do this? I didn't see anything concerning random numbers for mouse coordinates anywhere in the help files and couldn't figure it out or find anything with the search button on these forums.
Reply With Quote
  #2 (permalink)  
Old 03-26-2010, 10:05 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

The latest version, Automation Anywhere 5.5.2 provides variable support for X, Y corrdinates in Mouse Move and Mouse Click command. You can create two random variables for a and b positions and two other value type of variables for x and y positions,using Variable Manager. Using Variable Operation command, you can assign the value of random variables to respective user variable for x and y positions and then use them in Mouse Click command. Place these commands inside loop to repeat the process as per the requirement.

We have attached a sample task for your reference. Please copy it under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder.

Hope that helps.
Attached Files
File Type: atmn Sample.atmn (942 Bytes, 4 views)
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -7. The time now is 03:49 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2011 Automation Anywhere, Inc. All rights reserved