Results 1 to 3 of 3

Thread: Can someone make a loop on my script ?

  1. #1
    Join Date
    Dec 2015
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Red face Can someone make a loop on my script ?

    Help me repeat this script



    var
    withDrawEss : TBox;

    begin
    withDrawEss := intToBox(269, 141, 287, 152);
    mouseBox(withDrawEss , MOUSE_RIGHT);
    Wait(500);
    mouseBox(intToBox(170, 203, 368, 220), MOUSE_LEFT);
    mouseBox(intToBox(482, 30, 494, 40), MOUSE_LEFT);
    Wait(500);
    mouseBox(intToBox(335, 160, 390, 196), MOUSE_LEFT);
    Wait(1000);
    mouseBox(intToBox(330, 183, 370, 221), MOUSE_LEFT);
    Wait(1000);
    mouseBox(intToBox(223, 138, 245, 158), MOUSE_LEFT);
    Wait(1000);
    mouseBox(intToBox(428, 301, 455, 318), MOUSE_LEFT);
    end;

  2. #2
    Join Date
    Dec 2011
    Posts
    2,147
    Mentioned
    221 Post(s)
    Quoted
    1068 Post(s)

    Default

    Simba Code:
    program myLoop;
    var
      withDrawEss: TBox;

    begin
      repeat
        withDrawEss := intToBox(269, 141, 287, 152);
        mouseBox(withDrawEss , MOUSE_RIGHT);
        Wait(500);
        mouseBox(intToBox(170, 203, 368, 220), MOUSE_LEFT);
        mouseBox(intToBox(482, 30, 494, 40), MOUSE_LEFT);
        Wait(500);
        mouseBox(intToBox(335, 160, 390, 196), MOUSE_LEFT);
        Wait(1000);
        mouseBox(intToBox(330, 183, 370, 221), MOUSE_LEFT);
        Wait(1000);
        mouseBox(intToBox(223, 138, 245, 158), MOUSE_LEFT);
        Wait(1000);
        mouseBox(intToBox(428, 301, 455, 318), MOUSE_LEFT);
      until (somethingHappensThatMakesUsStop); //"until false" -> will run forever
    end.

  3. #3
    Join Date
    Dec 2015
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •