| View previous topic :: View next topic |
| Author |
Message |
Mussy69 Grandmaster Cheater
Reputation: 0
Joined: 09 Mar 2007 Posts: 842 Location: Sydney
|
Posted: Thu Oct 25, 2007 5:41 am Post subject: [Microsoft Visual Basics 2008 Express Edition] Hyperlinking |
|
|
Hey guys im working on a Universal Flash Trainer and i wanted 2 commit it to CEF and so yeh i wanted to make a button which leads you to "www.forum.cheatengine.org" and yeh if anyone knows the code or even VB6 Code please PM Me it or reply in this thread for every1 2 see thanks +rep
(VB6 Should Be Similar) and i dun want answers like use Delphi its better cuz yeh im happy wif VB
Edit: o yeh and uhm i've searched and | Code: | Option Explicit
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Private Const SW_SHOWNORMAL = 1
Private Sub Command1_Click()
ShellExecute Me.hwnd, "open", "http://www.cheatengine.org", vbNullString, vbNullString, SW_SHOWNORMAL
End Sub |
dont work for like 3 errors in VB08EE 1 of em is option is not declared or sum shit il go try and redo it and il give u a more specific answer
_________________
|
|
| Back to top |
|
 |
killersamurai Expert Cheater
Reputation: 0
Joined: 10 Sep 2007 Posts: 197 Location: Colorado
|
Posted: Thu Oct 25, 2007 9:51 am Post subject: |
|
|
That code is just wasting space. All you have to do is this:
| Code: |
Private Sub Command1_Click()
Shell ("explorer http://forum.cheatengine.org")
End Sub
|
|
|
| Back to top |
|
 |
nog_lorp Grandmaster Cheater
Reputation: 0
Joined: 26 Feb 2006 Posts: 743
|
Posted: Thu Oct 25, 2007 1:44 pm Post subject: |
|
|
killersamurai, while that is shorter, that runs Internet Explorer regardless of the default browser. The example code Mussy found opens the default browser.
_________________
Mutilated lips give a kiss on the wrist of the worm-like tips of tentacles expanding in my mind
I'm fine accepting only fresh brine you can get another drop of this yeah you wish |
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Thu Oct 25, 2007 2:42 pm Post subject: |
|
|
| killersamurai wrote: | That code is just wasting space. All you have to do is this:
| Code: |
Private Sub Command1_Click()
Shell ("explorer http://forum.cheatengine.org")
End Sub
|
|
As norg_loop pointed out, this wont open the default browser.
@Mussy, the code I wrote that you quoted is for VB6, which usually wont work without some editing. In this case its pretty different in .NET. To open the default browser all you would need to do is:
| Code: | | System.Diagnostics.Process.Start("http://www.cheatengine.org") |
And that should open the default browser.
_________________
- Retired. |
|
| Back to top |
|
 |
Mussy69 Grandmaster Cheater
Reputation: 0
Joined: 09 Mar 2007 Posts: 842 Location: Sydney
|
Posted: Fri Oct 26, 2007 4:52 am Post subject: |
|
|
ok il check it out if it works il +rep u and once i get my rep back il rep da first poster for helping
_________________
|
|
| Back to top |
|
 |
|