StealRS2 not working with SUN Java?

Discussion in 'Archives' started by N E T, May 11, 2007.

StealRS2 not working with SUN Java?
  1. Unread #1 - May 11, 2007 at 5:27 PM
  2. N E T
    Joined:
    May 9, 2005
    Posts:
    40
    Referrals:
    0
    Sythe Gold:
    0

    N E T Member

    StealRS2 not working with SUN Java?

    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.
     
  3. Unread #2 - May 11, 2007 at 5:31 PM
  4. dodge
    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5

    dodge Active Member
    Banned

    StealRS2 not working with SUN Java?

    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
     
  5. Unread #3 - May 11, 2007 at 5:39 PM
  6. N E T
    Joined:
    May 9, 2005
    Posts:
    40
    Referrals:
    0
    Sythe Gold:
    0

    N E T Member

    StealRS2 not working with SUN Java?

    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
     
  7. Unread #4 - May 11, 2007 at 6:18 PM
  8. joewnn
    Joined:
    Apr 21, 2005
    Posts:
    1,500
    Referrals:
    0
    Sythe Gold:
    0

    joewnn Guru
    Banned

    StealRS2 not working with SUN Java?

    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
     
  9. Unread #5 - May 12, 2007 at 2:12 AM
  10. Covey
    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    StealRS2 not working with SUN Java?

    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
     
  11. Unread #6 - May 12, 2007 at 5:34 AM
  12. Cruel__Machine
    Referrals:
    100

    Cruel__Machine Guest

    StealRS2 not working with SUN Java?

    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.
     
  13. Unread #7 - May 16, 2007 at 2:34 AM
  14. N E T
    Joined:
    May 9, 2005
    Posts:
    40
    Referrals:
    0
    Sythe Gold:
    0

    N E T Member

    StealRS2 not working with SUN Java?

    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
     
< i need money -_- | need help >

Users viewing this thread
1 guest


 
 
Adblock breaks this site