View previous topic :: View next topic |
Author |
Message |
Pepsiguy I post too much
Reputation: 0
Joined: 16 Aug 2007 Posts: 2016
|
Posted: Tue Dec 04, 2007 6:33 pm Post subject: [vb6]Code for openings...... |
|
|
i need a code that opens a certain file with just 1 click
also a code to open a web with ur default browser
_________________
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Tue Dec 04, 2007 6:45 pm Post subject: Re: [vb6]Code for openings...... |
|
|
pepsiguy_2 wrote: | i need a code that opens a certain file with just 1 click
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 |
|
 |
Pepsiguy I post too much
Reputation: 0
Joined: 16 Aug 2007 Posts: 2016
|
Posted: Tue Dec 04, 2007 7:49 pm Post subject: |
|
|
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 |
|
 |
Blader I post too much
Reputation: 2
Joined: 19 Jan 2007 Posts: 2049
|
Posted: Tue Dec 04, 2007 7:58 pm Post subject: |
|
|
You use shell command
Shell "Link to macro.exe"
_________________
|
|
Back to top |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Tue Dec 04, 2007 7:59 pm Post subject: |
|
|
CreateProcessA
_________________
|
|
Back to top |
|
 |
Pepsiguy I post too much
Reputation: 0
Joined: 16 Aug 2007 Posts: 2016
|
Posted: Tue Dec 04, 2007 9:18 pm Post subject: |
|
|
what i dont undastand
_________________
|
|
Back to top |
|
 |
Pseudo Xero I post too much
Reputation: 0
Joined: 16 Feb 2007 Posts: 2607
|
Posted: Tue Dec 04, 2007 9:38 pm Post subject: |
|
|
sponge wrote: | CreateProcessA |
He can't work off of API names, he needs the exact code.
_________________
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 |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Tue Dec 04, 2007 9:38 pm Post subject: |
|
|
Xenephobe wrote: | sponge wrote: | CreateProcessA |
He can't work off of API names, he needs the exact code.  |
Then he shouldn't be programming.
@pepsiguy gtfo please.
_________________
|
|
Back to top |
|
 |
Pepsiguy I post too much
Reputation: 0
Joined: 16 Aug 2007 Posts: 2016
|
Posted: Tue Dec 04, 2007 9:41 pm Post subject: |
|
|
then where do i go
_________________
|
|
Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Tue Dec 04, 2007 9:43 pm Post subject: |
|
|
pepsiguy_2 wrote: | then where do i go  |
http://www.vbforums.com/
They will welcome you with open arms.
|
|
Back to top |
|
 |
Pseudo Xero I post too much
Reputation: 0
Joined: 16 Feb 2007 Posts: 2607
|
Posted: Tue Dec 04, 2007 9:44 pm Post subject: |
|
|
sponge wrote: | Xenephobe wrote: | sponge wrote: | CreateProcessA |
He can't work off of API names, he needs the exact code.  |
Then he shouldn't be programming.
@pepsiguy gtfo please. |
Exactly my point, but then again, he is using VB.
_________________
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 |
|
 |
Pepsiguy I post too much
Reputation: 0
Joined: 16 Aug 2007 Posts: 2016
|
Posted: Tue Dec 04, 2007 9:45 pm Post subject: |
|
|
the only reason im using VB is because i dont got room for "delphi or c and shit"
_________________
|
|
Back to top |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Tue Dec 04, 2007 9:46 pm Post subject: |
|
|
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
_________________
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Tue Dec 04, 2007 10:08 pm Post subject: |
|
|
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 |
|
 |
Devilizer Master Cheater
Reputation: 0
Joined: 22 Jun 2007 Posts: 451
|
Posted: Wed Dec 05, 2007 8:33 am Post subject: |
|
|
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 |
|
 |
|