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 09-08-2011, 06:08 PM
desm35 desm35 is offline
Junior Member
 
Join Date: Sep 2011
Posts: 8
Default Random Variable

I'm trying to create a random left mouse click in either one fixed postion or another fixed position. I've attached a screen shot of the code which shows that I have created a 'Random' Variable called 'Random0or1' which outputs either a '0' or a '1'.

I've then created an IF statement to ask if the random number generated is a '0', if so then click on fixed position 1, Else if not then click on fixed position 2.

It doesn't seem to work. What am I doing wrong? Thanks.

Dunc
Attached Images
File Type: jpg Untitled-1.jpg (65.4 KB, 6 views)
Reply With Quote
  #2 (permalink)  
Old 09-09-2011, 04:51 PM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hello desm35,

Please find the attached task built according to your requirement with this post.

The task is scripted as below:

Variable Operation : 0 To $test$
Start Loop "1000" Times
If $test$ Equal To "0" Then
Mouse Click: Left Button on 'FolderView' in "Desktop"
Variable Operation : 1 To $test$
Else
Mouse Click: Left Button on 'FolderView' in "Desktop"
Variable Operation : 0 To $test$
End If
End Loop


Please save the task in "My Documents/Automation Anywhere/Automation Anywhere/My Tasks"

Thanks & Regards
Attached Files
File Type: atmn randomclicks.atmn (1.0 KB, 1 views)
Reply With Quote
  #3 (permalink)  
Old 09-13-2011, 04:33 AM
desm35 desm35 is offline
Junior Member
 
Join Date: Sep 2011
Posts: 8
Default

thanks for your help forum staff, much appreciated.

Dunc
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:54 PM.


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