New StealRS, Will never break :)

Discussion in 'Programming General' started by Stuart, Jan 21, 2008.

New StealRS, Will never break :)
  1. Unread #1 - Jan 21, 2008 at 9:46 AM
  2. Stuart
    Joined:
    May 5, 2005
    Posts:
    1,580
    Referrals:
    2
    Sythe Gold:
    10

    Stuart Guru
    Banned

    New StealRS, Will never break :)

    I made this for cruels.net but thought I would share here aswell.

    It dynamically edits the pages sourcecode so that it just leaves the applet on the webpage and nothing else :)

    Code:
    Private Sub Command1_Click()
    WebBrowser1.Navigate "http://sl1.runescape.com/l1,p0,j1"
    End Sub
    
    Private Sub WebBrowser1_BeforeNavigate2(ByVal pDisp As Object, URL As Variant, Flags As Variant, TargetFrameName As Variant, PostData As Variant, Headers As Variant, Cancel As Boolean)
    If (URL = "http://www.runescape.com/") Then Cancel = True
    End Sub
    
    Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
    WebBrowser1.Document.body.innerHTML = WebBrowser1.Document.All.Item("app").outerHTML
    WebBrowser1.Width = Val(WebBrowser1.Document.All.Item("app").getAttribute("width")) + 4
    WebBrowser1.Height = Val(WebBrowser1.Document.All.Item("app").getAttribute("height")) + 4
    End Sub
    
     
  3. Unread #2 - Jan 21, 2008 at 10:24 AM
  4. 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

    New StealRS, Will never break :)

  5. Unread #3 - Jan 21, 2008 at 10:44 AM
  6. Stuart
    Joined:
    May 5, 2005
    Posts:
    1,580
    Referrals:
    2
    Sythe Gold:
    10

    Stuart Guru
    Banned

    New StealRS, Will never break :)

    You need to set your form to pixels and not twips in the forms scale mode.
     
  7. Unread #4 - Jan 22, 2008 at 12:11 AM
  8. Nullware
    Joined:
    Jan 30, 2007
    Posts:
    1,761
    Referrals:
    4
    Sythe Gold:
    0

    Nullware Guru

    New StealRS, Will never break :)

    Oh boy, you should have known that Covey. D:
     
  9. Unread #5 - Jan 22, 2008 at 5:47 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

    New StealRS, Will never break :)

    Haha, it didn't even cross my mind, but you just times the pixel number by 15 to get the twips number so its aaaaalllllllllllllllllllllll good.
     
  11. Unread #6 - Jan 23, 2008 at 6:14 AM
  12. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    New StealRS, Will never break :)

    Someone mind telling me what the entire point of twips are? They seem like a useless medium of measurement to me.
     
  13. Unread #7 - Jan 23, 2008 at 12:01 PM
  14. Nullware
    Joined:
    Jan 30, 2007
    Posts:
    1,761
    Referrals:
    4
    Sythe Gold:
    0

    Nullware Guru

    New StealRS, Will never break :)

    A brainstorm of Microsoft.

    A summation of Microsoft.
     
  15. Unread #8 - Jan 23, 2008 at 12:30 PM
  16. 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

    New StealRS, Will never break :)

    ^ lol

    --------------------------

    Twips = Screen independant
    Pixels = Screen dependant
     
  17. Unread #9 - Jan 23, 2008 at 11:21 PM
  18. jdsfighter
    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0

    jdsfighter Forum Addict
    Visual Basic Programmers

    New StealRS, Will never break :)

    You don't always multiply twips by 15 to get the correct pixels. For example my screen has 12 twips per pixel. Just use the built in methods of the screen property to get the correct number. Screen.TwipsPerPixelX Screen.TwipsPerPixelY
     
  19. Unread #10 - Feb 12, 2008 at 6:51 PM
  20. Melvin
    Joined:
    Nov 22, 2007
    Posts:
    129
    Referrals:
    1
    Sythe Gold:
    0

    Melvin Active Member

    New StealRS, Will never break :)

    Broken..

     
  21. Unread #11 - Feb 13, 2008 at 2:00 AM
  22. Jazz00006
    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0

    Jazz00006 Apprentice
    Visual Basic Programmers

    New StealRS, Will never break :)

    Thats an error on your side, make sure you can load RS in IE, if you can then you may have something else that needs fixing.

    But that code works 100%
     
  23. Unread #12 - Feb 13, 2008 at 5:47 PM
  24. Melvin
    Joined:
    Nov 22, 2007
    Posts:
    129
    Referrals:
    1
    Sythe Gold:
    0

    Melvin Active Member

    New StealRS, Will never break :)

    I guess. But i have no problems loading it in IE7.
     
  25. Unread #13 - Feb 13, 2008 at 6:07 PM
  26. Terrankiller
    Joined:
    May 7, 2005
    Posts:
    1,286
    Referrals:
    1
    Sythe Gold:
    1

    Terrankiller Ex-Administrator
    Retired Administrator Visual Basic Programmers

    New StealRS, Will never break :)

    Maybe you need to get a newer version of Java.
     
  27. Unread #14 - Feb 13, 2008 at 6:50 PM
  28. Melvin
    Joined:
    Nov 22, 2007
    Posts:
    129
    Referrals:
    1
    Sythe Gold:
    0

    Melvin Active Member

    New StealRS, Will never break :)

    i have newest version.
     
  29. Unread #15 - Feb 13, 2008 at 6:55 PM
  30. Terrankiller
    Joined:
    May 7, 2005
    Posts:
    1,286
    Referrals:
    1
    Sythe Gold:
    1

    Terrankiller Ex-Administrator
    Retired Administrator Visual Basic Programmers

    New StealRS, Will never break :)

    Maybe you should refer to the technical FAQ which can be found in the FAQ section of their site.
     
  31. Unread #16 - Feb 21, 2008 at 7:25 PM
  32. asda123
    Joined:
    May 13, 2007
    Posts:
    415
    Referrals:
    0
    Sythe Gold:
    0

    asda123 Forum Addict
    Banned

    New StealRS, Will never break :)

    I lol'd so much at this post :cool:
     
< A Hard Question.. | 1000 to 1,000?! Please post if you know how! >

Users viewing this thread
1 guest


 
 
Adblock breaks this site