F0x's Game Launcher
www.f0xb0t.net.tc
Created By F0x Of The SwiftIRC Network
The Menu Below Contains All The Games I Currently Have, They Are In Default Install Locations. If You Have Them In Different Locations You Will Need To Change The Locations Yourself.
;F0x's Game Launcher
;www.f0xb0t.net.tc
;Created By F0x Of The SwiftIRC Network
;The Menu Below Contains All The Games I Currently Have, They Are In Default Install Locations.
;If You Have Them In Different Locations You Will Need To Change The Locations Yourself.
menu * {
F0x's Game Launcher
.Card Games
..Spider Solitare:/run C:\WINDOWS\system32\spider.exe
..Solitare:/run C:\WINDOWS\system32\sol.exe
..Freecell:/run C:\WINDOWS\system32\freecell.exe
..Hearts:/run C:\WINDOWS\system32\mshearts.exe
..Full Tilt Poker:/run C:\Program Files\Full Tilt Poker\FullTiltPoker.exe
.First Person Shooters
..Battlefield 2:/run C:\Program Files\EA GAMES\Battlefield 2\BF2.exe
..Unreal Tournament:/run C:\Program Files\Unreal Tournament\Unreal Tournament\System\UnrealTournament.exe
..Wolfenstein - Enemy Territory:/run C:\Program Files\Wolfenstein - Enemy Territory\ET.exe
..Soldier Front:/run C:\ijji\ENGLISH\u_sf\soldierfront.exe
..Gunz:/run C:\ijji\ENGLISH\Gunz\Gunz.exe
..F.E.A.R Combat Multiplayer:/run C:\Program Files\Sierra\FEARCombat\FEARMP.exe
..Jedi Knight Jedi Academy
...Single Player:/run C:\Program Files\Star Wars Jedi Knight Jedi Academy\GameData\jasp.exe
...Multi Player:/run C:\Program Files\Star Wars Jedi Knight Jedi Academy\GameData\jamp.exe
.MMORPGs
..Last Chaos:/run C:\AeriaGames\LastChaosUSA\LC.exe
..Runescape (SwiftSwitch):/run C:\Program Files\SwiftSwitch\SwiftSwitch.exe
.Strategy Games
..Empire Earth:/run C:\Program Files\Empire Earth\Empire Earth.exe
..MineSweeper:/run C:\WINDOWS\system32\winmine.exe
..Strategy/Space Fighter
...Allegiance:/run C:\Program Files\Microsoft Games\Allegiance\ASGSClient.exe
.Racing Games
..Midtown Madness 2:/run C:\Program Files\Microsoft Games\Midtown Madness 2\Midtown2.exe
..NFS Underground 2:/run C:\Program Files\EA GAMES\Need for Speed Underground 2\speed2.exe
.Communication
..Teamspeak 2:/run C:\Program Files\Teamspeak2_RC2\TeamSpeak.exe
..Ventrilo:/run C:\Program Files\Ventrilo\Ventrilo.exe
..Xfire:/run C:\Program Files\Xfire\xfire.exe
..GameSpy Arcade:/run C:\Program Files\GameSpy Arcade\Aphex.exe
.Demos
..Medieval 2 Total War:/run C:\Program Files\SEGA\Medieval II Total War Demo SE\medieval2.exe
..Battlefield 2142:/run C:\Program Files\Electronic Arts\Battlefield 2142 Demo\BF2142.exe
}
This snippet isn\'t too great, I\'m sorry. You seem to assume other users have these demos/games installed (some are) to the snippet user\'s computer, or you just got this code from your personal remotes. As the others have already said, it would be much more compatible to use a code as this:
menu channel {
Run application:{
var %t $$sfile(C:\\,Choose an file/application to run:)
run %t
}
}
One problem I do see with this script is that (as you stated in the Introduction), what if the person did not save the game to that directory? You should allow them to locate the .exe file manually using $sfile and setting a variable. This would make it a lot easier then having to type it all out.
Here\'s an example using $sfile:
dialog example {
title \"Example\"
size -1 -1 144 58
option pixels
button \"Find...\", 1, 8 34 46 19
button \"Run\", 2, 85 33 46 19
edit \"\", 3, 8 10 127 20, autohs
}
on *:dialog:example:sclick:1:{
set %Exam $sfile($mircdir*.exe,Locate Game .exe...,Open)
did -ar example 3 %Exam
}
on *:dialog:example:sclick:2:{
.run $did(example,3).text
}