Sythe.Org Forums     Register     FAQ     Members List     Calendar     Mark Forums Read    
 
Sythe.Org Forums  
   Runescape Gold

Sythe.org — A Virtual Goods Trading Hub

Make real cash! buying and selling in-game items.

We have a no-scam policy.

You can make thousands playing your favourite games here at Sythe.org.

Just sign up an account and follow the rules!


Take me to

Runescape Markets

Other Game Markets

Support Center

Register an Account

Close
RuneScape Client Browser Resizing + no ads
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 05-28-2010, 06:05 PM
Active Member
BANNED
 
Join Date: Aug 2007
Location: your face
Posts: 202
Send a message via MSN to Supah Fly Send a message via Skype™ to Supah Fly
Default RuneScape Client Browser Resizing + no ads

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

Ads are shown if the browser is big enough to show them:


Ads are hidden if the browser is too small:


Right when you load it:


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
            }
        }
Reply With Quote
  #2  
Old 05-29-2010, 12:09 PM
Guru
BANNED
 
Join Date: Dec 2009
Location: United States
Posts: 1,306
Default Re: RuneScape Client Browser Resizing + no ads

Look's nice, does it work at school haha xD
Reply With Quote
  #3  
Old 05-30-2010, 12:30 AM
Jimmy's Avatar
Leecher
Ex-Moderator $5 USD Donor
 
Join Date: Jun 2008
Location: Southern California
Posts: 2,359
Default Re: RuneScape Client Browser Resizing + no ads

^Obviously not as it still loads runescape in a webbrowser control.
__________________
Reply With Quote
  #4  
Old 05-30-2010, 02:30 AM
Active Member
BANNED
 
Join Date: Aug 2007
Location: your face
Posts: 202
Send a message via MSN to Supah Fly Send a message via Skype™ to Supah Fly
Default Re: 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(?)

Reply With Quote
  #5  
Old 05-30-2010, 03:06 AM
Jimmy's Avatar
Leecher
Ex-Moderator $5 USD Donor
 
Join Date: Jun 2008
Location: Southern California
Posts: 2,359
Default Re: 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.
__________________

Last edited by Jimmy : 07-17-2011 at 06:59 AM.
Reply With Quote
  #6  
Old 05-30-2010, 03:45 AM
Active Member
BANNED
 
Join Date: Aug 2007
Location: your face
Posts: 202
Send a message via MSN to Supah Fly Send a message via Skype™ to Supah Fly
Default Re: RuneScape Client Browser Resizing + no ads

Quote:
Originally Posted by Jimmy5410 View Post
^I found that funny. No, regardless of weather you are using the signed/unsigned client, its a java applet.
java without java, interesting. fuck, i didn't know that. whatever, now i do. i don't know everything
Reply With Quote
  #7  
Old 06-01-2010, 12:14 PM
Forum Addict
BANNED
 
Join Date: Jan 2010
Location: Canada.
Posts: 277
Default Re: 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.
Reply With Quote
  #8  
Old 08-09-2010, 04:15 PM
Newcomer
 
Join Date: Aug 2010
Posts: 5
Default Re: RuneScape Client Browser Resizing + no ads

Can anyone help me translating this into vb.net?
Reply With Quote
  #9  
Old 08-11-2010, 01:56 AM
x⁹
 
Posts: n/a
Default Re: RuneScape Client Browser Resizing + no ads

Quote:
Originally Posted by Supah Fly View Post
You could actually probably make a runescape client that works at school because there is a version of runescape that doesn't use java(?)

That's using MS Java (comes bundled with windows XP, I believe)
Reply With Quote
  #10  
Old 09-03-2010, 03:04 PM
Apprentice
BANNED
 
Join Date: Apr 2009
Location: Canada
Posts: 823
Send a message via MSN to william452
Default Re: RuneScape Client Browser Resizing + no ads

Thats cool
Reply With Quote
  #11  
Old 12-11-2010, 10:01 AM
Aroxez
 
Posts: n/a
Default Re: 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)
Reply With Quote
  #12  
Old 01-31-2011, 09:16 PM
Newcomer
 
Join Date: Mar 2010
Posts: 1
Default Re: RuneScape Client Browser Resizing + no ads

Can someone who downloaded this repost it?
Reply With Quote
  #13  
Old 03-23-2011, 11:57 PM
Jeezal's Avatar
Forum Addict
 
Join Date: Mar 2011
Posts: 285
Send a message via MSN to Jeezal
Default Re: RuneScape Client Browser Resizing + no ads

can anyone virus check
Reply With Quote
  #14  
Old 08-18-2011, 08:05 AM
Member
BANNED
 
Join Date: Aug 2011
Location: Canada.
Posts: 100
Default Re: RuneScape Client Browser Resizing + no ads

Does this still work? Anyone tested for a virus
Reply With Quote
  #15  
Old 08-18-2011, 02:59 PM
Merv's Avatar
Forum Addict
 
Join Date: Mar 2010
Posts: 439
Default Re: RuneScape Client Browser Resizing + no ads

file doesnt exist
__________________

Reply With Quote
Reply



Cheap RS Gold Store  Runescape Gold

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

All times are GMT +1. The time now is 08:45 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.1