![]() |
| |||||||
Automation Anywhere Post messages and questions related to Automation Software here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
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 |
| |||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
| |