Author Topic: need some help with loops  (Read 1280 times)

anetos

  • Newbie
  • *
  • Posts: 1
need some help with loops
« on: May 24, 2023, 03:33:29 AM »
Goodevening everyone
I just got voice attack last month and got hooked if you could help me a bit would deeply appreciate
so here we go

For the first part of the sequel is a 40 times loop upon the completion of each of 40 time cycle i want its progression to
the second and third part the tricky part for me is that i want to repeat this sequel for five times before it
proceed to the fourth and final part without trigger it, only trigger the fourth part when it is in the last repetition
lastly upon the completion of the final part i want the whole sequel run again one more time

1st part

Start Loop : Repeat 40 times
    Press Tab key and hold for 0.1 seconds and release
    Pause 0.125 seconds
    Move mouse cursor to application coordinates (575, 288)
    Click right mouse button
    Pause 1 second
    Move mouse cursor to application coordinates (595, 384)
    Click left mouse button
    Pause 20 seconds
    Press Escape key and hold for 1 second and release
    Pause 2 seconds
End Loop

2nd part

    Press Tab key and hold for 0.2 seconds and release
    Pause 0.2 seconds
    Move mouse cursor to screen coordinates (443, 411)
    Pause 2.5 seconds
    Click right mouse button
    Pause 2 seconds
    Move mouse cursor to screen coordinates (453, 487)
    Pause 0.3 seconds
    Click left mouse button
    Pause 3 seconds
    Press Escape key and hold for 0.2 seconds and release
    Pause 1 second

3rd part

    Press and release 2 key
    Pause 1.5 second
    Press and release 2 key
    Pause 1.5 second
    Press and release 2 key
    Pause 1.5 second
    Press and release 3 key
    Pause 10 second

4th part

    Press Escape key and hold for 0.2 seconds and release
    Pause 1 second
    Move mouse cursor to screen coordinates(         )
    Pause 1 second
    Click left mouse button
    pause 900 seconds                 
    Move mouse cursor to screen coordinates (        )
    Pause 2 sec
    Click Left mouse button
    Pause 500 seconds

and repeat the whole process for one more time


 
I dont know anything about coding and such i tried to
mess around with while loop command but got lost in the way
thank you for your time and i looking
forward for your answers

Starblue7

  • Full Member
  • ***
  • Posts: 131
Re: need some help with loops
« Reply #1 on: May 24, 2023, 08:43:28 AM »
Not sure I completely understand what you want on the final part, but here's a sample:

You can set up the loops under:  Other > Advanced > Add a Loop Start > Repeat Certain Number of Times (For Loop)

Code: [Select]
Start Loop : Repeat 2 times  // This will make everything within happen twice.
    Start Loop : Repeat 5 times  // This will loop 5 times anything inside of it
        Start Loop : Repeat 40 times    //  This will loop 40 times anything inside of it
            1ST PART
        End Loop
        2ND PART
        3RD PART
    End Loop
    4TH PART  // This part will run once the above and what's inside of it has run through 5 times
End Loop