
Originally Posted by
mastaraymond
Well, you just need to retrieve a list of all the windows available in Windows and then loop through them to find a possible runescape client..
I think the class is SunAwtCanvas, but the problem is that there might be many. I dunno if it really matters.
E: Im gonna try to find it with the main handle.
E2: Ok, so we are going to have a small problem here. As Different browsers are used, they have different child window names / classes. Like in mozilla it could go like this:
Code:
+-MozillaUIWindowClass
|--> MozillaWindowClass
|---> MozillaWindowClass
|----> MozillaWindowClass
|-----> MozillaContentWindowClass
|------> MozillaWindowClass
|-------> MozillaWindowClass
|--------> MozillaWindowClass
|---------> SunAwtFrame
|----------> SunAwtCanvas
|-----------> SunAwtCanvas
|------------> SunAwtCanvas
+-------------> SunAwtCanvas
E3: Ok so i did a little snippet to show you how they go in opera.

E4: And i tested the same with FireFox 

E5: So far i've got the big canvas.
E6: Got the right canvas, now only some final adjustments 

E7: I ran into another problem, in Mozilla FireFox the Canvas' form differently compared to Opera.
Well I could make it detect what kind of browser it is. IE & FF has the same method, only Opera differs.
Any opinions / suggestions?
E8: Tested to work with: Opera, Chrome, FireFox, Internet Explorer
E9: Here is a plugin, but the problem is that it gives runtime errors, access violation.
http://pastebin.com/f492fb9f3
Works fine in my test app, but in scar does not return the handle to the main window.
SCAR Code:
begin
Writeln( IntToStr( FindWindowByTitle( 'RuneScape -' ) ) );
end.