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 


help on vb 6.0

 
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 6:50 pm    Post subject: help on vb 6.0 Reply with quote

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
View user's profile Send private message
kevind23
Master Cheater
Reputation: 0

Joined: 29 Sep 2007
Posts: 456
Location: New York, USA

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

Why are you asking this question on a Flash Game forum?
Back to top
View user's profile Send private message AIM Address MSN Messenger
TheIndianGuy
Advanced Cheater
Reputation: 102

Joined: 14 Jan 2007
Posts: 88

PostPosted: Tue Oct 16, 2007 10:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Pseudo Xero
I post too much
Reputation: 0

Joined: 16 Feb 2007
Posts: 2607

PostPosted: Tue Oct 16, 2007 11:25 pm    Post subject: Re: help on vb 6.0 Reply with quote

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
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Wed Oct 17, 2007 9:29 am    Post subject: Re: help on vb 6.0 Reply with quote

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
View user's profile Send private message Visit poster's website
TheIndianGuy
Advanced Cheater
Reputation: 102

Joined: 14 Jan 2007
Posts: 88

PostPosted: Wed Oct 17, 2007 4:29 pm    Post subject: Re: help on vb 6.0 Reply with quote

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
View user's profile Send private message
coder sal
Master Cheater
Reputation: 0

Joined: 11 May 2007
Posts: 304

PostPosted: Sat Oct 20, 2007 6:50 pm    Post subject: Reply with quote

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 Very Happy
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: Sun Oct 21, 2007 12:25 am    Post subject: Reply with quote

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 Very Happy


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
View user's profile Send private message Visit poster's website
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Thu Oct 25, 2007 4:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Oct 25, 2007 8:00 pm    Post subject: Reply with quote

blland wrote:
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


He didn't miss anything. The window style is an optional param for the Shell function:



And to let you know, vbNormalFocus isn't the only thing that can be passed as the param in that spot. (Theres a total of 6 different styles that can be passed.)

_________________
- Retired.
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: Fri Oct 26, 2007 12:31 am    Post subject: Reply with quote

Wiccaan wrote:
blland wrote:
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


He didn't miss anything. The window style is an optional param for the Shell function:



And to let you know, vbNormalFocus isn't the only thing that can be passed as the param in that spot. (Theres a total of 6 different styles that can be passed.)


yeah dude, if you leave it optionally unfilled, it's vbMinimizedFocus, exactly how the starter observed as "tryed shells put it always comes up at my taskbar. then i have to click on it to see it". So if he just changes from default vbMinimizedFocus to explicit vbNormalFocus then his problem won't happen no?

_________________
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