Cov txheej txheem:

Ua Game hauv Notepad thiab Ntau Ntau Ntxiv: 10 Kauj Ruam
Ua Game hauv Notepad thiab Ntau Ntau Ntxiv: 10 Kauj Ruam

Video: Ua Game hauv Notepad thiab Ntau Ntau Ntxiv: 10 Kauj Ruam

Video: Ua Game hauv Notepad thiab Ntau Ntau Ntxiv: 10 Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Hlis ntuj nqeg
Anonim
Ua Game hauv Notepad thiab Ntau Ntau Ntxiv
Ua Game hauv Notepad thiab Ntau Ntau Ntxiv
Ua Game hauv Notepad thiab Ntau Ntau Ntxiv
Ua Game hauv Notepad thiab Ntau Ntau Ntxiv
Ua Game hauv Notepad thiab Ntau Ntau Ntxiv
Ua Game hauv Notepad thiab Ntau Ntau Ntxiv

Nov yog kuv thawj qhov kev qhia. Yog li yog tias koj muaj lus pom thov tawm tswv yim. Cia peb pib!

Thaum peb txhua tus tau hnov lo lus notepad peb xav txog qee qhov tsis txaus ntseeg daim ntawv thov los sau cia cov ntawv. Qhov zoo notepad muaj ntau dua li ntawd. Peb tuaj yeem tswj hwm peb lub pc, ua qee qhov txias nyiag nkas thiab ua si lom zem.

ps ntawm no yog cov ntawv ntim rau tic tac ntiv taw kev ua si

Kauj ruam 1: Taw qhia rau Batch

Taw qhia rau Batch
Taw qhia rau Batch
Taw qhia rau Batch
Taw qhia rau Batch
Taw qhia rau Batch
Taw qhia rau Batch

Batch yog hom lus uas ua haujlwm feem ntau tawm ntawm koj lub Windows hais kom sai. Tsis tsuas yog nws muaj txiaj ntsig, tab sis nws kuj tseem tuaj yeem siv los tsim cov ntawv ua si zoo kawg! Dab tsi yog game-based game koj nug? Nws yog game (ib qho yooj yim heev) uas tus neeg siv cuam tshuam los ntawm kev siv cov ntawv thiab xaiv-making. Koj yuav kawm paub teeb tsa qhov xwm txheej twg uas cov cim yuav tsum tau xaiv ua li cas lawv xav mus rau qhov teeb meem.

Ua ntej tshaj plaws qhib notepad

Tam sim no koj npaj txhij pib ntaus koj thawj kab ntawm cov cai, nrog rau kev kawm koj thawj cov lus txib. Cov lus txib yog txhua lo lus uas peb ntaus rau hauv txoj haujlwm uas muaj lub luag haujlwm; xws li ncha, lossis ncua cov lus txib.

echo, hais. thiab ncua

ncha - ncha tau siv los tso saib cov ntawv tsis tu ncua hauv koj qhov kev ua si. Piv txwv li koj tuaj yeem ntaus: "echo Nyob zoo cov neeg taug txuj kev nyuaj!", Thiab cov tib neeg ua si koj qhov kev ua si yuav pom yog "Nyob zoo cov neeg taug txuj kev nyuaj!" (Tsuav koj tau ntaus @echo tawm).

ncha. - nchav. (nrog rau lub sijhawm) tau siv los tsim kab dawb paug hauv koj qhov kev ua si. Qhov no tuaj yeem muaj txiaj ntsig hauv kev khaws koj cov ntawv tsis muaj kab.

ncua - Qhov lus txib no yog siv thaum koj xav kom koj cov neeg ua si so, thiab feem ntau siv thaum koj xav muab sijhawm rau lawv nyeem qee cov ntawv. Thaum koj siv tus lej no nws tshwm li "Nias ib qho yuam sij txuas ntxiv mus …" Koj cov neeg ua si tuaj yeem nias tus yuam sij, thaum lawv npaj txhij, txhawm rau txuas ntxiv ua si.

