| View previous topic :: View next topic |
| Author |
Message |
vbkid Newbie cheater
Reputation: 0
Joined: 13 Oct 2007 Posts: 10
|
Posted: Tue Oct 16, 2007 6:50 pm Post subject: help on vb 6.0 |
|
|
| hey i need a code for to make the program open internet explorer. i tryed shells put it always comes up at my taskbar. then i have to click on it to see it. i need a code to make it open and show it up. any one help
|
|
| Back to top |
|
 |
kevind23 Master Cheater
Reputation: 0
Joined: 29 Sep 2007 Posts: 456 Location: New York, USA
|
Posted: Tue Oct 16, 2007 7:32 pm Post subject: |
|
|
| Why are you asking this question on a Flash Game forum?
|
|
| Back to top |
|
 |
TheIndianGuy Advanced Cheater
Reputation: 102
Joined: 14 Jan 2007 Posts: 88
|
Posted: Tue Oct 16, 2007 10:00 pm Post subject: |
|
|
| kevind23 wrote: | | Why are you asking this question on a Flash Game forum? |
unless this was moved to general programming its in the correct section
edit: you said you tried shells try once again with this code =)
| Code: | | Shell "C:\program files\internet explorer\IEXPLORE.EXE" |
and if you would like to start a specific website then
| Code: | | Shell "C:\program files\internet explorer\IEXPLORE.EXE http://www.runescape.com" |
|
|
| Back to top |
|
 |
Pseudo Xero I post too much
Reputation: 0
Joined: 16 Feb 2007 Posts: 2607
|
Posted: Tue Oct 16, 2007 11:25 pm Post subject: Re: help on vb 6.0 |
|
|
| vbkid wrote: | | hey i need a code for to make the program open internet explorer. i tryed shells put it always comes up at my taskbar. then i have to click on it to see it. i need a code to make it open and show it up. any one help |
Why don't you open the user's default browser instead?
_________________
| haxory' wrote: | can't VB do anything??
windows is programmed using VB right? correct me if im wrong.
so all things in windows you have like the start menu is a windows form too. |
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Wed Oct 17, 2007 9:29 am Post subject: Re: help on vb 6.0 |
|
|
| vbkid wrote: | | hey i need a code for to make the program open internet explorer. i tryed shells put it always comes up at my taskbar. then i have to click on it to see it. i need a code to make it open and show it up. any one help |
Use ShellExecute instead, it will open the users default browser instead of staticly coding it to open IE the way you guys are currently setting it up.
| 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 |
|
 |
TheIndianGuy Advanced Cheater
Reputation: 102
Joined: 14 Jan 2007 Posts: 88
|
Posted: Wed Oct 17, 2007 4:29 pm Post subject: Re: help on vb 6.0 |
|
|
| Wiccaan wrote: | | vbkid wrote: | | hey i need a code for to make the program open internet explorer. i tryed shells put it always comes up at my taskbar. then i have to click on it to see it. i need a code to make it open and show it up. any one help |
Use ShellExecute instead, it will open the users default browser instead of staticly coding it to open IE the way you guys are currently setting it up.
| 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 |
|
*thumbs up*
|
|
| Back to top |
|
 |
coder sal Master Cheater
Reputation: 0
Joined: 11 May 2007 Posts: 304
|
Posted: Sat Oct 20, 2007 6:50 pm Post subject: |
|
|
nah nah how about this?
| Code: | Shell "C:\program files\internet explorer\IEXPLORE.EXE http://www.hackgym.blogspot.com"
SendKeys "{enter}" |
Now thats a perfect code for your problem
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Sun Oct 21, 2007 12:25 am Post subject: |
|
|
| coder sal wrote: | nah nah how about this?
| Code: | Shell "C:\program files\internet explorer\IEXPLORE.EXE http://www.hackgym.blogspot.com"
SendKeys "{enter}" |
Now thats a perfect code for your problem  |
Again, statically coding something like this will not work for everyone.
Not everyone uses 'C' as their main drive that holds windows. And, you can also rename the program files folder to anything.
|
|
| Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Thu Oct 25, 2007 4:17 pm Post subject: |
|
|
you missed out the ",vbNormalFocus" behind it.
edit: why don't I show you where you put that
Shell "explorer http://www.google.com", vbNormalFocus
_________________
Get kidnapped often. |
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
|
| Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
|
| Back to top |
|
 |
|