GTAStunting

General => General Discussion => Expression Section => Topic started by: Cody on January 12, 2008, 12:02:21 PM

Title: 5 Choice Launcher
Post by: Cody on January 12, 2008, 12:02:21 PM


Instructions:
Download "StormLauncher v1 Unedited.bat", right click the file, click edit, and then edit the things like myprog1, myprog2, ect.. with the programs you want to launch.

Like if you wanted to launch something like IE it'd be like:

Code: [Select]
set prog1=IEXPLORE.EXE
set prog1name=Internet Explorer

or if you wanted to open something like windows messenger it'd be like this.
NOTE: you only neet to put your URL in quotes if it has a space in it.

Code: [Select]
set prog3="C:\Program Files\Messenger" msmsgs.exe
set prog3name=Windows Messenger

Simple enough, honestly.  
If you're still having trouble download "StormLauncher Example" or PM/MSN me.

Source for StormLauncher v1 Unedited:
@echo off
:OPTIONS! This is the only thing you need to edit, although if you wish to you may edit the actual coding.\\\
:but make sure you know what you're doing\\\

:Launch Program 1\\
set prog1=myProgram1
set prog1name=Prog1Name
:----------------//

:Launch Program 2\\
set prog2=myProgram2
set prog2name=Prog2Name
:----------------//

:Launch Program 3\\
set prog3=myProgram3
set prog3name=Prog3Name
:----------------//

:Launch Program 4\\
set prog4=myProgram4
set prog4name=Prog4Name
:----------------//

:Launch Program 5\\
set prog5=myProgram5
set prog5name=Prog5Name
:----------------//
cls

:/code, only edit if you know what you're doing./
:
title StormLauncher v1.0
echo ///The StormLauncher v1 \\\
echo \\\Created by Stormlexer///
echo .
:echos the program names and asks for a program.
echo 1.%prog1name%
echo 2.%prog2name%
echo 3.%prog3name%
echo 4.%prog4name%
echo 5.%prog5name%
set /p var=Select A Program Number!:

:The IF Selections.
if "%var%"=="1" GOTO launch1
if "%var%"=="2" GOTO launch2
if "%var%"=="3" GOTO launch3
if "%var%"=="4" GOTO launch4
if "%var%"=="5" GOTO launch5

:The Launching of the programs

:launch1
cls
start %prog1%
echo Launching %prog1name%!
GOTO endofprog

:launch2
cls
start %prog2%
echo Launching %prog2name%!
GOTO endofprog

:launch3
cls
start %prog3%
echo Launching %prog3name%!
GOTO endofprog

:launch4
cls
start %prog4%
echo Launching %prog4name%!
GOTO endofprog

:launch5
cls
start %prog5%
echo Launching %prog5name%!
GOTO endofprog

:endofprog
echo Exiting.
exit


Source for StormLauncher Example:
@echo off
:^ignore that

:OPTIONS! This is the only thing you need to edit, although if you wish to you may edit the actual coding.\\\
:but make sure you know what you're doing\\\

:Launch Program 1\\
set prog1=IEXPLORE.EXE
set prog1name=Internet Explorer
:----------------//

:Launch Program 2\\
set prog2="C:\Program Files\Notepad++\" notepad++.exe
set prog2name=Notepad++
:----------------//

:Launch Program 3\\
set prog3="C:\Program Files\Messenger" msmsgs.exe
set prog3name=Windows Messenger
:----------------//

:Launch Program 4\\
set prog4=C:\ijji\ENGLISH\Gunz\GunzLauncher.exe
set prog4name=Gunz: The Duel
:----------------//

:Launch Program 5\\
set prog5=C:\Dev-C++\devcpp.exe
set prog5name=Dev-C++
:----------------//
cls






:/code, only edit if you know what you're doing./
:
title StormLauncher v1.0
echo ///The StormLauncher v1 \\\
echo \\\Created by Stormlexer///
echo .
:echos the program names and asks for a program.
echo 1.%prog1name%
echo 2.%prog2name%
echo 3.%prog3name%
echo 4.%prog4name%
echo 5.%prog5name%
set /p var=Select A Program Number!:

:The IF Selections.
if "%var%"=="1" GOTO launch1
if "%var%"=="2" GOTO launch2
if "%var%"=="3" GOTO launch3
if "%var%"=="4" GOTO launch4
if "%var%"=="5" GOTO launch5

:The Launching of the programs

:launch1
cls
start %prog1%
echo Launching %prog1name%!
GOTO endofprog

:launch2
cls
start %prog2%
echo Launching %prog2name%!
GOTO endofprog

