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 


Visual Basic 6 opening enternet explorer code

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
vbkid
Newbie cheater
Reputation: 0

Joined: 13 Oct 2007
Posts: 10

PostPosted: Tue Oct 16, 2007 5:47 pm    Post subject: Visual Basic 6 opening enternet explorer code Reply with quote

i need the code for opening enternet explorer
Back to top
View user's profile Send private message
compactwater
I post too much
Reputation: 8

Joined: 02 Aug 2006
Posts: 3923

PostPosted: Tue Oct 16, 2007 5:50 pm    Post subject: Reply with quote

Internet*
And all you've done is request... Try ShellExecute.
Back to top
View user's profile Send private message
Uzeil
Moderator
Reputation: 6

Joined: 21 Oct 2006
Posts: 2411

PostPosted: Tue Oct 16, 2007 5:57 pm    Post subject: Reply with quote

To open the program itself just look for any variation of CreateProcess, although I'm not sure the VB API. Honestly I'm not sure if VB has access to the Windows API, but if it does -- you may use CreateProcess to open up the executable, or ShellExecute if you want to open a URL with the default browser.

Moved to General Programming.

_________________


Mini Engine v3.0
Mipla v1.0

Reposted old threads out of the MS section.
Back to top
View user's profile Send private message
Kumori Guardian
I'm a spammer
Reputation: 0

Joined: 19 Jun 2007
Posts: 6517
Location: http://forum.cheatengine.org/viewtopic.php?t=452539

PostPosted: Tue Oct 16, 2007 6:13 pm    Post subject: Reply with quote

O_O Uzeil is back

you could do

Code:
Shell "C:\Program Files\Internet Explorer\IEXPLORE.EXE"

but it's only for ppl that has IE Very Happy

_________________
Back to top
View user's profile Send private message Visit poster's website
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Tue Oct 16, 2007 6:19 pm    Post subject: Reply with quote

Use ShellExecute with the param of 'open' to get it to open the default browser instead of staticly coding it to open IE.

Code:
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 Form_Load()
    ShellExecute Me.hwnd, "open", "http://www.google.com", vbNullString, vbNullString, SW_SHOWNORMAL
End Sub
Back to top
View user's profile Send private message Visit poster's website
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Tue Oct 16, 2007 7:50 pm    Post subject: Reply with quote

i'm the lazy type and just go shell "explorer (url here)",vbNormalFocus

but you can be a good boy and use ShellExecute

_________________
Get kidnapped often.
Back to top
View user's profile Send private message
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