From: Brandon
Huh? GetProcesses()? I forgot who wrote the Wurm include but they have a nice procedure in there that can target a window by process ID.. I don't really have plans to make that plugin on par with the colour plugin..
But, if you want to forget about pid's and make it compatible with the latest Simba's functions, you can map it by WindowID like the colour plugins do..
https://github.com/Brandon-T/GLX-Colour/blob/GLX/src/Exports.c#L25
and it'd allow you to do: GLXSetup(GetNativeWindow()); All you'd have to do is drag Simba's crosshairs to the browser window or client window or w/e window and it'd automatically setup everything..
But in the mean while, you can just ask foundry for some of his code from his wurm client which already had the ability to target processes before the recent update.
Is there a reason to not use SMART though?
I guess i can just use something like this to auto pair:
Processes := GetProcesses();
for i := 0 to High(Processes) do
if (Pos('RuneScape - MMORPG - The No.1 Free Online Multiplayer Game', Processes[i].Title) > 0) then
begin
SetTarget(Processes[i]);
GLXSetup(Processes[i].PID);
GLXMapHooks(Processes[i].PID);
ActivateClient();
end;
Although just realize that even though there's no access violation error, i still couldn't get any texture (glgettextures() returns nothing). Both glxsetup() and GLXMapHooks() returned true.
I'm fine with using SMART, someone else is not so i'm trying to help him to get it working on browser.
EDIT: nvm it works on rs client. Think i put the plugin at the wrong place for the browser or i have some browser settings wrong. I put it in C:\Program Files (x86)\Google\Chrome\Application (same folder as chrome.exe).