SRL Archive - OSR Help

Strange Mouse Movement Error..


Rambozin

2007-05-08 14:43:11

I have this:

    if (FindMainColor(x, y, ...., 19, True)) or
(FindMainColor(x, y, ...., 19, True)) then
begin
Mouse(x, y, 3, 3, False);
ClickOption('...', 1);
Wait(5000 + Random(1000));
if (FindMainColor(Fx, Fy, ..., 19, True)) or
(FindMainColor(Fx, Fy, ...., 19, True)) then
repeat
MMouse(Fx, Fy, 1, 1); --- or here is the error
FishAntiBans;
MMouse(Fx, Fx, 1, 1); --- or here is the error
if (not (IsUpText('...'))) then
blabla
until(..)

Where i typed – here is the error i get this error:
It mouves the mouse to Fx, Fy, but then, the mouse quickly moves a bit up, or a bit down, so the mouse isn't at the color anymore.. I know I have aot of questions, but I am almost done with my script, and i dont know anything about all these strange errors =/


Thanks alot for your time!

EDIT: I released my script here!!

Dan Cardin

2007-05-08 15:35:46

um
can i have the error message

here
to fix errors and learn easily

Smartzkid

2007-05-08 15:38:36

There is no error from this. It's what's known as a 'logic bug'.

Take out the second MMouse, or do getmousepos(fx, fy); before the second one.

Pentti

2007-05-08 16:35:10

Im not sure what you are trying to do, but maybe something like this:
    if (FindMainColor(x, y, ...., 19, True)) or
(FindMainColor(x, y, ...., 19, True)) then
begin
Mouse(x, y, 3, 3, False);
ClickOption('...', 1);
Wait(5000 + Random(1000));
repeat
if (FindMainColor(Fx, Fy, ..., 19, True)) or
(FindMainColor(Fx, Fy, ...., 19, True)) then
begin
MMouse(Fx, Fy, 1, 1); --- or here is the error
FishAntiBans;
MMouse(Fx, Fx, 1, 1); --- or here is the error
if (not (IsUpText('...'))) then
blabla
end;
until(..)

Rambozin

2007-05-09 06:33:41

@ Smartkid I allready tryed that, but because it didn't work, i left it out
@ pentti It needs to repeat when it finds the color …

What I try to do is:
It finds an object, it clicks on it
It waits
It moves the mouse to that color again, to see if the color is still there
When it finds that color there, it does the AntiBans, then it sees again if the object is there
it repeats until the object isn't there anymore

You understand a bit? ..

Rambozin

2007-05-09 09:12:34

Hmm.. I solved it .. Don't ask me how, I tryed 100 things :eek: