Simple Aos favorite menu
Posted: Sun Jun 16, 2013 7:38 pm
by J2D2
Hello hello , boyz and girls , this is ande...
wait nevermind
Hello , everyone ! im here to show you a very simple AOS favorite server list
i made it with cmd. if you dont trust me , here's the code :
Here's the download link :
http://www.mediafire.com/?ohadz1wbzkwbbc1
Put it in a separate folder or it will spam with text files !
have fun !
wait nevermind
Hello , everyone ! im here to show you a very simple AOS favorite server list
i made it with cmd. if you dont trust me , here's the code :
Spoiler:
@echo off
:refresh1
REM ---- reading the favorite name variables
for /f "Delims=" %%a in (zq.txt) do (
set a=%%a
)
for /f "Delims=" %%a in (xq.txt) do (
set b=%%a
)
for /f "Delims=" %%a in (dq.txt) do (
set c=%%a
)
for /f "Delims=" %%a in (vq.txt) do (
set d=%%a
)
for /f "Delims=" %%a in (tq.txt) do (
set t=%%a
)
for /f "Delims=" %%a in (nq.txt) do (
set f=%%a
)
for /f "Delims=" %%a in (mq.txt) do (
set g=%%a
)
for /f "Delims=" %%a in (lq.txt) do (
set h=%%a
)
for /f "Delims=" %%a in (pq.txt) do (
set i=%%a
)
:start
REM ---- menu
cls
echo.
echo J2D2's AOS utility
echo ____________________________________________________________
echo ============================================================
echo Commands :
echo Command Function
echo -(1 to 9) Starts the server associated with the number
echo - add Adds a server to the list
echo -reset Resets the list
echo -ref / refresh refresh the server list (use after reset)
echo -exit Quit the menu
echo. (Don't mind if it says echo command is on / off)
echo.
echo 1 %a%
echo 2 %b%
echo 3 %c%
echo 4 %d%
echo 5 %t%
echo 6 %f%
echo 7 %g%
echo 8 %h%
echo 9 %i%
REM ---- Getting user input for the choice
set /p Comm= Enter your choice :
cls
REM ---- Selecting the thing to do
if %comm% == add (goto add) else (goto %comm%)
:add
REM ---- Adding the server to the list
echo you choosed to %Comm%
set /p ser= What server number do you want to set ? (1 to 9)
goto %ser%q
:1q
set /p z= What is the name ?
set /p au= What is the url ?
goto end
:2q
set /p x= What is the name ?
set /p bu= What is the url ?
goto end
:3q
set /p c= What is the name ?
set /p cu= What is the url ?
goto end
:4q
set /p v= What is the name ?
set /p du= What is the url ?
goto end
:5q
set /p t= What is the name ?
set /p eu= What is the url ?
goto end
:6q
set /p n= What is the name ?
set /p fu= What is the url ?
goto end
:7q
set /p m= What is the name ?
set /p gu= What id the url ?
goto end
:8q
set /p l= What is the name ?
set /p hu= What is the url ?
goto end
:9q
set /p p= What is the name ?
set /p iu= What is the url ?
:end
REM ---- Setting the server url file variables
@echo on
echo %au% > zu.txt
echo %bu% > xu.txt
echo %cu% > cu.txt
echo %du% > vu.txt
echo %eu% > tu.txt
echo %fu% > nu.txt
echo %gu% > mu.txt
echo %hu% > lu.txt
echo %iu% > pu.txt
REM ---- Setting the server name variables
echo %z% > zq.txt
echo %x% > xq.txt
echo %c% > dq.txt
echo %v% > vq.txt
echo %t% > tq.txt
echo %n% > nq.txt
echo %m% > mq.txt
echo %l% > lq.txt
echo %p% > pq.txt
@echo off
goto start
:connect
cls
@echo on
:1
for /f "Delims=" %%a in (zu.txt) do (
set qc=%%a
)
@echo off
echo connecting
cd c:/ace of spades
client.exe -%qc%
pause
goto start
:2
for /f "Delims=" %%a in (xu.txt) do (
set wc=%%a
)
echo connecting
cd c:/ace of spades
client.exe -%wc%
pause
goto start
:3
for /f "Delims=" %%a in (du.txt) do (
set ec=%%a
)
echo connecting
cd c:/ace of spades
client.exe -%ec%
pause
goto start
:4
for /f "Delims=" %%a in (vu.txt) do (
set rc=%%a
)
echo connecting
cd c:/ace of spades
client.exe -%rc%
pause
goto start
:5
for /f "Delims=" %%a in (tu.txt) do (
set tc=%%a
)
echo connecting
cd c:/ace of spades
client.exe -%tc%
pause
goto start
:6
for /f "Delims=" %%a in (nu.txt) do (
set yc=%%a
)
echo connecting
cd c:/ace of spades
client.exe -%yc%
pause
goto start
:7
for /f "Delims=" %%a in (mu.txt) do (
set uc=%%a
)
echo connecting
cd c:/ace of spades
client.exe -%uc%
pause
goto start:8
for /f "Delims=" %%a in (lu.txt) do (
set ic=%%a
)
echo connecting
cd c:/ace of spades
client.exe -%ic%
pause
goto start
:9
for /f "Delims=" %%a in (pu.txt) do (
set oc=%%a
)
@echo off
echo connecting
cd c:/ace of spades
client.exe -%oc%
pause
goto start
pause
goto start
:exit
exit
:reset
cls
set /p sure= Are you sure you want to do this ? (y/N)
goto %sure%
cls
echo Wrong answer
pause
cls
goto reset
:y
echo deleting files
del zu.txt
del zq.txt
del xu.txt
del xq.txt
del vu.txt
del vq.txt
del tu.txt
del tq.txt
del pu.txt
del pq.txt
del nu.txt
del nq.txt
del mu.txt
del mq.txt
del lu.txt
del lq.txt
del dq.txt
del cu.txt
echo All files have been deleted
pause
goto start
:n
echo Returning to main menu.
pause
cls
goto start
:ref
:refresh
cls
echo Refreshing the servers
pause
goto :refresh1
exit
:refresh1
REM ---- reading the favorite name variables
for /f "Delims=" %%a in (zq.txt) do (
set a=%%a
)
for /f "Delims=" %%a in (xq.txt) do (
set b=%%a
)
for /f "Delims=" %%a in (dq.txt) do (
set c=%%a
)
for /f "Delims=" %%a in (vq.txt) do (
set d=%%a
)
for /f "Delims=" %%a in (tq.txt) do (
set t=%%a
)
for /f "Delims=" %%a in (nq.txt) do (
set f=%%a
)
for /f "Delims=" %%a in (mq.txt) do (
set g=%%a
)
for /f "Delims=" %%a in (lq.txt) do (
set h=%%a
)
for /f "Delims=" %%a in (pq.txt) do (
set i=%%a
)
:start
REM ---- menu
cls
echo.
echo J2D2's AOS utility
echo ____________________________________________________________
echo ============================================================
echo Commands :
echo Command Function
echo -(1 to 9) Starts the server associated with the number
echo - add Adds a server to the list
echo -reset Resets the list
echo -ref / refresh refresh the server list (use after reset)
echo -exit Quit the menu
echo. (Don't mind if it says echo command is on / off)
echo.
echo 1 %a%
echo 2 %b%
echo 3 %c%
echo 4 %d%
echo 5 %t%
echo 6 %f%
echo 7 %g%
echo 8 %h%
echo 9 %i%
REM ---- Getting user input for the choice
set /p Comm= Enter your choice :
cls
REM ---- Selecting the thing to do
if %comm% == add (goto add) else (goto %comm%)
:add
REM ---- Adding the server to the list
echo you choosed to %Comm%
set /p ser= What server number do you want to set ? (1 to 9)
goto %ser%q
:1q
set /p z= What is the name ?
set /p au= What is the url ?
goto end
:2q
set /p x= What is the name ?
set /p bu= What is the url ?
goto end
:3q
set /p c= What is the name ?
set /p cu= What is the url ?
goto end
:4q
set /p v= What is the name ?
set /p du= What is the url ?
goto end
:5q
set /p t= What is the name ?
set /p eu= What is the url ?
goto end
:6q
set /p n= What is the name ?
set /p fu= What is the url ?
goto end
:7q
set /p m= What is the name ?
set /p gu= What id the url ?
goto end
:8q
set /p l= What is the name ?
set /p hu= What is the url ?
goto end
:9q
set /p p= What is the name ?
set /p iu= What is the url ?
:end
REM ---- Setting the server url file variables
@echo on
echo %au% > zu.txt
echo %bu% > xu.txt
echo %cu% > cu.txt
echo %du% > vu.txt
echo %eu% > tu.txt
echo %fu% > nu.txt
echo %gu% > mu.txt
echo %hu% > lu.txt
echo %iu% > pu.txt
REM ---- Setting the server name variables
echo %z% > zq.txt
echo %x% > xq.txt
echo %c% > dq.txt
echo %v% > vq.txt
echo %t% > tq.txt
echo %n% > nq.txt
echo %m% > mq.txt
echo %l% > lq.txt
echo %p% > pq.txt
@echo off
goto start
:connect
cls
@echo on
:1
for /f "Delims=" %%a in (zu.txt) do (
set qc=%%a
)
@echo off
echo connecting
cd c:/ace of spades
client.exe -%qc%
pause
goto start
:2
for /f "Delims=" %%a in (xu.txt) do (
set wc=%%a
)
echo connecting
cd c:/ace of spades
client.exe -%wc%
pause
goto start
:3
for /f "Delims=" %%a in (du.txt) do (
set ec=%%a
)
echo connecting
cd c:/ace of spades
client.exe -%ec%
pause
goto start
:4
for /f "Delims=" %%a in (vu.txt) do (
set rc=%%a
)
echo connecting
cd c:/ace of spades
client.exe -%rc%
pause
goto start
:5
for /f "Delims=" %%a in (tu.txt) do (
set tc=%%a
)
echo connecting
cd c:/ace of spades
client.exe -%tc%
pause
goto start
:6
for /f "Delims=" %%a in (nu.txt) do (
set yc=%%a
)
echo connecting
cd c:/ace of spades
client.exe -%yc%
pause
goto start
:7
for /f "Delims=" %%a in (mu.txt) do (
set uc=%%a
)
echo connecting
cd c:/ace of spades
client.exe -%uc%
pause
goto start:8
for /f "Delims=" %%a in (lu.txt) do (
set ic=%%a
)
echo connecting
cd c:/ace of spades
client.exe -%ic%
pause
goto start
:9
for /f "Delims=" %%a in (pu.txt) do (
set oc=%%a
)
@echo off
echo connecting
cd c:/ace of spades
client.exe -%oc%
pause
goto start
pause
goto start
:exit
exit
:reset
cls
set /p sure= Are you sure you want to do this ? (y/N)
goto %sure%
cls
echo Wrong answer
pause
cls
goto reset
:y
echo deleting files
del zu.txt
del zq.txt
del xu.txt
del xq.txt
del vu.txt
del vq.txt
del tu.txt
del tq.txt
del pu.txt
del pq.txt
del nu.txt
del nq.txt
del mu.txt
del mq.txt
del lu.txt
del lq.txt
del dq.txt
del cu.txt
echo All files have been deleted
pause
goto start
:n
echo Returning to main menu.
pause
cls
goto start
:ref
:refresh
cls
echo Refreshing the servers
pause
goto :refresh1
exit
http://www.mediafire.com/?ohadz1wbzkwbbc1
Put it in a separate folder or it will spam with text files !
have fun !