Txuag koj cov game li: nameofyourgame.bat

qhov ntxiv.bat ua rau nws ua cov ntawv batch.

Kauj Ruam 2: Cls, Tawm, Npe, thiab Xim

Cls, Tawm, Title, thiab Xim
Cls, Tawm, Title, thiab Xim
Cls, Tawm, Title, thiab Xim
Cls, Tawm, Title, thiab Xim

Ok, cov lus txib tom ntej no txhua yam yooj yim heev ib yam nkaus, tab sis zoo rau muaj.

cls - cls yog cov lus txib uas kuv siv ntau. Nws sawv rau "lub vijtsam meej", thiab nws ua dab tsi yog tshem tawm tag nrho cov ntawv uas tau ua hauv qhov hais kom ua qhov rai (ergo, ua lub vijtsam dawb). Nov yog qhov cuab yeej zoo thaum koj xav ua kom koj cov kev ua si saib kom huv thiab kom raug.

tawm - Qhov no ua raws nraim li nws zoo li, nws kaw qhov kev ua si. Koj yuav tsum tsuas yog siv qhov no thaum cov cim mus txog qhov kawg ntawm qhov kev ua si, lossis yog tias koj xav kom qhov kev ua si kaw thaum lawv tuag lossis txiav txim siab tsis raug.

title - npe qhia txhua yam koj ntaus tom qab nws hauv kab ntawv npe ntawm qhov hais kom ua qhov rai.

xim - xim yog cov lus txib lom zem tiag tiag, thiab tuaj yeem siv los ua kom koj txoj kev ua si zoo dua. Thaum koj ntxiv cov cai xim, ua raws qhov chaw thiab cov lej tshwj xeeb lossis cov ntawv, koj tuaj yeem hloov xim ntawm qhov hais kom ua qhov rai. Txog cov npe ntawm cov xim muaj pom hauv daim duab hauv qab no lossis qhib qhov hais kom ua sai sai (cmd) thiab ntaus hauv "xim/?".

Nws yog txheej ntawm ob tus lej. Thawj tus lej yog xim tom qab. Tus lej thib ob yog xim xim.

np. 19

Kauj ruam 3: Mus

Mus
Mus

Qhov "goto" hais kom ua yog yooj yim, thaum koj paub nws. Cov lus txib yog siv thaum koj xav kom cov neeg ua si dhia mus rau ntu sib txawv ntawm koj qhov kev ua si, xws li thaum lawv txiav txim siab qee yam.

Nws ua haujlwm li no: Koj nkag mus rau lo lus "nkag mus" ntawm kab sib cais, lossis tom kawg ntawm nqe lus "yog" (uas peb yuav mus tom qab). Tom qab ntawd koj qhia qhov txawv txav uas yuav dhau los ua lub npe ntawm lub hom phiaj. Lub npe tuaj yeem yog txhua yam koj xav tau, thiab suav nrog cov lus koj tau sau tom qab "nkag mus".

Kauj Ruam 4: Teeb/p thiab Yog

Teeb/p thiab Yog
Teeb/p thiab Yog

Cov lus txib no yog cov lus txib tshaj plaws uas kuv yuav qhia koj.

teeb /p sib txawv = - Cov lus txib no tau siv thaum koj xav kom koj cov neeg ua si ntxig qhov sib txawv (cov lus teb sib txawv). Qhov no tuaj yeem nyob txhua qhov chaw ntawm lawv lub npe mus rau lub npe riam phom lossis txawm tias lo lus teb rau ib qho ntawm cov kev xaiv uas koj tau muab rau lawv. Feem ntau lub sijhawm qhov sib txawv no yuav raug hais tom qab, thiab yog li yuav tsum tau muab lub npe. Lub npe tuaj yeem yog txhua yam koj xav tau.

Peb tuaj yeem siv qhov kev hloov pauv no los ntawm kev tso lub npe sib txawv ntawm %. Eg. %teb%

