• Log in or sign up for an account here: https://www.sythe.org/login

Is this possible?

CheapPins

Member
Joined
Apr 26, 2010
Sythe Gold
0
Messages
66
Whatimworkingon.png

Updated with background:
Nowforcoding.png

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.
Private Sub Command1_Click()

End Sub

Private Sub Command2_Click()

End Sub

Private Sub Command3_Click()

End Sub

Private Sub Command4_Click()

End Sub

Private Sub Command5_Click()

End Sub

Private Sub Form_Load()

End Sub

Private Sub Image1_Click()

End Sub
 
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.
 
is it a webclient?
 
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.
 
Le Monkey
Potamus
Prove it!
Sythe Awards 2011 Winner
Tier 1 Prizebox
Tortoise Penis
Trole
UWotM8?
Wait, do you not have an Archer rank?
Use %ProgramFiles% instead it automatically translates to <Windows Drive>:\Program Files
 
Le Monkey
Potamus
Prove it!
Sythe Awards 2011 Winner
Tier 1 Prizebox
Tortoise Penis
Trole
UWotM8?
Wait, do you not have an Archer rank?
Unfortunately it doesn't work in VB6 :(

Oh didnt know that my bad.

There's also the GetEnvironmentVariable API call.
 
Everything is possible. Google it.
 
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!
 
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.
 
Runescape Gamblingrunescape gambling
Back
Top