Results 1 to 3 of 3

Thread: cant increment variable in loops

  1. #1
    Join Date
    Apr 2012
    Posts
    34
    Mentioned
    0 Post(s)
    Quoted
    20 Post(s)

    Question cant increment variable in loops

    Cant increment j variable in loops. The procedure drops a colum in inventory; when I add j(distance between 2 items in column) to the y value it doesnt go further down window as it loops it just drop at same spot. Im tired af try get bare min script just want go to sleep.

    Code:
    procedure dropInventoryColumn;
    var
      j, t: Integer;
    begin
      j= 0;
      t=0;
      repeat
        MoveMouse(705, 225+j);
        wait(500);
        ClickMouse(705, 225+j, mouse_right);
        wait(500);
        MoveMouse(705, 265+j);
        wait(500);
        ClickMouse(705, 265+j, mouse_Left);
        wait(500);
        j = j+36;
        inc(t);
      until(t = 6);
    end;
    aids



  2. #2
    Join Date
    Dec 2007
    Posts
    2,112
    Mentioned
    71 Post(s)
    Quoted
    580 Post(s)

    Default

    You can't assign Integers like that in Simba. You have to use colon.

    J := J + 36;

  3. #3
    Join Date
    Apr 2012
    Posts
    34
    Mentioned
    0 Post(s)
    Quoted
    20 Post(s)

    Default

    im tired m8..



Thread Information

Users Browsing this Thread

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

Posting Permissions

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