| View previous topic :: View next topic |
| Author |
Message |
vbkid Newbie cheater
Reputation: 0
Joined: 13 Oct 2007 Posts: 10
|
Posted: Tue Oct 16, 2007 5:47 pm Post subject: Visual Basic 6 opening enternet explorer code |
|
|
| i need the code for opening enternet explorer |
|
| Back to top |
|
 |
compactwater I post too much
Reputation: 8
Joined: 02 Aug 2006 Posts: 3923
|
Posted: Tue Oct 16, 2007 5:50 pm Post subject: |
|
|
Internet*
And all you've done is request... Try ShellExecute. |
|
| Back to top |
|
 |
Uzeil Moderator
Reputation: 6
Joined: 21 Oct 2006 Posts: 2411
|
Posted: Tue Oct 16, 2007 5:57 pm Post subject: |
|
|
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. _________________
|
|
| Back to top |
|
 |
Kumori Guardian I'm a spammer
Reputation: 0
Joined: 19 Jun 2007 Posts: 6517 Location: http://forum.cheatengine.org/viewtopic.php?t=452539
|
Posted: Tue Oct 16, 2007 6:13 pm Post subject: |
|
|
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  _________________
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Tue Oct 16, 2007 6:19 pm Post subject: |
|
|
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 |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Tue Oct 16, 2007 7:50 pm Post subject: |
|
|
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 |
|
 |
|