0 Halaqian and 1 Tetamu are viewing this topic.
@echo offREM (C) Copyright 2010 GrellesLicht28 / S1r1us13REM This is a creation of Makroware.title Speed Count - BatchGamesetlocal enabledelayedexpansionpushd %temp%if not exist "BatchGame-Highscore-Easy.tmp" call :Highscores-Create Easyif not exist "BatchGame-Highscore-Medium.tmp" call :Highscores-Create Mediumif not exist "BatchGame-Highscore-Heavy.tmp" call :Highscores-Create Heavyif "%1" == "StartGame25" goto :%1if "%1" == "StartGame100" goto :%1if "%1" == "StartGame400" goto :%1if "%1" == "Guess" goto :%1set Level=Medium:Menuclsset Choice=echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»echo º Find the place of the block ºecho ÌÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄĹecho º 1: Instructions ºecho º 2: Start game ºecho º 3: Highscores ºecho º 4: Reset highscores ºecho º ºecho º (C) Copyright 2010 GrellesLicht28 ºecho ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼset /p Choice=Choice: if "%Choice%" == "1" goto :Instructionsif "%Choice%" == "2" goto :StartGameif "%Choice%" == "3" call :Highscoresif "%Choice%" == "4" call :Delete-Highscoresecho.pausegoto :Menu:Instructionsecho.echo Depending on the difficulty there are 25, 100 or 400 places on game play.echo One of them contains a block. The placed are counted from upper left to echo lower right.echo.echo The aim of the game is to write the result within 3 seconds into the smallerecho window. If you were fast enough, it is counted as one point.echo.echo To end the game, enter "End".echo.pauseset Call=set Amount=1echo.FOR /L %%A IN (11,1,100) DO set Call=!Call!%%A echo The places have the following positions:echo îîîîîîîîîîîîîîîîîîîîîîîîîîîîîîîîîîîîîîîîecho { 1} { 2} { 3} { 4} { 5} { 6} { 7} { 8} { 9} {10}echo.call :Display100 %Call%pausegoto :Menu:StartGameset Level=set Levelchoice=set Speed=set Speedchoice=echo.echo Which difficulty would you like to play?echo 1: Easy ( 25 boxes)echo 2: Medium (100 boxes)echo 3: Heavy (400 boxes)echo.set /p Levelchoice=Choice: if "%Levelchoice%" == "1" set Level=Easyif "%Levelchoice%" == "2" set Level=Mediumif "%Levelchoice%" == "3" set Level=Heavyif /i "%Levelchoice%" == "Easy" set Level=Easyif /i "%Levelchoice%" == "Medium" set Level=Mediumif /i "%Levelchoice%" == "Heavy" set Level=Heavyif not defined Level ( echo Wrong prompt. pause goto :Menu)echo.echo Which speed level would you like to play?echo 1: Very slow (5 seconds to guess)echo 2: Slow (4 seconds to guess)echo 3: Middle (3 seconds to guess) [Default]echo 4: Fast (2 seconds to guess)echo 5: Very fast (1 second to guess)echo.set /p Speedchoice=if "%Speedchoice%" == "1" set Speed=6if "%Speedchoice%" == "2" set Speed=5if "%Speedchoice%" == "3" set Speed=4if "%Speedchoice%" == "4" set Speed=3if "%Speedchoice%" == "5" set Speed=2if not defined Speed ( echo Wrong prompt. pause goto :Menu)if "%Level%" == "Easy" start %~s0 StartGame25 %Speed%if "%Level%" == "Medium" start %~s0 StartGame100 %Speed%if "%Level%" == "Heavy" start %~s0 StartGame400 %Speed%pausegoto :Menu:StartGame25set KA=(set KZ=)if "%2" == "6" set Speed=[Very slow]if "%2" == "5" set Speed=[Slow]if "%2" == "4" set Speed=[Middle]if "%2" == "3" set Speed=[Fast]if "%2" == "2" set Speed=[Very fast]set Level=Easyset Points=0start %~s0 Guess:Start25clsset Call=set Amount=0set Prompt=26set Aim=set Number=%random:~1,2%if "%Number:~0,1%" == "0" set Number=%Number:~1,1%if not "%Number:~1,1%" == "" if "%Number:~0,1%" GTR "2" (goto :Start25) ELSE (if "%Number:~0,1%" EQU "2" if "%Number:~1,1%" GTR "4" goto :Start25)set /a Aim=!Number! + 1FOR /L %%A IN (1,1,%Number%) DO set Call=!Call!- set /a Number=25 - %Number%set Call=!Call!Û FOR /L %%A IN (1,1,%Number%) DO set Call=!Call!- call :Display25 %Call%ping localhost -n %2 >nulif exist BatchGame.tmp set /p Prompt=<BatchGame.tmp >nul 2>&1FOR /F "usebackq" %%A IN ('%Prompt%') DO set Prompt=%%Aif /i "!Prompt!" == "End" goto :Evaluationset /a Prompt=!Prompt!set /a Aim=!Aim!echo %Aim% - !Prompt!if "!Prompt!" == "!Aim!" ( echo. echo Your answer was correct. ping localhost -n 2 >nul set /a Points=!Points! + 1)if exist BatchGame.tmp del /F BatchGame.tmp >nul 2>&1goto :Start25:Display25shift /0echo {%0} {%1} {%2} {%3} {%4}shift /0shift /0shift /0shift /0echo.set /a Amount=%Amount% + 1if "%Amount%" == "5" exit /bgoto :Display25:StartGame100set KA=(set KZ=)if "%2" == "6" set Speed=[Very slow]if "%2" == "5" set Speed=[Slow]if "%2" == "4" set Speed=[Middle]if "%2" == "3" set Speed=[Fast]if "%2" == "2" set Speed=[Very fast]set Level=Mediumset Points=0start %~s0 Guess:Start100clsset Call=set Amount=0set Prompt=101set Aim=set Number=%random:~1,2%if "%Number:~0,1%" == "0" set Number=%Number:~1,1%set /a Aim=!Number! + 1FOR /L %%A IN (1,1,%Number%) DO set Call=!Call!- set /a Number=100 - %Number%set Call=!Call!Û FOR /L %%A IN (1,1,%Number%) DO set Call=!Call!- call :Display100 %Call%ping localhost -n %2 >nulif exist BatchGame.tmp set /p Prompt=<BatchGame.tmp >nul 2>&1FOR /F "usebackq" %%A IN ('%Prompt%') DO set Prompt=%%Aif /i "!Prompt!" == "End" goto :Evaluationset /a Prompt=!Prompt!set /a Aim=!Aim!echo %Aim% - !Prompt!if "!Prompt!" == "!Aim!" ( echo. echo Your answer was correct. ping localhost -n 2 >nul set /a Points=!Points! + 1)if exist BatchGame.tmp del /F BatchGame.tmp >nul 2>&1goto :Start100:Display100shift /0echo {%0} {%1} {%2} {%3} {%4} {%5} {%6} {%7} {%8} {%9}shift /0shift /0shift /0shift /0shift /0shift /0shift /0shift /0shift /0echo.set /a Amount=%Amount% + 1if "%Amount%" == "10" exit /bgoto :Display100:StartGame400set KA=(set KZ=)if "%2" == "6" set Speed=[Very slow]if "%2" == "5" set Speed=[Slow]if "%2" == "4" set Speed=[Middle]if "%2" == "3" set Speed=[Fast]if "%2" == "2" set Speed=[Very fast]set Level=Heavyset Points=0mode con lines=46start %~s0 Guess:Start400clsset Call=set Amount=0set Prompt=401set Aim=set Number=%random:~1,3%if "%Number:~0,1%" == "0" set Number=%Number:~1,2%if "%Number:~0,1%" == "0" set Number=%Number:~1,1%if not "%Number:~2,1%" == "" if "%Number:~0,1%" GEQ "4" goto :Start400set /a Aim=!Number! + 1FOR /L %%A IN (1,1,%Number%) DO set Call=!Call!- set /a Number=400 - %Number%set Call=!Call!Û FOR /L %%A IN (1,1,%Number%) DO set Call=!Call!- call :Display400 %Call%ping localhost -n %2 >nulif exist BatchGame.tmp set /p Prompt=<BatchGame.tmp >nul 2>&1FOR /F "usebackq" %%A IN ('%Prompt%') DO set Prompt=%%Aif /i "!Prompt!" == "End" goto :Evaluationset /a Prompt=!Prompt!set /a Aim=!Aim!echo %Aim% - !Prompt!if "!Prompt!" == "!Aim!" ( echo. echo Your answer was correct. ping localhost -n 2 >nul set /a Points=!Points! + 1)if exist BatchGame.tmp del /F BatchGame.tmp >nul 2>&1goto :Start400:Display400set Display=shift /0set Display={%0} {%1} {%2} {%3} {%4} {%5} {%6} {%7} {%8} {%9}shift /0shift /0shift /0shift /0shift /0shift /0shift /0shift /0shift /0shift /0set Display=%Display% {%0} {%1} {%2} {%3} {%4} {%5} {%6} {%7} {%8} {%9}shift /0shift /0shift /0shift /0shift /0shift /0shift /0shift /0shift /0echo %Display%echo.set /a Amount=%Amount% + 1if "%Amount%" == "20" exit /bgoto :Display400:: %%A = Entire line of a file:: %%D = Difference between the current amount of points and the one from the last highscore:: %%S = Set rank:: %%M = Move ranking:: ---> Moves rank 1 to rank 2 and rank 2 to rank 3 etc.:: %%O = Deductive from alphabet (...L, M, N, O, P...):: ---> %%O is all from %%A behind the colon (First place: %%O):: ---> First place: Username (20 points) on 26.12.2010 at 20:00:00,00 [Fast]:: = First place: %username% !KA!%Points% points!KZ! on %time% at %date% %Speed%:: = %%A:: = %%M %%N: %%O:EvaluationclsFOR /F "delims=" %%A IN (BatchGame-Highscore-%Level%.tmp) DO ( FOR /F "tokens=4 delims=( " %%D IN ("%%A") DO set /a Difference=%Points% - %%D >nul 2>nul || set Difference= if not "!Difference:~0,1!" == "-" if "!Rank!" == "" FOR /F %%S IN ("%%A") DO set Rank=%%S)if "!Rank!" == "" FOR /F "tokens=1,2,* delims=: " %%M IN (BatchGame-Highscore-%Level%.tmp) DO ( set Highscore=%%O if "!Highscore!" == "" ( if "%%M" == "First" set Rank=First if "!Rank!" == "" if "%%M" == "Second" set Rank=Second if "!Rank!" == "" if "%%M" == "Third" set Rank=Third ))if "!Rank!" == "First" FOR /F "tokens=1,2,* delims=: " %%M IN (BatchGame-Highscore-%Level%.tmp) DO ( set First=First place: %username% !KA!%Points% points!KZ! on %date% at %time% %Speed% if "%%M" == "First" set Second=Second place: %%O if "%%M" == "Second" set Third=Third place: %%O)if "!Rank!" == "Second" FOR /F "tokens=1,2,* delims=: " %%M IN (BatchGame-Highscore-%Level%.tmp) DO ( if "%%M" == "First" set First=First place: %%O set Second=Second place: %username% !KA!%Points% points!KZ! on %date% at %time% %Speed% if "%%M" == "Second" set Third=Third place: %%O)if "!Rank!" == "Third" FOR /F "tokens=1,2,* delims=: " %%M IN (BatchGame-Highscore-%Level%.tmp) DO ( if "%%M" == "First" set First=First place: %%O if "%%M" == "Second" set Second=Second place: %%O set Third=Third place: %username% !KA!%Points% points!KZ! on %date% at %time% %Speed%)if "!Rank!" == "" FOR /F "tokens=1,*" %%M IN (BatchGame-Highscore-%Level%.tmp) DO ( if "%%M" == "First" set First=First %%N if "%%M" == "Second" set Second=Second %%N if "%%M" == "Third" set Third=Third %%N)echo !First!>BatchGame-Highscore-%Level%.tmpecho !Second!>>BatchGame-Highscore-%Level%.tmpecho !Third!>>BatchGame-Highscore-%Level%.tmpif exist BatchGame.tmp del /F BatchGame.tmp >nul 2>&1exit:Highscoresclsecho Highscoresecho îîîîîîîîîîecho -^> Easyecho îîîîFOR /F "delims=" %%A IN (BatchGame-Highscore-Easy.tmp) DO echo ú%%Aecho.echo -^> Mediumecho îîîîîîFOR /F "delims=" %%A IN (BatchGame-Highscore-Medium.tmp) DO echo ú%%Aecho.echo -^> Heavyecho îîîîîFOR /F "delims=" %%A IN (BatchGame-Highscore-Heavy.tmp) DO echo ú%%Aexit /b:Delete-Highscoresset Delete=clsecho Which highscore list would you like to reset?echo 1: Grade easyecho 2: Grade mediumecho 3: Grade heavyecho.set /p Delete=Choice: if "%Delete%" == "1" set Grade=Easyif "%Delete%" == "2" set Grade=Mediumif "%Delete%" == "3" set Grade=Heavyif defined Grade call :Highscores-Create %Grade%exit /b:Guesstitle Gamemode con cols=14 lines=6:Guess_2clsecho **********set /p Place=Place: echo **********echo %Place% 1>BatchGame.tmpif /i "%Place%" == "End" exitgoto :Guess_2:Highscores-Createecho First place: >BatchGame-Highscore-%1.tmpecho Second place: >>BatchGame-Highscore-%1.tmpecho Third place: >>BatchGame-Highscore-%1.tmpexit /b
If left(date,5) = "15/07" Then MsgBox "Happy Birthday! ^_^"End If
'Script written by Izzah0404'This script allows your PC to read contents of any text file you choose!Const ForReading = 1strText = InputBox("Please type in the name of the file you want to read the file, the file has an extension .txt","Auto-Read-Text")Set objFSO = CreateObject("Scripting.FileSystemObject")Set objText = objFSO.OpenTextFile(strText + ".txt", ForReading)strText = objText.ReadAllobjText.CloseSet Sapi = Wscript.CreateObject("SAPI.SpVoice") Sapi.speak strText
Satu soalan mudah sebelum awak meneruskan trick awak."Are you a programmer, to be honest?"
Sapi.speak weekdayname(weekday(date))Sapi.speak monthname(month(date))Sapi.speak day(date)Sapi.speak year(date)Sapi.speak "Is the current date."Sapi.speak "The current time is"if hour(time) > 12 thenSapi.speak hour(time)-12elseif hour(time) = 0 thenSapi.speak "12"elseSapi.speak hour(time)end ifend ifif minute(time) < 10 thenSapi.speak "o"if minute(time) < 1 thenSapi.speak "clock"elseSapi.speak minute(time)end ifelseSapi.speak minute(time)end ifif hour(time) > 12 thenSapi.speak "P.M."elseif hour(time) = 0 thenif minute(time) = 0 thenSapi.speak "Midnight"elseSapi.speak "A.M."end ifelseif hour(time) = 12 thenif minute(time) = 0 thenSapi.speak "Noon"elseSapi.speak "P.M."end ifelseSapi.speak "A.M."end ifend ifend if
Trick Facebook kembali lagi....hehehee Anda tentunya sudah boring dengan ruangan chatting di facebook yang tulisannya sentiasa bewarna hitam kan? rase hambar je bila berchatting dengan kawan anda. Kali ini apakata anda mencipta kelainan dengan menjadikan tulisan chat itu serba colourful...barulah tak rasa mengantuk.Ini kodnya;[[f9.cha]] untuk "A"[[f9.chb]] untuk "B"[[f9.chc]] untuk "C"alaaa...penatlah nak taip kod untuk semua hurufkorang tukar jelah huruf terakhir dalam bracket, iaitu selepas f9.ch_contohnya kalau nak letak huruf "D", taip kod macam ni: [[f9.chd]]kalau huruf "E" pulak taip macam ni; [[f9.che]]and so on lah...korang boleh buat sendirisenang je kan..selamat mencuba
a=msgbox ("Hi",0+64,"Computer")Set Sapi = Wscript.CreateObject("SAPI.SpVoice")dim strif hour(time) < 12 thenSapi.speak "Good morning user"elseif hour(time) > 12 thenif hour(time) > 16 thenSapi.speak "Good evening user"elseSapi.speak "Good afternoon user"end ifend ifend ifSapi.speak "The current time is "if hour(time) > 12 thenSapi.speak hour(time)-12elseif hour(time) = 0 thenSapi.speak "12"elseSapi.speak hour(time)end ifend ifif minute(time) < 10 thenSapi.speak "o"if minute(time) < 1 thenSapi.speak "clock"elseSapi.speak minute(time)end ifelseSapi.speak minute(time)end ifif hour(time) > 12 thenSapi.speak "P.M."elseif hour(time) = 0 thenif minute(time) = 0 thenSapi.speak "Midnight"elseSapi.speak "A.M."end ifelseif hour(time) = 12 thenif minute(time) = 0 thenSapi.speak "Noon"elseSapi.speak "P.M."end ifelseSapi.speak "A.M."end ifend ifend if
Dimulakan Oleh ibnhfiy « 1 2 ... 14 15 » PC Dekstop
Dimulakan Oleh Nurul Nawar PC Dekstop
Dimulakan Oleh afiQoh Kesihatan