TAB > ENTER > TAB > ENTER > TAB > ENTER >

Hi. Is there a way to repeat this action without having to copy and paste the action the amounts of times i need? I need the TAB > ENTER > action to be repeated 2000 times. Do i have to copy and paste 2000 times for this to work? cheers

Use a For Loop Action.

Hi vincent. These are the 2 actions.

Send Key [ Tab Key ] to [ firefox -> MainWindow.FindChild(“MozillaWindowClass”,null).FindChildCardinal(“MozillaContentWindowClass”,1).FindChild(“MozillaWindowClass”,null) ]

Send Key [ Enter ] to [ firefox -> MainWindow.FindChild(“MozillaWindowClass”,null).FindChildCardinal(“MozillaContentWindowClass”,1).FindChild(“MozillaWindowClass”,null) ]

I am not able to understand how i turn those into loops with the For Loop control. Can you assist?
Cheers

Search for “For loop” in your Automise actions then add it above the 2 you already have. In the “For Loop” action properties set “Loop From” to 0 and “Loop To” to 2000.
Then click on your 2 existing tasks one by one and then press Control + Right Arrow Key at the same time. This will cause your two tasks to be indented within the “For Loop” when you view it in the designer. This means that the for loop with run 2000 times the statements that are under (indented) it.

This worked for me a treat. Thank you Matrix.

Posted By matrixIII on 06 Jul 2010 11:36 AM
Search for "For loop" in your Automise actions then add it above the 2 you already have. In the "For Loop" action properties set "Loop From" to 0 and "Loop To" to 2000.
Then click on your 2 existing tasks one by one and then press Control + Right Arrow Key at the same time. This will cause your two tasks to be indented within the "For Loop" when you view it in the designer. This means that the for loop with run 2000 times the statements that are under (indented) it.

 

Hi. Thanks for the previous help.
How can i speed up the loop action so its like 50 ms and not running at a slow default speed?

cheers

Hi,

Unless you have modified the Action Timing settings of one of the child actions (from the Runtime settings) of the loop or added a delay action, it will run as fast as it possibly can. The speed of the loop will be determined by the workload of the actions contained within it.

Regards,
Steve