world switch

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

world switch
  1. Unread #1 - Mar 26, 2007 at 11:58 AM
  2. dodge
    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5

    dodge Active Member
    Banned

    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
     
  3. Unread #2 - Mar 26, 2007 at 12:15 PM
  4. Diggity
    Referrals:
    0

    Diggity Guest

    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.
     
  5. Unread #3 - Mar 26, 2007 at 12:41 PM
  6. dodge
    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5

    dodge Active Member
    Banned

    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
     
  7. Unread #4 - Mar 26, 2007 at 12:49 PM
  8. speljohan
    Joined:
    Apr 24, 2005
    Posts:
    1,450
    Referrals:
    3
    Sythe Gold:
    0

    speljohan Guru
    Visual Basic Programmers

    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
     
  9. Unread #5 - Mar 26, 2007 at 12:50 PM
  10. Blizzind
    Joined:
    Apr 24, 2005
    Posts:
    2,805
    Referrals:
    1
    Sythe Gold:
    0

    Blizzind Grand Master
    Banned

    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
    
     
  11. Unread #6 - Mar 26, 2007 at 12:59 PM
  12. dodge
    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5

    dodge Active Member
    Banned

    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 >

Users viewing this thread
1 guest


 
 
Adblock breaks this site