Skip to content

Commit 0d7dd94

Browse files
committed
Update AutoRunWithCMD.cmd
Add a sorta help me, fix a few things, and improve things. (Mainly removes the "Yes", "yes", "no", and "No" options from the menus as it only accepts one character so they would be redundant anyways.
1 parent 3ef2491 commit 0d7dd94

File tree

1 file changed

+26
-20
lines changed

1 file changed

+26
-20
lines changed

AutoRunWithCMD.cmd

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,16 @@ goto :MainMenu
3434

3535

3636
:: Launches if the previous code detects that this is your first time launching the program
37+
@echo off
3738
:FirstTimeUser
3839
title Do you want a tutorial?
39-
echo.Hey! You seem like you ran this program for the first time! Would you like a tutorial on how to navigate?
40+
echo.Hey! You seem like you ran this program for the first time! Would you like a tutorial on how to use the program?
4041
set /p wantsTutorial=
4142
if not '%wantsTutorial%'=='' set choice=%wantsTutorial:~0,1%
4243
if '%wantsTutorial%'=='y' goto :wantsTutorial
4344
if '%wantsTutorial%'=='Y' goto :wantsTutorial
44-
if '%wantsTutorial%'=='Yes' goto :wantsTutorial
45-
if '%wantsTutorial%'=='yes' goto :wantsTutorial
4645
if '%wantsTutorial%'=='n' goto :noTutorial
4746
if '%wantsTutorial%'=='N' goto :noTutorial
48-
if '%wantsTutorial%'=='no' goto :noTutorial
49-
if '%wantsTutorial%'=='No' goto :noTutorial
5047
ECHO. "%wantsTutorial%" is not a valid option, please try again.
5148
goto :FirstTimeUser
5249
ECHO.
@@ -58,8 +55,6 @@ set /p wantsTutorial=
5855
if not '%wantsTutorial%'=='' set choice=%wantsTutorial:~0,1%
5956
if '%wantsTutorial%'=='y' goto :wantsTutorial
6057
if '%wantsTutorial%'=='Y' goto :wantsTutorial
61-
if '%wantsTutorial%'=='Yes' goto :wantsTutorial
62-
if '%wantsTutorial%'=='yes' goto :wantsTutorial
6358
if '%wantsTutorial%'=='n' goto :noTutorial
6459
if '%wantsTutorial%'=='N' goto :noTutorial
6560
if '%wantsTutorial%'=='no' goto :noTutorial
@@ -74,19 +69,15 @@ set /p isSureofNoTutorial=
7469
if not '%isSureofNoTutorial%'=='' set choice=%isSureofNoTutorial:~0,1%
7570
if '%isSureofNoTutorial%'=='y' goto :isSureofNoTutorial
7671
if '%isSureofNoTutorial%'=='Y' goto :isSureofNoTutorial
77-
if '%isSureofNoTutorial%'=='Yes' goto :isSureofNoTutorial
78-
if '%isSureofNoTutorial%'=='yes' goto :isSureofNoTutorial
7972
if '%isSureofNoTutorial%'=='n' goto :FirstTimeUser
8073
if '%isSureofNoTutorial%'=='N' goto :FirstTimeUser
81-
if '%isSureofNoTutorial%'=='no' goto :FirstTimeUser
82-
if '%isSureofNoTutorial%'=='No' goto :FirstTimeUser
8374
ECHO. "%isSureofNoTutorial%" is not a valid option, please try again.
8475
goto :noTutorial
8576
ECHO.
8677

8778
:isSureofNoTutorial
8879
cls
89-
echo Alright, just go to Help (5) and then Tutorial (2) to view it if you ever want to!
80+
echo Alright, just go to Help (5) and then Tutorial (1) to view it if you ever want to!
9081
goto :MainMenu
9182

9283

@@ -113,7 +104,8 @@ echo. 4: Get your public IP!
113104
echo. 5: Check network statistics!
114105
echo. 8: Settings
115106
echo. 9: Access Help
116-
set /p choice= Your choice?=
107+
echo.Which do you want?
108+
set /p choice=
117109
if not '%choice%'=='' set choice=%choice:~0,1%
118110
if '%choice%'=='1' goto :GoToRegularCMD
119111
if '%choice%'=='2' goto :PingGoogle
@@ -128,6 +120,18 @@ ECHO.
128120
goto :Choice
129121
echo.>EndOfChoiceTriggered.txt
130122

123+
:Help
124+
echo.
125+
title What do you need help with?
126+
echo. Hello! Select an option to get help for that topic.
127+
echo.
128+
echo. 1: Tutorial (unfinished)
129+
echo. 2: Nothing yet
130+
echo.Which do you want?
131+
set /p HelpChoice=
132+
if not '%HelpChoice%'=='' set HelpChoice=%HelpChoice:~0,1%
133+
if '%HelpChoice%'=='1' goto :wantsTutorial
134+
if '%HelpChoice%'=='1' goto :Nothing
131135

132136
:CurlIPme
133137
@echo off
@@ -183,12 +187,13 @@ goto :noDebug
183187

184188

185189
:noDebug
186-
echo No debug 4 u
187-
:: Causes about a 0.25 second pause
188-
ping techflash.ga -n 1 > nul
189-
goto :noDebug
190+
@echo off
191+
cls
192+
echo No debug if you don't accept the aggreement.
193+
goto :MainMenu
190194

191195
:realDebug
196+
@echo off
192197
echo.
193198
echo Nothing here yet, currently working on the main menu.
194199
echo.Press any key to go back to the Main menu.
@@ -199,15 +204,16 @@ goto :MainMenu
199204
:Settings
200205
@echo off
201206
cls
202-
echo.Welcome to the settings menu! Here you can modify some settings!
207+
echo.Welcome to the settings menu!
208+
echo.Here you can modify some settings!
203209
echo.
204210
echo.1: Modify the default color when you start the script.
205211
echo.2: Not yet created just felt like adding this here. :P
206212
set /p SettingsChoice=
207213
if '%SettingsChoice%'=='1' goto :color
208214
if '%isSureOfDebugOptions%'=='2' goto :Nothing
209215

210-
:: A label used for when I wanted to add an option but it isn't implemented yet or is in a state where it can't be used.
216+
:: A label used for when I wanted to add an option but it isn't implemented yet or is in a state where it can't be used. Or if I just haven't though of anything to put in that slot yet.
211217
:Nothing
212218
@echo off
213219
echo Nothing here yet! There might be soon O_O
@@ -219,7 +225,7 @@ goto :Settings
219225
:color
220226
@echo off
221227
cls
222-
echo.Welcome to the color selection menu! (BROKEN)
228+
echo.Welcome to the color selection menu! (kinda janky but it works)
223229
echo.Please enter a Command Prompt-format color code.
224230
set /p ColorCode=
225231
echo.Great! Does this look good?

0 commit comments

Comments
 (0)