yog - cov lus txib no tau siv thaum peb tsim yog/tom qab ntawv. Peb tuaj yeem siv nws ua ke nrog "teeb /p" txhawm rau tsim kev xaiv rau cov neeg ua si. Nco ntsoov qhia meej txog lawv cov kev xaiv. Muab lawv lub peev xwm los teb cov lus teb nrog "set /p" hais kom ua.

Tsim "yog" cov lus uas tso cai rau cov players xaiv ua qhov raug, thiab qhov ntawd tso cai rau zaj dab neeg txuas ntxiv.

"yog" cov lus siv nrog "equ" thiab "neq" uas txhais tau tias "sib npaug" thiab "tsis sib npaug", feem.

Nov yog li cas koj cov lus yuav tsum zoo li:

: pib

ncha YES lossis Tsis yog?

set /p sib txawv =

yog % hloov pauv % equ YES tau txais qhov xwm txheej 1

yog % hloov pauv % equ NO TSIS tau txais qhov xwm txheej 2

yog %hloov pauv neq YES tau txais pib

Tag nrho cov cai no txhais tau tias yog tus neeg uas ua ntawv hom "YOG" nws yuav raug xa mus rau "xwm txheej 1"; yog tias nws ntaus "NO" nws yuav raug xa mus rau "xwm txheej 2"; yog tias nws tsis teb "YOG" lossis "NO" nws yuav raug xa rov qab mus rau qhov pib ntawm lo lus nug.

Kauj ruam 5: Ping Localhost -n 7> nul

%random%
%random%

nul "src =" https://content.instructables.com/ORIG/F9K/UUIK/I8H6EJC5/F9KUUIKI8H6EJC5-p.webp

Cov Ntawv Rau Hais Lus Converter
Cov Ntawv Rau Hais Lus Converter

