Results 1 to 5 of 5

Thread: Mouse question

  1. #1
    Join Date
    Apr 2012
    Location
    Portugal
    Posts
    144
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Mouse question

    Hey guys ! so, i just made a working cave nightshade collector for me to train herby, but i got one question... is there a possibility to change randomly between left click and rifht click + choose option ?


    Thanks :P

  2. #2
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    case statement, random between 2 of them.

  3. #3
    Join Date
    Apr 2012
    Location
    Portugal
    Posts
    144
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by CephaXz View Post
    case statement, random between 2 of them.
    tell me more detailed plz :P

    Btw, i'm using a procedure

  4. #4
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Simba Code:
    case Random(2) of
        0 : mouse(x, y, 5, 5, mouse_left);

        1 :
          begin
            mouse(x, y, 5, 5, mouse_right);
            waitoption('blabla', 2000);
          end;
    end;

    Something like this. Try looking for a case statement tutorial at the beginner tutorial section

  5. #5
    Join Date
    Apr 2012
    Location
    Portugal
    Posts
    144
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ty, rlly helpfull

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
  •