RuneScape Client Browser Resizing + no ads

Discussion in 'Programming General' started by Supah Fly, May 28, 2010.

RuneScape Client Browser Resizing + no ads
  1. Unread #1 - May 28, 2010 at 1:05 PM
  2. Supah Fly
    Joined:
    Aug 22, 2007
    Posts:
    202
    Referrals:
    1
    Sythe Gold:
    0

    Supah Fly Active Member
    Banned

    RuneScape Client Browser Resizing + no ads

    Source:
    http://www.multiupload.com/1MUYOKAMNZ

    Ads are shown if the browser is big enough to show them:
    [​IMG]

    Ads are hidden if the browser is too small:
    [​IMG]

    Right when you load it:
    [​IMG]

    If you get an error like licenses.lx or something is missing just go into the properties folder and remove it.

    Just download my source and it will work fine, if you try and copy paste into your project I'm not going to help you.

    Code:
            private void Form1_Resize(object sender, EventArgs e)
            {
                panel1.Height = this.Height - 44; // calculate the main left panel's height
                panel1.Width = this.Width - panel2.Width - 30; // calculate the correct width
                panel3.Height = panel1.Height - panel4.Height - 6; // calculate the right height for the runescape panel
                panel2.Left = panel1.Width + 3; // just move this to the right location
                panel2.Height = this.Height - 44; // resize this to go with the whole client's height
    
                try
                {
                    if (webBrowser1.Url.AbsoluteUri.Contains("world") && webBrowser1.Url.AbsoluteUri.Contains("runescape.com"))
                    {
                        webBrowser1.Document.Window.ScrollTo(0, 128); // stupid ads, scrolls down if it needs to. it won't scroll if there is enough room for ads
                    }
                }
                catch (Exception ex)
                {
                    // lol errorzorz, the client doesn't exist yet!!
                }
            }
    
            private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
            {
                webBrowser1.Document.Body.Style = "border-style: none; border-width: 0px;"; // get rid of border around webbrowser1
    
                if (webBrowser1.Url.AbsoluteUri.Contains("game.ws") && webBrowser1.Url.AbsoluteUri.Contains("runescape.com"))
                {
                    webBrowser1.ScrollBarsEnabled = false; // we will scroll automatically
                    HtmlElement he = webBrowser1.Document.GetElementsByTagName("frame")[0]; // when you load game.ws it makes a frame with the world page in it
                    webBrowser1.Navigate(he.GetAttribute("src")); // go to the real url, then we can get rid of the borders and stuff
                }
                else if (webBrowser1.Url.AbsoluteUri.Contains("world") && webBrowser1.Url.AbsoluteUri.Contains("runescape.com"))
                {
                    webBrowser1.ScrollBarsEnabled = false; // we will scroll automatically
                    webBrowser1.Document.Window.ScrollTo(0, 128); // stupid ads
                }
                else
                {
                    webBrowser1.ScrollBarsEnabled = true; // re-enable the scroll bars since we aren't viewing the game page anymore
                }
            }
    
            private void webBrowser1_Navigated(object sender, WebBrowserNavigatedEventArgs e)
            {
                if (webBrowser1.Url.AbsoluteUri.Contains("game.ws") && webBrowser1.Url.AbsoluteUri.Contains("runescape.com"))
                {
                    webBrowser1.ScrollBarsEnabled = false; // we will scroll automatically
                    HtmlElement he = webBrowser1.Document.GetElementsByTagName("frame")[0]; // when you load game.ws it makes a frame with the world page in it
                    webBrowser1.Navigate(he.GetAttribute("src")); // go to the real url, then we can get rid of the borders and stuff
                }
                else if (webBrowser1.Url.AbsoluteUri.Contains("world") && webBrowser1.Url.AbsoluteUri.Contains("runescape.com"))
                {
                    webBrowser1.ScrollBarsEnabled = false; // we will scroll automatically
                    webBrowser1.Document.Window.ScrollTo(0, 128); // stupid ads
                }
                else
                {
                    webBrowser1.ScrollBarsEnabled = true; // re-enable the scroll bars since we aren't viewing the game page anymore
                }
            }
     
  3. Unread #2 - May 29, 2010 at 7:09 AM
  4. Anthony
    Joined:
    Dec 27, 2009
    Posts:
    2,515
    Referrals:
    5
    Sythe Gold:
    54
    Lawrence Pokémon Trainer Doge Two Factor Authentication User Extreme Homosex UWotM8?

    Anthony Real knowledge is to know the extent of one's ignorance.
    $200 USD Donor

    RuneScape Client Browser Resizing + no ads

    Look's nice, does it work at school haha xD
     
  5. Unread #3 - May 29, 2010 at 7:30 PM
  6. Jimmy
    Joined:
    Jun 24, 2008
    Posts:
    2,421
    Referrals:
    10
    Sythe Gold:
    25

    Jimmy Ghost
    Retired Sectional Moderator $5 USD Donor

    RuneScape Client Browser Resizing + no ads

    ^Obviously not as it still loads runescape in a webbrowser control.
     
  7. Unread #4 - May 29, 2010 at 9:30 PM
  8. Supah Fly
    Joined:
    Aug 22, 2007
    Posts:
    202
    Referrals:
    1
    Sythe Gold:
    0

    Supah Fly Active Member
    Banned

    RuneScape Client Browser Resizing + no ads

    You could actually probably make a runescape client that works at school because there is a version of runescape that doesn't use java(?)

    [​IMG]
     
  9. Unread #5 - May 29, 2010 at 10:06 PM
  10. Jimmy
    Joined:
    Jun 24, 2008
    Posts:
    2,421
    Referrals:
    10
    Sythe Gold:
    25

    Jimmy Ghost
    Retired Sectional Moderator $5 USD Donor

    RuneScape Client Browser Resizing + no ads

    ^I found that funny. No, regardless of weather you are using the signed/unsigned client, it's a java applet.
     
  11. Unread #6 - May 29, 2010 at 10:45 PM
  12. Supah Fly
    Joined:
    Aug 22, 2007
    Posts:
    202
    Referrals:
    1
    Sythe Gold:
    0

    Supah Fly Active Member
    Banned

    RuneScape Client Browser Resizing + no ads

    java without java, interesting. fuck, i didn't know that. whatever, now i do. i don't know everything :p
     
  13. Unread #7 - Jun 1, 2010 at 7:14 AM
  14. Samâ„¢
    Joined:
    Jan 11, 2010
    Posts:
    277
    Referrals:
    2
    Sythe Gold:
    0

    Samâ„¢ Forum Addict
    Banned

    RuneScape Client Browser Resizing + no ads

    Hey Supah Fly, I remember you from fagex. Anyway, that's beside the point. I'm going to test this out, looks interesting. Thanks for posting it.
     
  15. Unread #8 - Aug 9, 2010 at 11:15 AM
  16. danishdragon
    Joined:
    Aug 9, 2010
    Posts:
    5
    Referrals:
    0
    Sythe Gold:
    0

    danishdragon Newcomer

    RuneScape Client Browser Resizing + no ads

    Can anyone help me translating this into vb.net?
     
  17. Unread #9 - Aug 10, 2010 at 8:56 PM
  18. x⁹
    Referrals:
    1

    x⁹ Guest

    RuneScape Client Browser Resizing + no ads

    That's using MS Java (comes bundled with windows XP, I believe)
     
  19. Unread #10 - Sep 3, 2010 at 10:04 AM
  20. william452
    Joined:
    Apr 1, 2009
    Posts:
    820
    Referrals:
    0
    Sythe Gold:
    0

    william452 Apprentice
    Banned

    RuneScape Client Browser Resizing + no ads

    Thats cool
     
  21. Unread #11 - Dec 11, 2010 at 5:01 AM
  22. Aroxez
    Referrals:
    0

    Aroxez Guest

    RuneScape Client Browser Resizing + no ads

    The browser has ads regardless. It'll only show no ads if you're a member, or you're using a different kind of client. (i.e some sort of bot)
     
  23. Unread #12 - Jan 31, 2011 at 4:16 PM
  24. trevor206
    Joined:
    Mar 20, 2010
    Posts:
    1
    Referrals:
    0
    Sythe Gold:
    0

    trevor206 Newcomer

    RuneScape Client Browser Resizing + no ads

    Can someone who downloaded this repost it?
     
  25. Unread #13 - Mar 23, 2011 at 7:57 PM
  26. Jeezal
    Joined:
    Mar 23, 2011
    Posts:
    285
    Referrals:
    0
    Sythe Gold:
    0

    Jeezal Forum Addict

    RuneScape Client Browser Resizing + no ads

    can anyone virus check
     
  27. Unread #14 - Aug 18, 2011 at 3:05 AM
  28. Ericâ„¢
    Joined:
    Aug 16, 2011
    Posts:
    101
    Referrals:
    0
    Sythe Gold:
    0

    Ericâ„¢ Active Member
    Banned

    RuneScape Client Browser Resizing + no ads

    Does this still work? Anyone tested for a virus
     
  29. Unread #15 - Aug 18, 2011 at 9:59 AM
  30. Merv
    Joined:
    Mar 2, 2010
    Posts:
    443
    Referrals:
    0
    Sythe Gold:
    0

    Merv Forum Addict

    RuneScape Client Browser Resizing + no ads

    file doesnt exist
     
< How To Portforward Your Computer | RS2: A favor with high potential rewards >

Users viewing this thread
1 guest


 
 
Adblock breaks this site