Adblock breaks this site

world switch

Discussion in 'Programming General' started by dodge, Mar 26, 2007.

  1. dodge

    dodge Active Member
    Banned

    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5
    world switch

    hello, i'm really new at this, not new at programming tho. i have been trying to load the page directly with the world i have selected but somehow it always gos back to the main page, maybe someone can point me in the right direction as how to load this without being redirected to the main page all the time.

    is this somthing with the referer url or maybe another server variable i dont know?

    thank you
     
  2. Diggity

    Diggity Guest

    Referrals:
    0
    world switch

    you need to add some some anti redirection code.
    i'd glady do it for you but seeing i don't have vb.net on this comp i don't know the correct procedure calls to give you.
    but im sure this has already been posted, maybe have a quick look for it.
     
  3. dodge

    dodge Active Member
    Banned

    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5
    world switch

    thanks, i'll try finding the code. if anyone has other idas please post them..

    btw the rslib for dotnet is really goodm too bad i was wrting this code and wasted sometime before finding this was done
     
  4. speljohan

    speljohan Guru
    Visual Basic Programmers

    Joined:
    Apr 24, 2005
    Posts:
    1,450
    Referrals:
    3
    Sythe Gold:
    0
    world switch

    thanks :) you are actually the first person i know tried my library. Oh, here's the anti-redirect code:
    Code:
        Private Sub WebBrowser1_Navigating(ByVal sender As Object, ByVal e As System.Windows.Forms.WebBrowserNavigatingEventArgs) Handles WebBrowser1.Navigating
            On Error Resume Next
            If e.Url.AbsoluteUri = "http://www.runescape.com/" Then e.Cancel = True
        End Sub
     
  5. Blizzind

    Blizzind Grand Master
    Banned

    Joined:
    Apr 24, 2005
    Posts:
    2,805
    Referrals:
    1
    Sythe Gold:
    0
    world switch

    I think this is the code your looking for:

    Code:
    Private Sub WebBrowser1_Navigating(ByVal sender As Object, ByVal e As
    System.Windows.Forms.WebBrowserNavigatingEventArgs) Handles WebBrowser1.Navigating
           If (e.Url.ToString = "http://www.runescape.com/") Then
               e.Cancel = True
           End If
       End Sub
    
     
  6. dodge

    dodge Active Member
    Banned

    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5
    world switch

    thank you guys, this site is great, great ppl here

    i found the code at this post

    http://www.sythe.org/showthread.php?t=179876

    again that lib is great, i mean really good and easy to use, i added you to my msn, maybe we can work together on a good client for this .net rslib 1.0 rocks

    once i got all my code done i'll post the full source code for other to use
     
< parse world list | FIRST RObotix >


 
 
Adblock breaks this site