Results 1 to 14 of 14

Thread: Right Clicking Instead of Left Clicking?

  1. #1
    Join Date
    Aug 2009
    Posts
    164
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Right Clicking Instead of Left Clicking?

    Sometimes when my script has been running, especially after several hours, scar will start right clicking instead of left clicking. Does anyone know how to fix this?

  2. #2
    Join Date
    Jan 2007
    Posts
    834
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Where you have mouse(x,y,int,int,boolean) the boolean is either true or false. True is right click and false is left click.

  3. #3
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    no, true is left click, false is right click. and as for your question, no clue why or how it could just start changing. make sure where you want it to be left clicking instead of right clicking is set to true in the mouse(x, y, rx, ry, leftclick); procedure.

  4. #4
    Join Date
    Aug 2009
    Posts
    164
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I know, I have true in the parameters but it seems to be right clicking occasionally by mistake. For example, 90% of the time it will do what it's supposed to and left click, but sometimes it will right click instead of left click.

  5. #5
    Join Date
    Jan 2007
    Posts
    834
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    What is this script trying to do? And do you mind showing us?

  6. #6
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    i would use some type of failsafe. for instance:
    Code:
              mouse(x,y,3,3,true);
              wait(100+random(50));
              if chooseoption('mpt') then
              begin      
                wait(100+random(100));
              end;
    or maybe get a mini bitmap of the drop down menu (that comes when u left click) and use something like:
    Code:
              mouse(x,y,3,3,true);
              wait(100+random(50));
              if findbitmap(...) then
              begin  
                chooseoption(mpt);    
                wait(100+random(100));
              end;
    Last edited by x[Warrior]x3500; 08-25-2009 at 01:47 AM.

  7. #7
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Maybe antiban?
    Random Right click between the left clicks?
    ~Hermen

  8. #8
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by x[Warrior]x3500 View Post
    i would use some type of failsafe. for instance:
    Code:
              mouse(x,y,3,3,true);
              wait(100+random(50));
              if chooseoption('mpt') then
              begin      
                wait(100+random(100));
              end;
    or maybe get a mini bitmap of the drop down menu (that comes when u left click) and use something like:
    Code:
              mouse(x,y,3,3,true);
              wait(100+random(50));
              if findbitmap(...) then
              begin  
                chooseoption(mpt);    
                wait(100+random(100));
              end;
    You're doing it wrong, here's fixed:

    SCAR Code:
    [code]
              mouse(x,y,3,3,false); // this has to be false!
              wait(100+random(50));
              if chooseoption('mpt') then
              begin      
                wait(100+random(100));
              end;
    [/code]

    And SCAR does not make mistakes in clicking, it's scripts that do.

  9. #9
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    Quote Originally Posted by marpis View Post
    You're doing it wrong, here's fixed:

    SCAR Code:
    [code]
              mouse(x,y,3,3,false); // this has to be false!
              wait(100+random(50));
              if chooseoption('mpt') then
              begin      
                wait(100+random(100));
              end;
    [/code]

    And SCAR does not make mistakes in clicking, it's scripts that do.

    umm no i am not... i believe.

    what i got from his original post was that he is using mouse(x,y,3,3,true); but for some reason (at random) it left clicks anyway.

    so...

    i put the original code that he used (mouse(x,y,3,3,true); ) before my failsafe code.

    the failsafe checks if a drop down menu appeared and then chooses the option that would generally happen if u just right clicked. (idk if the first failsafe will work or not though, my mind says it will work, and it compiles)

  10. #10
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    By the way, why would you get a mini bitmap, wouldn't findcolor or getcolor suffice?

  11. #11
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    Quote Originally Posted by Smarter Child View Post
    By the way, why would you get a mini bitmap, wouldn't findcolor or getcolor suffice?
    yah it would. i was just giving suggestions on how to create a failsafe to fix the problem.

  12. #12
    Join Date
    May 2008
    Location
    Oregon, USA
    Posts
    154
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by scuz 10 View Post
    I know, I have true in the parameters but it seems to be right clicking occasionally by mistake. For example, 90% of the time it will do what it's supposed to and left click, but sometimes it will right click instead of left click.
    I have no idea how or why this would happen. All i could guess is that somewhere in your script there is a Mouse(x,y,False); and your confusing that with other actions that the script does. Or you have a RandomRightClick procedure somewhere in there. Hopefully i was of some help to you.

  13. #13
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Mouse(x, y, 0, 0, TRUE) ALWAYS left clicks. It never right clicks.
    Mouse(x, y, 0, 0, FALSE) ALWAYS right clicks. It never left clicks.

  14. #14
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Marpis right right. Do you think you can post your script so we can take a look at it?

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
  •