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]Code for openings......
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Pepsiguy
I post too much
Reputation: 0

Joined: 16 Aug 2007
Posts: 2016

PostPosted: Tue Dec 04, 2007 6:33 pm    Post subject: [vb6]Code for openings...... Reply with quote

i need a code that opens a certain file with just 1 click Wink
also a code to open a web with ur default browser

_________________
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: Tue Dec 04, 2007 6:45 pm    Post subject: Re: [vb6]Code for openings...... Reply with quote

pepsiguy_2 wrote:
i need a code that opens a certain file with just 1 click Wink
also a code to open a web with ur default browser


Try searching next time, the browser quesiton / code has been asked and answered a ton of times already.

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 Sub Command1_Click()
    ShellExecute Me.hwnd, "open", "http://www.google.com", vbNullString, vbNullString, 1
End Sub


As for opening a file. That depends on the file type and what you want to do with it.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Pepsiguy
I post too much
Reputation: 0

Joined: 16 Aug 2007
Posts: 2016

PostPosted: Tue Dec 04, 2007 7:49 pm    Post subject: Reply with quote

asi if there were a button that said Macro it would open macro.exe like open the program not open it on your app
_________________
Back to top
View user's profile Send private message
Blader
I post too much
Reputation: 2

Joined: 19 Jan 2007
Posts: 2049

PostPosted: Tue Dec 04, 2007 7:58 pm    Post subject: Reply with quote

You use shell command

Shell "Link to macro.exe"

_________________
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Tue Dec 04, 2007 7:59 pm    Post subject: Reply with quote

CreateProcessA
_________________
Back to top
View user's profile Send private message
Pepsiguy
I post too much
Reputation: 0

Joined: 16 Aug 2007
Posts: 2016

PostPosted: Tue Dec 04, 2007 9:18 pm    Post subject: Reply with quote

what i dont undastand
_________________
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 Dec 04, 2007 9:38 pm    Post subject: Reply with quote

sponge wrote:
CreateProcessA

He can't work off of API names, he needs the exact code. Rolling Eyes

_________________
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
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Tue Dec 04, 2007 9:38 pm    Post subject: Reply with quote

Xenephobe wrote:
sponge wrote:
CreateProcessA

He can't work off of API names, he needs the exact code. Rolling Eyes

Then he shouldn't be programming.

@pepsiguy gtfo please.

_________________
Back to top
View user's profile Send private message
Pepsiguy
I post too much
Reputation: 0

Joined: 16 Aug 2007
Posts: 2016

PostPosted: Tue Dec 04, 2007 9:41 pm    Post subject: Reply with quote

then where do i go Question Laughing
_________________
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Tue Dec 04, 2007 9:43 pm    Post subject: Reply with quote

pepsiguy_2 wrote:
then where do i go Question Laughing


http://www.vbforums.com/

They will welcome you with open arms.
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 Dec 04, 2007 9:44 pm    Post subject: Reply with quote

sponge wrote:
Xenephobe wrote:
sponge wrote:
CreateProcessA

He can't work off of API names, he needs the exact code. Rolling Eyes

Then he shouldn't be programming.

@pepsiguy gtfo please.

Exactly my point, but then again, he is using VB. Cool

_________________
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
Pepsiguy
I post too much
Reputation: 0

Joined: 16 Aug 2007
Posts: 2016

PostPosted: Tue Dec 04, 2007 9:45 pm    Post subject: Reply with quote

the only reason im using VB is because i dont got room for "delphi or c and shit"
_________________
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Tue Dec 04, 2007 9:46 pm    Post subject: Reply with quote

did we not say already to leave?

on a side note... you must have small capabilities if your brain cannot handle a language that is not VB Rolling Eyes

_________________
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: Tue Dec 04, 2007 10:08 pm    Post subject: Reply with quote

pepsiguy_2 wrote:
the only reason im using VB is because i dont got room for "delphi or c and shit"


Then delete shit off your system so you can fit other things. You shouldn't even bother attempting to program if you don't have space for things.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Devilizer
Master Cheater
Reputation: 0

Joined: 22 Jun 2007
Posts: 451

PostPosted: Wed Dec 05, 2007 8:33 am    Post subject: Reply with quote

Wiccaan wrote:
pepsiguy_2 wrote:
the only reason im using VB is because i dont got room for "delphi or c and shit"


Then delete shit off your system so you can fit other things. You shouldn't even bother attempting to program if you don't have space for things.

He should delete his system32, problem sloved.
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
Goto page 1, 2  Next
Page 1 of 2

 
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