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?
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?
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.
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.
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.
What is this script trying to do? And do you mind showing us?
i would use some type of failsafe. for instance:
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 chooseoption('mpt') then begin wait(100+random(100)); end;
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.
Maybe antiban?
Random Right click between the left clicks?
~Hermen
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)
By the way, why would you get a mini bitmap, wouldn't findcolor or getcolor suffice?
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.
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.
![]()
Marpis right right. Do you think you can post your script so we can take a look at it?
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
There are currently 1 users browsing this thread. (0 members and 1 guests)