:launch3
cls
start %prog3%
echo Launching %prog3name%!
GOTO endofprog

:launch4
cls
start %prog4%
echo Launching %prog4name%!
GOTO endofprog

:launch5
cls
start %prog5%
echo Launching %prog5name%!
GOTO endofprog

:end of the program

:endofprog
echo Exiting.
exit


Download dem:
Title: 5 Choice Launcher
Post by: PheoniX on January 12, 2008, 12:28:24 PM
Gonna download, see if i can learn anything
Title: 5 Choice Launcher
Post by: Ocean on January 12, 2008, 12:28:53 PM
I'm to go ahead and say what 90% of the forum is thinking.

What?
Title: 5 Choice Launcher
Post by: Cody on January 12, 2008, 01:50:20 PM
Quote from: Ocean
I'm to go ahead and say what 90% of the forum is thinking.

What?

Quote
I did another thing in batch cause I was bored.
Title: 5 Choice Launcher
Post by: unreal on January 12, 2008, 02:21:38 PM
Batch files can be really useful, ive made a few of them. Very boring in my opinion though lol.

Cool little tool, thanks. I might use it.
Title: 5 Choice Launcher
Post by: Cody on January 12, 2008, 04:15:38 PM
I wouldn't use it myself tbh.
Title: 5 Choice Launcher
Post by: unreal on January 12, 2008, 04:23:33 PM
Its probarbly easier to go to the program its self lol, I was just being nice  
Title: 5 Choice Launcher
Post by: Cody on January 12, 2008, 04:35:01 PM
Quote from: unreal
Its probarbly easier to go to the program its self lol, I was just being nice  
I know, thats why I'm not gonna use it.
Title: 5 Choice Launcher
Post by: PheoniX on January 12, 2008, 04:46:06 PM
Ey Storm, i've got this so it loads media player up, but is there any way it could load a playlist ?
Title: 5 Choice Launcher
Post by: Aries on January 12, 2008, 04:52:41 PM
Tis cool your having fun and making useful things man. Obviously there are better things to code a launcher in, like VB or somin, but still well done
Title: 5 Choice Launcher
Post by: unreal on January 12, 2008, 05:20:38 PM
Quote from: Aries
Tis cool your having fun and making useful things man. Obviously there are better things to code a launcher in, like VB or somin, but still well done


VB is better for more powerful launchers with more options however for more simple applications like this one it is better to use DOS in my opionion.
Title: 5 Choice Launcher
Post by: Cody on January 14, 2008, 08:29:40 AM
Quote from: PheoniX
Ey Storm, i've got this so it loads media player up, but is there any way it could load a playlist ?
I think so, this might work..

start "dir of program" program.exe -playlistname.filetype
I'm not sure it'll work but it's worth a shot.

Quote from: Aries
Tis cool your having fun and making useful things man. Obviously there are better things to code a launcher in, like VB or somin, but still well done
I'm learning C++. I like to make little things with batch every now and then for the hell of it.
Title: 5 Choice Launcher
Post by: Tackleberry on January 14, 2008, 09:02:47 AM
I'm just wondering, why would people use this tool and when? I don't want to sound like I don't like it, I just can't think of when I would use it.
Title: 5 Choice Launcher
Post by: Cody on January 14, 2008, 10:05:06 AM
Quote from: Tackleberry
I'm just wondering, why would people use this tool and when? I don't want to sound like I don't like it, I just can't think of when I would use it.
I don't know either, I'd rather just hit an icon, I was just experimenting with batch more.
Title: 5 Choice Launcher
Post by: GT-7 on January 14, 2008, 10:13:56 AM
Nice tool, but meh.. im not going to use it
Title: 5 Choice Launcher
Post by: Aries on January 14, 2008, 10:16:35 AM
Sorry if it came across like I didn't get why you were doing it. It's cool your experimenting man
Title: 5 Choice Launcher
Post by: Brainkiller on January 14, 2008, 10:29:15 AM
Hmmm might be handy when i wanna play SA.

I need to open

GTASACC
Pizzatrainer
Camhack
Car spawner
Fraps

but i'd rather just click one icon and all of them open rather than this thing were you open it then select which programs to load... any help?
Title: 5 Choice Launcher
Post by: Cody on January 14, 2008, 01:46:15 PM
Yeah that'd be easy to do.

@echo off
start "program dir" program.exe
start "program dir" program.exe
start "program dir" program.exe
start "program dir" program.exe
start "program dir" program.exe
exit

SimplePortal 2.3.7 © 2008-2025, SimplePortal