Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Microsoft Visual Basics 2008 Express Edition] Hyperlinking

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Mussy69
Grandmaster Cheater
Reputation: 0

Joined: 09 Mar 2007
Posts: 842
Location: Sydney

PostPosted: Thu Oct 25, 2007 5:41 am    Post subject: [Microsoft Visual Basics 2008 Express Edition] Hyperlinking Reply with quote

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
View user's profile Send private message AIM Address
killersamurai
Expert Cheater
Reputation: 0

Joined: 10 Sep 2007
Posts: 197
Location: Colorado

PostPosted: Thu Oct 25, 2007 9:51 am    Post subject: Reply with quote

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
View user's profile Send private message
nog_lorp
Grandmaster Cheater
Reputation: 0

Joined: 26 Feb 2006
Posts: 743

PostPosted: Thu Oct 25, 2007 1:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Oct 25, 2007 2:42 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Mussy69
Grandmaster Cheater
Reputation: 0

Joined: 09 Mar 2007
Posts: 842
Location: Sydney

PostPosted: Fri Oct 26, 2007 4:52 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites