Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Making a menu with Visual Basic 6.0 needhelp!!!!!!

Author
Message
the programmer
18
Years of Service
User Offline
Joined: 5th Jan 2006
Location:
Posted: 12th Sep 2006 02:48
Well i was making a manu with visual basic 6.0 for my fpsc game, im a beginner with the software and i really need to no "how do i make the button link to exe files"
so that when the button is pressed it opens my game?

I no this is alittle off topic but ive seen some screen shots with visual basic 6.0 menus, so if anybody nows this code please help!

cheers !!!!!!!

The Programmer

FOR ALL VISUAL BASIC 6.0 users
Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 12th Sep 2006 14:48
...

Try the Shell("MyExe.exe") command...

bdgbdg
18
Years of Service
User Offline
Joined: 30th Jul 2006
Location:
Posted: 12th Sep 2006 15:02
That command might not work. It depends where you have the FPSC game and that program:

You might need to have this code:



Project FPS - 71%
Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 12th Sep 2006 15:17
...

hehe.

Shell can be used in all forms.

Shell("C:\Program Files\MyGame.exe")
Shell("MyFolder\MyGame.exe")

both works...

the programmer
18
Years of Service
User Offline
Joined: 5th Jan 2006
Location:
Posted: 13th Sep 2006 03:04
Thank you all so much im off and running, thank you alot.

cheers to all

the programmer
Hayer
19
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 15th Sep 2006 17:01
lol... VB 6 old times...
In VB 6.0 i dont think u can use the shell cmd.
Right now i dont remember the cmd for VB 6.0 but with
VB.Net you can use the Shell cmd

Mess with the bests, die like the restes!
bdgbdg
18
Years of Service
User Offline
Joined: 30th Jul 2006
Location:
Posted: 15th Sep 2006 17:03
In VB 6.0 there is a shell command, and it works. I have VB 6.0

Project FPS - 71%
Rocky Raccoon
18
Years of Service
User Offline
Joined: 10th Aug 2006
Location: King, NC USA
Posted: 26th Sep 2006 01:45
I've written my own VB6.0 FPSC launcher too.

Here's what I use to launch the HTML help file.

'in your form module
'for shell out to a file
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
Const SW_SHOWNORMAL = 1

'behind your command button
ShellExecute Me.hWnd, vbNullString, "index.htm", vbNullString, App.Path & "\help\", SW_SHOWNORMAL

Change the ShellExecute line above to suit your needs

If you need more help... check out www.allapi.net

Good Luck!

Rocky Raccoon
Slickboy
18
Years of Service
User Offline
Joined: 19th Jul 2006
Location:
Posted: 8th Oct 2006 18:13
Visual basic rules dude i use that to make games sometimes

Slickboy
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 10th Oct 2006 05:35 Edited at: 10th Oct 2006 05:41
This code worked for me in VB 5 Enterprise Edition



Declared myexe as a string to hold the path of the desired exe.
Assigned value of the path.
Called the shell(myexe) to run it.


Don't forget to visit Conjured Entertainment
Silent Thunder
18
Years of Service
User Offline
Joined: 6th Feb 2006
Location: The Ship
Posted: 10th Oct 2006 07:10
um, slickboy, why did you bump this?

Login to post a reply

Server time is: 2024-11-23 01:16:10
Your offset time is: 2024-11-23 01:16:10