Hi,
Just some background information: I am not new to scripting. I just only used to use a few functions before. Now I am trying to expand my repertoire.
This isn't really for runescape... so I included a screen shot of the kind of text I need help "detecting." I was thinking detecting text because I couldn't figure out any other way to solve this problem. Basically, the user just sees a 1/4 of the screen text box (like notepad) at the bottom left side of the screen. Lots of text appears there and it is all the same color. So a bitmap would not work and I don't think just detecting the color black would help much either. Because then if someone messages me... my script will think I was disconnected.
This function is also important, because the game servers go offline randomly almost once a day for 10 minutes or so at a time. I need to be able to detect this while I am sleeping and tell the script to exit FireFox/Internet Explore and wait it out at the desktop for a little bit.
I'm basicly looking for the following:
SCAR Code:if DetectText('disconnected') then
begin
TerminateScript;
// one or the other... Haven't decided yet
MoveMouseSmooth(x,y);
Wait(250+Random(100));
ClickMouse(x,y,True);
Wait(35+Random(10));
ClickMouse(x,y,True);
Wait(600000); // Equivalent of 10minutes in milliseconds
goto LblBEGINNING;
end;
So, I really need to know how to detect all kinds of text. That would be helpful. Also, a mini-explanation/tutorial would be helpful, because I also want to be able to detect text in other situations. Thank you.



Reply With Quote




