SRL Archive - Suggestions

GetStatus


TRiLeZ

2010-05-03 03:57:40

Simba needs a function to get the status text.

Example of it's use: changing the status when a script is doing it's antiban then changing it back to what it was.

i luffs yeww

2010-05-03 22:00:45

I think it could be something as simple as


function GetStatus: string; {The actual way this would be, of course.}
begin
Result := Self.StatusBar;
end;

But I'm not sure if Self.StatusBar is the correct thing. And You might need to do ToString or something, but hopefully that helps someone who can do it. :p

mastaraymond

2010-05-03 22:06:43

You cannot access the mainform as it's not thread-safe.. Therefore every function that interacts with the mainform has to be synchronized with the mainthread.. Which is quite a lot of work, if you want to do that for all of these small functions.

i luffs yeww

2010-05-03 22:08:30

If I have time I might waste a few hours of staring at code to think of some way to do this later. I've always liked the GetStatus function in SCAR. :)