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 


vb6 button?

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

Joined: 19 Nov 2007
Posts: 255

PostPosted: Fri Dec 21, 2007 3:43 pm    Post subject: vb6 button? Reply with quote

Can someone give me the code for a vb6 button to go to a website url? like open up the interent?

Thanks +rep if works

_________________


Go check it out. Good Hacks
Back to top
View user's profile Send private message AIM Address
Blader
I post too much
Reputation: 2

Joined: 19 Jan 2007
Posts: 2049

PostPosted: Fri Dec 21, 2007 3:46 pm    Post subject: Reply with quote

Declare stuff:
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 Const SW_SHOWMAXIMIZED = 3


Now in a button code:
Code:
ShellExecute ByVal 0&, "open", _
    "http://forum.cheatengine.org", _
    vbNullString, vbNullString, _
    SW_SHOWMAXIMIZED


Replace the cheatengine forum site with your website

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

Joined: 19 Nov 2007
Posts: 255

PostPosted: Fri Dec 21, 2007 3:49 pm    Post subject: Reply with quote

its not working.. where do i put that code in?
_________________


Go check it out. Good Hacks
Back to top
View user's profile Send private message AIM Address
Blader
I post too much
Reputation: 2

Joined: 19 Jan 2007
Posts: 2049

PostPosted: Fri Dec 21, 2007 3:50 pm    Post subject: Reply with quote

The first code you put anywhere, and the second code goes in a button click event
_________________
Back to top
View user's profile Send private message
torpin005
Master Cheater
Reputation: 0

Joined: 19 Nov 2007
Posts: 255

PostPosted: Fri Dec 21, 2007 3:52 pm    Post subject: Reply with quote

ohh thanks... It syas that i have to rep some one else before i rep u again? have i repped u before?
_________________


Go check it out. Good Hacks
Back to top
View user's profile Send private message AIM Address
Blader
I post too much
Reputation: 2

Joined: 19 Jan 2007
Posts: 2049

PostPosted: Fri Dec 21, 2007 3:54 pm    Post subject: Reply with quote

Not sure, but on saturday you did
_________________
Back to top
View user's profile Send private message
torpin005
Master Cheater
Reputation: 0

Joined: 19 Nov 2007
Posts: 255

PostPosted: Fri Dec 21, 2007 3:55 pm    Post subject: Reply with quote

o i guess i havent repped anyone else since then...
_________________


Go check it out. Good Hacks
Back to top
View user's profile Send private message AIM Address
Blader
I post too much
Reputation: 2

Joined: 19 Jan 2007
Posts: 2049

PostPosted: Fri Dec 21, 2007 3:57 pm    Post subject: Reply with quote

Don't worry, you don't have to rep me Wink
_________________
Back to top
View user's profile Send private message
torpin005
Master Cheater
Reputation: 0

Joined: 19 Nov 2007
Posts: 255

PostPosted: Fri Dec 21, 2007 4:21 pm    Post subject: Reply with quote

ok thanks
_________________


Go check it out. Good Hacks
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