Menu

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

Menu
  1. Unread #1 - Apr 19, 2008 at 2:30 AM
  2. flappy
    Referrals:
    0

    flappy Guest

    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 =/
     
  3. Unread #2 - Apr 19, 2008 at 2:51 AM
  4. halojunkie
    Joined:
    Dec 17, 2005
    Posts:
    232
    Referrals:
    0
    Sythe Gold:
    0

    halojunkie Active Member

    Menu

    Shell(path to exe here)
     
  5. Unread #3 - Apr 19, 2008 at 11:20 AM
  6. flappy
    Referrals:
    0

    flappy Guest

    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?
     
  7. Unread #4 - Apr 19, 2008 at 8:55 PM
  8. halojunkie
    Joined:
    Dec 17, 2005
    Posts:
    232
    Referrals:
    0
    Sythe Gold:
    0

    halojunkie Active Member

    Menu

    What?
    Not completely following what your asking.
     
  9. Unread #5 - Apr 19, 2008 at 11:18 PM
  10. flappy
    Referrals:
    0

    flappy Guest

    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?
     
  11. Unread #6 - Apr 20, 2008 at 1:36 AM
  12. 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

    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
     
  13. Unread #7 - Apr 20, 2008 at 2:15 AM
  14. flappy
    Referrals:
    0

    flappy Guest

    Menu

    still get the white box thing ... what exactly does that code do anyway ... man i hate just beginning lol
     
  15. Unread #8 - Apr 20, 2008 at 5:56 PM
  16. dgameman1
    Joined:
    May 25, 2006
    Posts:
    122
    Referrals:
    0
    Sythe Gold:
    0

    dgameman1 Active Member
    Banned

    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
     
  17. Unread #9 - Apr 20, 2008 at 6:05 PM
  18. flappy
    Referrals:
    0

    flappy Guest

    Menu

    lol yea but it didnt do anything ...
     
  19. Unread #10 - Apr 21, 2008 at 11:08 PM
  20. halojunkie
    Joined:
    Dec 17, 2005
    Posts:
    232
    Referrals:
    0
    Sythe Gold:
    0

    halojunkie Active Member

    Menu

    There is an issue with your java not loading. Try selecting unsigned java applet.
     
  21. Unread #11 - Apr 22, 2008 at 10:56 AM
  22. Stuart
    Joined:
    May 5, 2005
    Posts:
    1,580
    Referrals:
    2
    Sythe Gold:
    10

    Stuart Guru
    Banned

    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).
     
  23. Unread #12 - Apr 23, 2008 at 3:29 PM
  24. flappy
    Referrals:
    0

    flappy Guest

    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
     
  25. Unread #13 - Apr 23, 2008 at 9:50 PM
  26. halojunkie
    Joined:
    Dec 17, 2005
    Posts:
    232
    Referrals:
    0
    Sythe Gold:
    0

    halojunkie Active Member

    Menu

    You would change the loading URL at the end.
    Or, on detail select page go to the bottom.
     
  27. Unread #14 - Apr 24, 2008 at 5:21 PM
  28. flappy
    Referrals:
    0

    flappy Guest

    Menu

    booya! i finally got it to load!!! now to create all world links ... lol
     
  29. Unread #15 - Apr 27, 2008 at 2:57 AM
  30. hero4rune
    Referrals:
    0

    hero4rune Guest

    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
     
  31. Unread #16 - Apr 27, 2008 at 3:29 AM
  32. 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

    Menu

    This kid fails here and now.
     
  33. Unread #17 - Apr 27, 2008 at 10:01 AM
  34. flappy
    Referrals:
    0

    flappy Guest

    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
     
  35. Unread #18 - Apr 28, 2008 at 4:47 AM
  36. 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

    Menu

    In VB6, the parenthesis are not required unless you are assigning a value. Syntax of BASIC is epic fail.
     
  37. Unread #19 - Apr 28, 2008 at 4:01 PM
  38. flappy
    Referrals:
    0

    flappy Guest

    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?
     
  39. Unread #20 - Apr 29, 2008 at 2:48 AM
  40. hero4rune
    Referrals:
    0

    hero4rune Guest

    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 >

Users viewing this thread
1 guest


 
 
Adblock breaks this site