SRL Archive - OSR Help

How can I determine if Spinning Wheel dialog box is open?


jimthesoundman

2010-01-31 01:17:52

I need to be able to tell if the Spinning Wheel dialog box is open in the main screen. What would be the best way to do this?

Thanks in advance,

JIM

mormonman

2010-01-31 01:45:36

Use the letters on the interface as static points and check for the color.(just like bankscreen).

NCDS

2010-01-31 01:56:51

Work's perfectly, taken from my FlaxSpinner.

function SpinScreen: Boolean;
var Arr: array of TPoint;
begin
if not LoggedIn then Exit;
FindColorsTolerance(Arr, 2070783, 156, 29, 361, 55, 5); // Searches for the Color of the title on the screen.
Result := Length(Arr) > 150; // if it finds more than 150 pixels of that color, then it results true.
if Result then
Writeln('SpinScreen found.');
end;

Edit: I added explanations so you may understand it better.

jimthesoundman

2010-01-31 02:16:05

Thanks for the SpinScreen function.

Where does SSTitle_Clr come from?

Sex

2010-01-31 02:22:11

I see no SSTitle_Clr but he edited it so I guess he had that before..

NCDS

2010-01-31 02:25:44

From: jimthesoundman
Thanks for the SpinScreen function.

Where does SSTitle_Clr come from?


In my script I use constants for all my values that might possibly change at some point so they are easier to keep updated. I edited the variable out though and replaced it with the color that was stored to it.