Cov txheej txheem:

Qhov Kawg Kawg Lub Computer Shutdown Prank: 3 Kauj Ruam
Qhov Kawg Kawg Lub Computer Shutdown Prank: 3 Kauj Ruam

Video: Qhov Kawg Kawg Lub Computer Shutdown Prank: 3 Kauj Ruam

Video: Qhov Kawg Kawg Lub Computer Shutdown Prank: 3 Kauj Ruam
Video: 30 лучших страшных видео с привидениями 2022 года [ЛУЧШЕЕ ГОДА] 2024, Kaum ib hlis
Anonim
Qhov kawg Computer Shutdown Prank
Qhov kawg Computer Shutdown Prank

Nov yog.vbs kaw cov ntawv uas kuv tau ua ua prank. Qhov laj thawj yog vim li cas nws thiaj txias heev, vim tias tsis yog cia li kaw lub computer tam sim ntawd, lub khoos phis tawj hais lus rau koj, ceeb toom koj tias lub khoos phis tawj yuav kaw hauv 10 vib nas this, tom qab ntawd nws qhia me me kom suav nrog 5 vib nas this kawg ua ntej. nws kaw lub computer.

Kuv kuj nyiam sau nws rau.exe siv lub hloov pauv, tab sis koj tsis tas yuav ua qhov no. Saib kuv vbs Screen Lock, yog tias koj xav paub yuav ua li cas. Kuj tseem muaj qee qhov txuas rau vbs cov kws kho mob ib yam nkaus hauv cov lus qhia.

Tab sis tsis zoo li kuv lub xauv npo, qhov program no luv dua, yog li kuv yuav sim piav qhia qhov zoo tshaj plaws kuv ua tau.

NCO TSEG: Yog tias koj tsis tau paub dua vbs, Kuv pom zoo kom txheeb xyuas Cov Lus Qhia no kom koj muaj kev nkag siab yooj yim ntawm qee qhov haujlwm uas siv yog tsab ntawv no.

Kauj ruam 1: Kuv Tsab Ntawv…

Kuv Tsab Ntawv…
Kuv Tsab Ntawv…

Nov yog tsab ntawv..

Koj yuav tsum rho tawm ib qho ntawm "s" ntawm qhov kawg kom nws xaus rau hauv "Shutdown.vbs" lossis yam koj xav tau ntev npaum li nws xaus rau hauv.vbs.

Kauj ruam 2: Kuv Tsab Ntawv (piav qhia)…

Yog li paub kuv yuav piav qhia txoj cai…

Thawj kab tsis ua ntau ntau, nws tsuas yog pab kuv thaum kuv tab tom tsim tsab ntawv. Nov yog peb kab tom ntej:

Dim IntCounterDim objWshShl: Teeb objWshShl = WScript. CreateObject ("wscript.shell") Dim objVoice: Teeb objVoice = WScript. CreateObject ("sapi.spvoice")

Thawj kab ntawm cov cai tshaj tawm qhov sib txawv uas peb yuav siv los tswj yog Rau … Tom ntej Loop. Ob kab kab tom ntej tshaj tawm thiab teeb tsa 2 qhov sib txawv. objWshShl yog siv rau lub thawv ntawv thiab ua haujlwm. objVoice yog siv los ua lub computer "tham".

Nov yog lwm txoj kab peb:

ShutdownWarning () TimedMessageBox () ShutdownComputer ()

Cov kab no tsuas yog hu rau peb lub luag haujlwm uas muaj nyob hauv peb tsab ntawv.

Nov yog thawj txoj haujlwm hauv cov ntawv.

Function ShutdownWarning objVoice. Speak "Tam sim no lub computer yuav kaw hauv 10 vib nas this." WScript. Sleep 5000 End Function

Peb tsis tas yuav xav tau cov haujlwm hauv peb tsab ntawv, tab sis nws tsuas yog pab khaws cov khoom kom zoo.

Yog li txhua yam no ua yog hais lus kab lus nyob nruab nrab ntawm cov lus hais thiab tom qab ntawd ncua rau 5 vib nas this ua ntej txuas mus rau txoj haujlwm tom ntej.

Cov ntu tom ntej no yuav zoo li tsis yooj yim tab sis nws yog qhov yooj yim zoo nkauj kom nkag siab:

Function TimedMessageBox Rau IntCounter = 5 Rau 1 Kauj Ruam -1 objWshShl. Popup "Lub computer yuav kaw hauv" _ & IntCounter & "vib nas this", 1, "Computer Shutdown", 0+48 Next End Function

Yog li ua ntej nws tsim txoj haujlwm hu ua TimedMessageBox.

Tom qab ntawv 4 kab tom ntej yog Rau… Loop Tom ntej. Yog li lub voj no yuav voj tsib zaug nqes los ntawm ib qho zuj zus.

objWshShl. Popup "Computer yuav kaw hauv" _ & IntCounter & "seconds", 1, "Computer Shutdown", 0+48

Cov cai no tsuas yog ib kab ntawm cov cai, nws tsuas yog sib cais rau lwm kab siv tus cim "_" kom yooj yim nyeem. Tus lej no ua dab tsi yog nws tsim cov lus popup uas kav ntev li 1 vib nas this tso tawm cov vib nas this sab laug mus txog thaum kaw siv IntCounter sib txawv.

Thaum lub voj no loops tsib zaug, nws txuas ntxiv nrog tsab ntawv.

Nov yog cov haujlwm tom ntej:

Function ShutdownComputer objWshShl. Run "Shutdown /s /f /t 0", 0 End Function

Txhua yam no yog kaw lub computer siv cov lus txib khiav. Nov yog cov hloov pauv siv: /s /f /t. Cov /s txhais tau tias kaw, /f txhais tau tias kaw txhua daim ntawv thov yam tsis ceeb toom, /t yog lub sijhawm hauv vib nas this ua ntej kaw. Koj yuav pom tom qab cov lus txib ntawd muaj tus lej xoom ", 0". Qhov no tsuas yog ua rau kom tsis muaj cmd tus poj ntsuam flashes thaum kaw qhov hais kom ua tiav.

Kauj Ruam 3: Vam tias Qhov No Pab Tau

Vam tias Cov Lus Qhia no tau pab yog tias koj xav tau kev pab ntxiv lossis muaj lus nug thov hu rau kuv lossis tawm lus tawm tswv yim.

Pom zoo: