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 


How do I open a web page from a button click? [VB6]

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

Joined: 05 Jul 2007
Posts: 354
Location: Quahog, Rhode Island

PostPosted: Fri May 02, 2008 8:36 am    Post subject: How do I open a web page from a button click? [VB6] Reply with quote

/topic
_________________

"I myself am made entirely of flaws, stitched together with good intentions." - Augusten Burroughs
Back to top
View user's profile Send private message AIM Address
92Garfield
I'm a spammer
Reputation: 57

Joined: 20 Dec 2007
Posts: 5871
Location: Banana Republic Germany

PostPosted: Fri May 02, 2008 8:41 am    Post subject: Reply with quote

in components there is a webbrowser element
add it to form
then use
webbrowser.navigate ("url")
or sth similar

_________________
Back to top
View user's profile Send private message
Typhoon808
Expert Cheater
Reputation: 0

Joined: 27 Mar 2008
Posts: 175
Location: Wales

PostPosted: Fri May 02, 2008 9:18 am    Post subject: Reply with quote

You can also use Shell("explorer.exe http://www.cheatengine.org/").
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: Fri May 02, 2008 10:00 am    Post subject: Reply with quote

While Shell requires no extra defines and such, ShellExecute will use the systems default browser:

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 Sub Command1_Click()
    ShellExecute vbNull, "open", "http://www.google.com", vbNull, vbNull, vbNull
End Sub

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
AdamWest
Master Cheater
Reputation: 0

Joined: 05 Jul 2007
Posts: 354
Location: Quahog, Rhode Island

PostPosted: Fri May 02, 2008 1:33 pm    Post subject: Reply with quote

It's solved guys, thanks though XD
_________________

"I myself am made entirely of flaws, stitched together with good intentions." - Augusten Burroughs
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