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 01-16-2012, 01:49 AM
mrfresh99 mrfresh99 is offline
Junior Member
 
Join Date: Jan 2012
Posts: 3
Exclamation How to increment value by 1000 each time? HELP!!

I want to know how I would be able to increase my "x" value by 1000 each time I run.

x = 1000000000
z = 1000
x + z = 1000001000

Now I want to do x + z, and make z increment by 1000 each time. So It would look something like this each time it runs.

1000001000
1000002000
1000003000
1000004000
1000005000

..... and so on. Someone please help I really need this done asap.

Thanks.
Reply With Quote
  #2 (permalink)  
Old 01-16-2012, 04:17 PM
mrfresh99 mrfresh99 is offline
Junior Member
 
Join Date: Jan 2012
Posts: 3
Default

can someone please help me ?
Reply With Quote
  #3 (permalink)  
Old 01-16-2012, 06:14 PM
trentonponder trentonponder is offline
Senior Member
 
Join Date: Jan 2009
Posts: 102
Default

Quote:
Originally Posted by mrfresh99 View Post
I want to know how I would be able to increase my "x" value by 1000 each time I run.

x = 1000000000
z = 1000
x + z = 1000001000

Now I want to do x + z, and make z increment by 1000 each time. So It would look something like this each time it runs.

1000001000
1000002000
1000003000
1000004000
1000005000

..... and so on. Someone please help I really need this done asap.

Thanks.
Iteration of what? If you're doing this in a loop then:

Loop x times
variable operation: $x$+$z$ to $x$
End Loop
Reply With Quote
  #4 (permalink)  
Old 01-19-2012, 11:31 AM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hello mrfresh99,

We have prepared a sample task which would be carrying out the operation required by you.

Download and save the attached task at following location My Documents\Automation Anywhere\Automation Anywhere\My Tasks. Launch Automation Anywhere, select the task and click on run.

While running the task it will display you the message box with the value of X getting increamented by 1000 matching with your requirement.

Here in sample we have set iteration to only 10, you can go ahead and change it to your required number by editing the task and chaning the line number 4.

Let us know how it goes for you.
Attached Files
File Type: atmn SampleCalculation.atmn (601 Bytes, 3 views)
Reply With Quote
  #5 (permalink)  
Old 01-20-2012, 05:34 PM
mrfresh99 mrfresh99 is offline
Junior Member
 
Join Date: Jan 2012
Posts: 3
Default

Quote:
Originally Posted by forumstaff View Post
Hello mrfresh99,

We have prepared a sample task which would be carrying out the operation required by you.

Download and save the attached task at following location My Documents\Automation Anywhere\Automation Anywhere\My Tasks. Launch Automation Anywhere, select the task and click on run.

While running the task it will display you the message box with the value of X getting increamented by 1000 matching with your requirement.

Here in sample we have set iteration to only 10, you can go ahead and change it to your required number by editing the task and chaning the line number 4.

Let us know how it goes for you.



Thank you for the support. I am now one step further to finishing my task. If you look at the first picture, you see my code. I have made a program for school that searches numbers by counting up. Once the windows opens and the number to start from is entered, the clock starts counting upwards every second. So 10000000000, 10000000001, 10000000002, etc. To speed up this process, I am using this program to open as many windows as possible, and starting them at intervals of 1000, so the number can be found very fast. 10000001000, 10000002000, 1000003000 and so on. In the code you see I am trying to do that. My number now raises by 1 thousand each time, but only in one window. I am trying to make it so that SEVERAL windows open one after another, and the number starts 1000 higher each time a window opens. I have looped it 5 times as a test.

Now take a look at the second picture. When I test it, 5 windows open, although the number "1000000000" is only going up in intervals of 1000 in one window. I do not want it to do this, as I want the numbers to appear in each window. For example, the first window would open with this, 1000000000, second would open with 1000001000, 3rd 1000002000 and so on and so forth, until it finds the number. Also I want the number "162081301" to be the top value in every window, because this is the file ID it is searching. Thank you for your time.
Reply With Quote
  #6 (permalink)  
Old 01-21-2012, 06:08 AM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hi,

Can you try using 'Insert Keystroke' command with the window title selected as 'Currently Active Window' to insert the text in the text-boxes under the .exe application.

With 'Manage Window Controls' you do not get the option to select the 'Currently Active Window' and as a result if two or more windows have the same title then it inserts the text in the first window which gets opened.

Hope this helps. Do let us know if you need any further assistance.

Regards.
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 02:25 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