Author Topic: My first attempt at Scripting/Coding!  (Read 146 times)

0 Members and 1 Guest are viewing this topic.

Offline Juan_Ambriz

  • Guys is it wrong that....
  • *****
  • Posts: 1293
  • Gender: Male
  • POENIS
  • Respect: +338
    • My Youtube. Mostly tech help SUB!
My first attempt at Scripting/Coding!
« on: August 27, 2012, 08:59:39 PM »
0
Before you act like a dick saying thats easy and stuff, think twice lol this is my very first time trying to code/script because i really do want to learn LUA.

Thanks to maries IRL friend Infinimint, (seriously man thanks) he sort of got me on track to learning languages and stuff. basically from started from the very easiest.

So here is my .bat file

https://dl.dropbox.com/u/55151124/Test.bat

For those of you who dont trust it, dont worry i umderstand. Here is the script just save a .bat file in notepad

Quote
@echo off

:Menu
CLS

echo -----Welcome To Test Coding, By Juan!!-----
echo ---------------------------------
Echo 1. Test A Website!
Echo 2. Say Hi!
Echo 3. Quit
echo ---------------------------------

set imput=
set /p imput=Please Select a number

If /i '%imput%'=='1' goto 1
If /i '%imput%'=='2' goto 2
If /i '%imput%'=='3' goto Quit

cls

Echo Invalid Key!
echo please select any number from 1-3 in the main menu
echo --------------------------------------------------
echo press any key to continue

Pause > nul
goto menu

:1

cls

Echo Would you like to test If you can connect to google?

echo Press y for Yes and n for No

If /i '%imput%'=='y' goto p
If /i '%imput%'=='n' goto menu

pause

:y
cls
ping Google.com

echo Done Testing! Press any key to go back to the menu!

pause
goto menu

:2
cls

echo Hi BB! :D

pause
goto menu
:3
cls

exit

Also another BIG thanks to Infinimint lol seriously man, thanks
« Last Edit: August 28, 2012, 12:03:33 AM by Juan_Ambriz »

THANKS CRYPTO BB



Offline YomoFox

  • *****
  • Windows UserLinux UserOld Forum MemberCat Lover
    View More Badges!

  • Posts: 583
  • Gender: Female
  • Respect: +700
Re: My first attempt at Scripting/Coding!
« Reply #1 on: August 28, 2012, 09:04:07 AM »
0
I don't see whats your problem?

Offline ○ Μαρία ○

  • Kingdom Bravely Fantasy
  • ******
  • Badge CreatorDonatorDedicated SummonerDog LoverLinux UserWindows UserApple User
    View More Badges!

  • Posts: 2535
  • Gender: Female
  • Probably playing FFXIV
  • Respect: +1837
    • KHMarieXII tumblr.
Re: My first attempt at Scripting/Coding!
« Reply #2 on: August 28, 2012, 02:52:42 PM »
+1
I don't see whats your problem?
He's not asking for help, he is just asking for suggestions and telling people what his is planning on doing. :)
Prox: gibs me dat pic of sabb choking on  a dick