Adblock breaks this site

Is this possible?

Discussion in 'Programming General' started by CheapPins, Aug 28, 2010.

  1. CheapPins

    CheapPins Member

    Joined:
    Apr 26, 2010
    Posts:
    66
    Referrals:
    0
    Sythe Gold:
    0
    Is this possible?

    [​IMG]
    Updated with background:
    [​IMG]
    Just wondering if this is possible:
    When you click Forums it brings you to the forum / website.
    When you click Vote it brings you to the Rune Locus vote link website.
    When you click Item List it opens a notepad with item ids.
    When you click YouTube channel it brings you to a YouTube channel.
    When you click Play Ziotic it opens a java private server client.

    If you could tell me which would work / how to or if none would it would be appreciated.
    If you would like to help contact me on Skype: mr-choma
    Thanks a bunch.
     
  2. blindkilla

    blindkilla Guru
    $25 USD Donor New

    Joined:
    Jun 22, 2005
    Posts:
    1,896
    Referrals:
    0
    Sythe Gold:
    6
    Discord Unique ID:
    282000633404456960
    Discord Username:
    sogord
    Is this possible?

    I'm not sure on the private server client part, but you can do all the other things.

    Vb6 has a function called Shell(). It accepts a file path to what you want to execute.

    I'm sure that there is a way to import a library and use the shellexecute() function that is used in c++ as well.

    If you do some google searching I'm sure you can find what you're looking for.
     
  3. Jyak

    Jyak Member
    Banned

    Joined:
    Dec 25, 2010
    Posts:
    44
    Referrals:
    1
    Sythe Gold:
    0
    Is this possible?

    process.start("www.google.com")
    that's what I use in vb08
     
  4. Desirable

    Desirable Active Member
    Banned

    Joined:
    Nov 30, 2010
    Posts:
    102
    Referrals:
    0
    Sythe Gold:
    0
    Is this possible?

    is it a webclient?
     
  5. 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
    Is this possible?

    Code:
    Private Sub Command1_Click()
        On Error GoTo ohnoes
        Call Shell("C:\Program Files\Internet Explorer\iexplore.exe URL_HERE")
        Exit Sub
    ohnoes:
        MsgBox "Error number: " & Err.Number & vbNewLine & "Error Brief: " & Err.Description, vbCritical, "Error Details"
    End Sub
    replace URL_HERE with the url you want the webbrowser to navigate to. I added a little bit of error handling as some people computer may not have iexplorer stored on C drive.
     
  6. Govind

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Joined:
    Apr 22, 2005
    Posts:
    7,825
    Referrals:
    13
    Sythe Gold:
    23
    Prove it! Trole Tier 1 Prizebox Tortoise Penis Le Monkey UWotM8? Wait, do you not have an Archer rank? Potamus
    Is this possible?

    Use %ProgramFiles% instead it automatically translates to <Windows Drive>:\Program Files
     
  7. 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
    Is this possible?

    Unfortunately it doesn't work in VB6 :(
     
  8. kangaroo008

    kangaroo008 Apprentice
    Banned

    Joined:
    Aug 27, 2010
    Posts:
    656
    Referrals:
    1
    Sythe Gold:
    0
    Is this possible?

    are u the owner of ziotic? i think ive seen some vids of it, is it online atm?
     
  9. Govind

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Joined:
    Apr 22, 2005
    Posts:
    7,825
    Referrals:
    13
    Sythe Gold:
    23
    Prove it! Trole Tier 1 Prizebox Tortoise Penis Le Monkey UWotM8? Wait, do you not have an Archer rank? Potamus
    Is this possible?

    Oh didnt know that my bad.

    There's also the GetEnvironmentVariable API call.
     
  10. Flaming Idiots

    Flaming Idiots Active Member
    Visual Basic Programmers

    Joined:
    Dec 22, 2005
    Posts:
    235
    Referrals:
    1
    Sythe Gold:
    0
    Two Factor Authentication User
    Is this possible?

    You can use the ShellExecute function to open a web address in the default web browser. Here's an article that explains how to use it in vb6. Clicky.
     
  11. Deagon

    Deagon Apprentice
    Banned

    Joined:
    Oct 2, 2009
    Posts:
    825
    Referrals:
    1
    Sythe Gold:
    0
    Is this possible?

    Everything is possible. Google it.
     
  12. Nyx

    Nyx SMR likes me a lot
    Banned

    Joined:
    Dec 17, 2010
    Posts:
    480
    Referrals:
    0
    Sythe Gold:
    0
    Is this possible?

    Yea, it's pretty easy :)

    Code:
    System.Diagnostics.Process.Start("http://www.YOURWEBSITE")
    If it doesn't work on your VB version, PM me or take a look here. Good luck!
     
  13. 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
    Is this possible?

    That uses .NET framwork, he is using VB6....Big difference.
     
  14. dzmuL

    dzmuL Member
    Banned

    Joined:
    Jan 22, 2011
    Posts:
    27
    Referrals:
    0
    Sythe Gold:
    0
    Is this possible?

    Code:
    replace URL_HERE with the url you want the webbrowser to navigate to. I added a little bit of error handling as some people computer may not have iexplorer stored on C drive.
    Beat me too it dayum.
     
< Java suggestions | Detect an image, then clicking on that image? >


 
 
Adblock breaks this site