RSReady to handle (invalid) resizeable client.
Simba Code:
function RSReady: Boolean;
var
t: Integer;
begin
t := GetSystemTime + 5000;
while (not (Result)) and (t > GetSystemTime) do
begin
Result := (CountColor(0, MSCx - 20, MSCy - 20, MSCx + 20, MSCy + 20) < 20);
Wait(3);
end;
if (not (Result)) then
Exit;
Result := (LoggedIn) or (LobbyScreen) or (GetColor(745, 17) = 12312554); //X button in top right
if (GetColor(748,66) = 12312554) then // X button on resizeable client
begin
WriteLn('You are using the "Resizeable" screen option in RS.');
WriteLn('Please set it to "Fixed" to have SRL function properly.');
TerminateScript;
end;
end;
That color is constant on the resizeable client with the default SMART setup (the button changes location based on screen size). It probably wouldn't work if the user's browser was set at resizeable, but it will detect it fine if they are using SMART. I tested numerous times and appears to remain the same.
I thought of having it call something like SetAutoingDefaults but that doesn't work, and it's best for the user to understand what they did wrong.
Without this fix, SRL will hang for 3 minutes and then say an obscure error message about being "not ready". This should fix the issue for 99% of resizeable users.