SRL Archive - OSR Help

UpText Dont work?


neeger

2010-02-23 15:33:55

Im trying to use FindObjEx, but it seems not to work :S

It finds the object color(cursor moves over the object), but dont do the right click, seems like it cant "read" UpText…


[PHP]
FindObjEx(x, y, ['ank'], [2561565, 3546663], 5, 50, 200, 11, 524, 250)
Mouse(x,y,0,0,false);
Wait(550+random(100));
if not WaitOptionMulti(['ank B'], 300) then LogOff;[/PHP]

It finds object,mouse stays ther like 1/2 seconds then moves new place and stays there another split second and sometimes in 5+ tries it makes right click…
Whats wrong?

Tried other way: Finding color-moving mouse over it-checking UpText etc.

[PHP]
FindColorSpiralTolerance(x, y, 2561565, 0, 0, 800,500, 5);
if IsUpTextMultiCustom(['nker', 'ank', 'er']) then
begin
Mouse(x,y,0,0,false);
Wait(2500+random(100));
if not WaitOptionMulti(['ank B'], 300) then LogOff;
end; [/PHP]

This wont work either, like WTF am i doing something wrong or what why it cant read the UpText =(

Mr. Doctor

2010-02-23 15:40:12

Do you have the latest SCAR pre-release and Open-Dev SRL?
Look at the tutorial in my signature, IceFire's tutorial, or Coh3n's.

Bionicle

2010-02-23 15:44:17

Well your second one should have a move mouse after it finds the color, cause atm its not moving the mouse and it can't find the uptext. Also in the second one, you don't need WaitOptionMulti if you only have one string, just use WaitOption:
if FindColorSpiralTolerance(x, y, 2561565, 0, 0, 800,500, 5) then
begin
MMouse(x, y, 3, 3);
if IsUpTextMultiCustom(['nker', 'ank', 'er']) then
begin
Mouse(x,y,0,0,false);
Wait(2500+random(100));
if not WaitOption['ooth', 300) then LogOff;
end else
LogOff;
end else
LogOff;
Try that, see if it works.

NCDS

2010-02-23 15:57:25

From: bionicle1800
Well your second one should have a move mouse after it finds the color, cause atm its not moving the mouse and it can't find the uptext. Also in the second one, you don't need WaitOptionMulti if you only have one string, just use WaitOption:
if FindColorSpiralTolerance(x, y, 2561565, 0, 0, 800,500, 5) then
begin
MMouse(x, y, 3, 3);
if IsUpTextMultiCustom(['nker', 'ank', 'er']) then
begin
Mouse(x,y,0,0,false);
Wait(2500+random(100));
if not WaitOption['ooth', 300) then LogOff;
end else
LogOff;
end else
LogOff;
Try that, see if it works.


I use WaitOptionMulti in my new scripts because a lot of times the script wont find the uptext at first. I haven't looked into it enough atm though to tell if that's Scar or SRL.

neeger

2010-02-23 16:05:12

Hey Thanks alot Junkj, Got all to work now =)