Results 1 to 12 of 12

Thread: looking in a array and loop it

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2009
    Posts
    7

    looking in a array and loop it

    Dear readers.

    I have a script which works fine except that I would like to add a loop into a current loop.

    I have some info that I will use.

    X 123,920
    Y -221,322
    Z -90,2

    X 143,920
    Y -251,322
    Z -20,2

    and some more.
    I want to add these in a array, but I have no clue on how to do that.

    Secondly, I need to build a loop which I do not know how to do. But it should be something like this:

    Code:
    If MyPositionX() <= 123,920 AND MyPositionX() >= 123,915 THEN
    'press the left button'
    SendCommand(75,1);
    SendCommand(75,0);
    End If
    and so on, it should check the array for EVERY x_as and if it matches (within a +5 difference) it should send the command.

    Could someone please show me how to do this?


    Best regards
    Last edited by Warbringer; Sep 14th, 2009 at 11:21 AM.

Posting Permissions

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



Click Here to Expand Forum to Full Width