nul "src =" {{file.large_url | ntxiv: 'pib = webp & thav duab = 1 & qhov siab = 300' %} ">

Cov lus no ncua kev ua tiav ntawm nqe lus rau 7 vib nas this. Koj tuaj yeem hloov tus nqi.

Rau eg.

@echo tawm

: pib

xim 10

ping localhost -n 0> nul

xim 20

ping localhost -n 0> nul

xim 30

ping localhost -n 0> nul

tsum tsum

Qhov kev pabcuam no tsim lub vijtsam ntsais muag uas tsis tso tseg (infinate loop).

Kauj Ruam 6: %random %

Tus comand no tsim tus lej 5 tus lej uas tsis raug. Qhov lus txib no feem ntau siv d los tsim hom kev sib tw ntawm txoj haujlwm.

@echo tawm

xim 02

: pib

echo%random %% random %% random %% random %% random %% random%

tsum tsum

Kauj Ruam 7: Cov Ntawv Rau Hais Lus Hloov

Qhov no yog qhov kuv nyiam tshaj plaws txog notepad Qhov no siv SAPI. The Speech Application Programming Interface lossis SAPI yog API tsim los ntawm Microsoft kom tso cai siv kev lees paub hais lus thiab hais lus sib txuas hauv Windows daim ntawv thov.

Qhov no txawv me ntsis vim qhov no yog hauv vbs tsab ntawv tsis yog pob. (Lub ntim qis)

qis msg

msg = inputbox ("Sau cov ntawv ntawm no", "Text to speech converter")

teeb sapi = CreateObject ("sapi.spvoice")

sapi.speak lus

txuag nws nrog.vbs txuas ntxiv

rau np. texttospeech.vbs

Kauj Ruam 8: Star Wars !

Lub Hnub Qub Wars !!!
Lub Hnub Qub Wars !!!

Muaj ib daim ntawv tiav ntawm Star Wars ua tiav hauv ASCII cov cim uas koj tuaj yeem saib hauv Windows ua haujlwm (lossis ib qho OS uas txhawb nqa telnet). Tsuas yog qhov yuav tsum tau saib nws yog kev sib txuas hauv is taws nem; ceev tsis muaj teeb meem.

Txhawm rau saib nws ntawm Windows XP, Mac OS X thiab Linux

Mus rau Pib, Khiav. (Tsuas yog rau cov neeg siv Windows)

Tam sim no ntaus "telnet towel.blinkenlights.nl" yam tsis muaj cov lus hais thiab nias Enter.

Cov neeg siv Mac OS X thiab Linux tuaj yeem ua ncaj qha cov cai no hauv lub qhov rai davhlau ya nyob twg.

Ntawm Windows 8, Windows 8.1, Windows 7 thiab Windows VistaTelnet raug kaw los ntawm lub neej ntawd hauv Windows tshiab kawg.

Yog li, txhawm rau saib kev ua tsov rog hnub qub, koj yuav tsum xub ua kom muaj telnet los ntawm kev mus rau Tswj Vaj Huam Sib Luag ›Cov Kev Pabcuam› Qhib Windows Feature On lossis Off thiab zuam ob lub thawv telnet.

Tom qab ua qhov ntawd, ua raws cov theem hauv qab no: -Tau Pib, Tshawb hauv Windows Vista thiab Windows 7. Ntawm Windows 8 thiab Windows 8.1, qhib lub ntsiab Start page.

Ntaus telnet thiab nias Enter.

Tam sim no ntaus "towel.blinkenlights.nl" yam tsis muaj cov lus hais thiab nias Enter.

Yog tias koj tsis xav tau telnet ntxiv, koj tuaj yeem tua nws.

Kauj Ruam 9: Rov Rov Ua Dua Cov Lus Tsis Zoo Rau Ib Tus Neeg

Siv cov ntawv sau yuam kev no koj tuaj yeem thab leej twg thiab tuaj yeem yuam kom lawv tawm lossis tawm hauv computer (LOL….). Qhov kev ceeb toom notepad no yuav tsim lub voj voog tsis kawg ntawm cov lus hauv computer. Ua raws cov kauj ruam kom paub ntau ntxiv: Qhib Notepad. Type cov cai hauv qab no hauv daim ntawv notepad.

: @ECHO tawm:

: Pib msg * Nyob zoo

msg * Koj puas muaj hnub tsis zoo?

msg * zoo, kuv muaj kev lom zem!

msg * Cia peb muaj kev lom zem ua ke!

msg * Vim koj tau o-w-n-e-d

GOTO pib

kom nws rov pib dua koj lub computer

Kauj Ruam 10: Qhib Hom Lus

Qhib Hom Lus
Qhib Hom Lus
Qhib Hom Lus
Qhib Hom Lus

Ua kom tsis muaj kev phom sij tag thiab zoo rau kev ua si pranks ntawm ib tus phooj ywg. Qhov ua kom yuam kev no tuaj yeem ua rau txhua tus xav tsis thoob! Ua raws li cov theem hauv qab no los ua qhov dag no: Qhib Notepad. Paste cov cai hauv qab no hauv cov ntawv notepad:

(retype tag nrho cov quotes)

WScript. Sleep 180000

WScript. Sleep 10000

Teeb WshShell = WScript. CreateObject ("WScript. Shell")

WshShell. Run "notepad"

WScript. Sleep 100

WshShell. AppActivate “Notepad”

WScript. Sleep 500

WshShell. SendKeys “Hel”

WScript. Sleep 500

WshShell. SendKeys "lo"

WScript. Sleep 500

WshShell. SendKeys “, kuv”

WScript. Sleep 500

WshShell. SendKeys “hlub”

WScript. Sleep 500

WshShell. SendKeys "qhia tau"

WScript. Sleep 500

Txuag cov ntaub ntawv nrog txhua lub npe thiab nrog.vbs txuas ntxiv thiab kaw nws.

Txhawm rau xaus nws qhib tus thawj tswj haujlwm thiab xaus cov txheej txheem thewscript.exe raws li qhia hauv duab saum toj no.

Pom zoo: