• Log in or sign up for an account here: https://www.sythe.org/login

StealRS2 not working with SUN Java?

N E T

Member
Joined
May 9, 2005
Sythe Gold
0
Messages
40
Hm, well, for whatever reason my laptop wont run RS properly using the "default" Java that RS loads up in, and so I have to always select the SUN Java option.

Anywho, I noticed in my mini client that I usually only use to load full worlds quickly and F2P that StealRS no longer removes F2P ads and refits the window properly. Personally, I don't know much about the way StealRS works, other than the fact that it always has up until now.. Any ideas? Similar problems? It still works fine if I select the "Default" version of RS..

I tried searching around these forums first, haven't seen anything recent about StealRS being update, so I figured I'd just throw this out there and hope for the best.
 
what is you IE Version?

if you have MS java i'll suggest to uninstall it and leave only the sun java, also on IE 7 under advanced there is a reset button where you can reset all the settings on your browser, i had the same problem and doing this fixed for me
 
IE 6.0

I don't use IE because it blows. Opera ftw :\ And I've got the most up-to-date version of the SUN Java installed, and I've removed all older versions of Java on my laptop (which, whenever I installed VB in the first place caused all kinds of problems with RS lol). But it was working, up until a few weeks ago..

And all problems aside, even if I made SUN Java the "default" one Jagex loads to play RS on my laptop, it wouldn't solve StealRS not working with it :S
 
It's most likely that your function isn't searching for an applet that is SUN java. Add a line of code so it will check for that.

It's probably just looking for an MS java applet
 
No, a combination of your java version and Ie version causes stealrs2 to stuff up when trying to pull a Sun Java Applet. ask cruel he had the same problem and both cruel and i tried to customize the stealrs2 code, but when done so it crashes your app with no given error. I did a large post about it on cruels if your interested you can read it.

http://cruels.net/index.php?showtopic=4253&hl=stealrs

this guy claims he fixed the stealrs2 you may want to check it out although it still doesn't work for sun java with me.
http://cruels.net/index.php?showtopic=4212&hl=stealrs

here's cruels error information:
http://www.sythe.org/archive/index.php/t-100237.html
 
Yeah, that was an old problem though. And if you notice the two commented lines in ym StealRS2 function:
Code:
   'RSSunJava = FindWindowEx(RSSunJava, 0, "SunAwtCanvas", vbNullString)
   'RSSunJava = FindWindowEx(RSSunJava, 0, "SunAwtCanvas", vbNullString)
That was my fix.
I used SetParent on the actual canvas (by uncommenting those lines) and it gives errors. You have to leave the canvases in the java plugin window.

Anyhow, I don't know what your StealRS function looks like, but it's probably old.
But I suggest you not use SetParent anyhow. Just put the browser control in a 503x765 container control (like a picturebox in vb6) and change the browser's position accordingly.
You can use my FindWindow Gen too, to find any problems:
http://cruels.net/index.php?showtopic=3266

Here's my code (delphi) from my client that repositions the applet:
Code:
  HWND1:= FindWindowEx(browser.Handle, 0, 'shell docobject view', nil);
  HWND1:= FindWindowEx(HWND1, 0, 'internet explorer_server', nil);
  RSHwnd:= FindWindowEx(HWND1, 0, 'Java Plug-in Control Window', nil);
  RSHwnd:= FindWindowEx(RSHwnd, 0, 'sun.plugin.viewer.frame.IExplorerEmbeddedFrame', nil);
  RSHwnd:= FindWindowEx(RSHwnd, 0, 'SunAwtCanvas', nil);
  RSHwnd:= FindWindowEx(RSHwnd, 0, 'SunAwtCanvas', nil);
  RSHwnd:= FindWindowEx(RSHwnd, 0, 'SunAwtCanvas', nil);
  HWND1:= FindWindowEx(HWND1, 0, 'microsoft vm for java(tm) host window class', nil);
  HWND1:= FindWindowEx(HWND1, 0, 'msawt_comp_class', nil);
  If RSHwnd = 0 then RSHwnd:= HWND1;
  If RSHwnd = 0 Then Exit;
  GetWindowRect(RSHwnd,tmpRECT);
  GetWindowRect(browser.Handle,tmpRECT2);
  Browser.Top:= tmpRECT2.top-tmpRECT.top;
  Browser.Left:= tmpRECT2.left-tmpRECT.left;
Those "SunAwtCanvas" lines are probably not even needed, as the IE plugin view is probably the same dimension/position as the child canvases.
 
Ah, you two are amazing. Thanks so much for the time, and now I have fun new stuff to explore =] (oh, and its working, so time to go mess that up fiddling around with something else!)

<3
 
Runescape Gamblingrunescape gambling
Back
Top