Originally Posted by
Citrus
ActivateClient is for keyboard input, and won't do anything to help if he's using the desktop as his client.
It sounds like he's using GetColor to check a single pixel, like the IsLoggedIn function for RS does (or did, idk).
Well. Regardless of what you think of ActivateClient; or the docs say. You need to use the
WINAPI method to bring the window to the foreground, front, active, whatever you want to call it.
In order for this to work. And i know because I've used the winapi raw before to do this exact thing.
In fact here's the windows specific file and this is what u need to have happen for this to work:
https://github.com/MerlijnWajer/Simb...os_windows.pas
Simba Code:
procedure TWindow.ActivateClient;
begin
SetForegroundWindow(handle);
end;
Simba Code:
\subsection{ActivateClient}
This functies tries to bring the current target to the front.
This will only work if the target is a System Window. When a bitmap is set as a
target, or a pointer to data, then it will not work.
This right here is the root of the answer. In order for you to get this to work with your game. You need to get your window to the "front".
This DOCS is from Simba's source. And its basically saying you need to select the outside of your game's window in order for it to do this.
If you select the inside bitmap. It won't bring it to the front. You need to select the actual window with the maximize button and everything and make sure u call ActivateClient;.
EDIT: Also here's my 2012 tutorial - [Tutorial] Scripting for other things besides Runescape with Simba