Adblock breaks this site

Menu

Discussion in 'Programming General' started by flappy, Apr 19, 2008.

  1. flappy

    flappy Guest

    Referrals:
    0
    Menu

    I know this is a nooby question but how do I get menu items to open up .exe files or whatever?

    Like I want to like to a few other programs from the menu =/
     
  2. halojunkie

    halojunkie Active Member

    Joined:
    Dec 17, 2005
    Posts:
    232
    Referrals:
    0
    Sythe Gold:
    0
    Menu

    Shell(path to exe here)
     
  3. flappy

    flappy Guest

    Referrals:
    0
    Menu

    Thank you!

    New question lol

    When I open a webbrowser inside my RSClient why wont it load RS. I just open the browser straight to runescape.com but it still wotn load.. Do i have to allow it to load?
     
  4. halojunkie

    halojunkie Active Member

    Joined:
    Dec 17, 2005
    Posts:
    232
    Referrals:
    0
    Sythe Gold:
    0
    Menu

    What?
    Not completely following what your asking.
     
  5. flappy

    flappy Guest

    Referrals:
    0
    Menu

    Okay, i am trying to make a runescape client for myself too play RS with and to learn VB. Well anyway

    I have in the main form a Webbrowser and i have the web browser set to www.runescape.com .

    When I go to play the game, I select a world, and once it goes to the game window all i get is a white square where the runescape game is. But it will work if I open it in Internet Explorer ... How can I fix this?
     
  6. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    Menu

    Code:
    private sub webbrowser1_beforenavigate(url as string, cancel as integer) 'may need to fix this line up
        if lcase(url) = "http://www.runescape.com" then
            cancel = 1
        end if
        'if this doesn't work try "http://www.runescape.com/"
    end sub
     
  7. flappy

    flappy Guest

    Referrals:
    0
    Menu

    still get the white box thing ... what exactly does that code do anyway ... man i hate just beginning lol
     
  8. dgameman1

    dgameman1 Active Member
    Banned

    Joined:
    May 25, 2006
    Posts:
    122
    Referrals:
    0
    Sythe Gold:
    0
    Menu

    Code:
    private sub webbrowser1_beforenavigate(url as string, cancel as integer) 'may need to fix this line up
        if lcase(url) = "http://www.runescape.com" then
            cancel = 1
        end if
        'if this doesn't work try "http://www.runescape.com/"
    end sub

    webbrowser1_beforenavigate - imguessing when the second you open up your browser or whatever it goes to a site
    if lcase(url) = "http://www.runescape.com" then - the site that loads up is runescape.com


    -im also a begginer
     
  9. flappy

    flappy Guest

    Referrals:
    0
    Menu

    lol yea but it didnt do anything ...
     
  10. halojunkie

    halojunkie Active Member

    Joined:
    Dec 17, 2005
    Posts:
    232
    Referrals:
    0
    Sythe Gold:
    0
    Menu

    There is an issue with your java not loading. Try selecting unsigned java applet.
     
  11. Stuart

    Stuart Guru
    Banned

    Joined:
    May 5, 2005
    Posts:
    1,580
    Referrals:
    2
    Sythe Gold:
    10
    Menu

    The code covey posted will make it so you can load the actual game page up without being redirected to the runescape homepage.

    You should try reinstalling the latest Java Runtime Environment(JRE).
     
  12. flappy

    flappy Guest

    Referrals:
    0
    Menu

    okay will do ... I'm just beginning to visual basic here so i literally dont undersand alot right now but im learning lol ... How would I select Sun Java applet?

    using Eliteswitch's client (coveys) i have to use the Sun Java for it to load the RS applet ... otherwise its just a black or white box ... how would I do this...

    also if anyone has a good website of tutorials for visual basic It could help me too feel free to post =)

    thanks
     
  13. halojunkie

    halojunkie Active Member

    Joined:
    Dec 17, 2005
    Posts:
    232
    Referrals:
    0
    Sythe Gold:
    0
    Menu

    You would change the loading URL at the end.
    Or, on detail select page go to the bottom.
     
  14. flappy

    flappy Guest

    Referrals:
    0
    Menu

    booya! i finally got it to load!!! now to create all world links ... lol
     
  15. hero4rune

    hero4rune Guest

    Referrals:
    0
    Menu

    lol? so much codes??
    just:
    Code:
    private sub Go_Click ()' example, I named it Go
    webbrowser1.navigate = text1.text 'text1 is just an example... replace that with your textbox.
    end sub
    

    ~hero4rune
     
  16. Swan

    Swan When They Cry...
    Retired Global Moderator

    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner
    Menu

    This kid fails here and now.
     
  17. flappy

    flappy Guest

    Referrals:
    0
    Menu

    that code does not look right lol ...

    shouldnt it be like

    private sub world158_click ()
    WebBrowser1.navigate ( "http://" + start + "www.runescape.com/" + end )
    end sub

    the start would be the part of the url for that world like "world6" or w/e you get what i mean and the end would be the ljp0j0 or w/e lol dont feel like looking itup
     
  18. Swan

    Swan When They Cry...
    Retired Global Moderator

    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner
    Menu

    In VB6, the parenthesis are not required unless you are assigning a value. Syntax of BASIC is epic fail.
     
  19. flappy

    flappy Guest

    Referrals:
    0
    Menu

    okay then so it should look like this:

    private sub world158_Click
    WebBrowser1.navigate ( "http://" + start + "www.runescape.com/" + end )
    end sub

    right?

    ill try it when i get home from school...

    also to name something like the start i would name it

    Dim start as string

    correct?
     
  20. hero4rune

    hero4rune Guest

    Referrals:
    0
    Menu

    now i understand your question, then your code is good :)
     
< Need Help Fixing My C Program. Deals with File I/O | Flash Circle TD trainer >


 
 
Adblock breaks this site