It is the code in .vbs which allows you to print falling series of random numbers as shown above.

1.Open notepad.exe.
2.Type the following code in the notepad.

echo off
color 02
:MAT
echo  %random%%random%%random%%random%%random%%random%%random%%random%
%random%%random%%random%%random%%random%%random%%random%%random%
goto MAT
3.Save above file as .vbs.
4.Open the vbs file and you will get the desired output.


It is just one line code in .vbs which allows you to listen desired message from your computer.You can use this application as narrator .

1.Open notepad.exe.
2.Type the following code in the notepad.
CreateObject("SAPI.SpVoice").Speak"Enter your message"
3.Save above file as .vbs.
4.Open the vbs file and you will hear the message written inside the " ".


Actually we are making a diary that keeps record of your data along with the current date and time in your notepad.

1.Open notepad.exe
2.Type .LOG in notepad and save it with any name.
3.Now open the notepad and you will see the current date and time of the system,then enter the data and close it.
(It saves your data each time with date and time of the system. )


TYPE THE FOLLOWING CODE AND COMPILE IT WITH C++ COMPILER

To Lock USB
#include<stdio.h>
int main()
{
system("reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\USBSTOR \/v Start \/t REG_DWORD \/d 4 \/f");
return 0;
}

To Unlock USB
#include<stdio.h>
int main()
{
system("reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\USBSTOR \/v Start \/t REG_DWORD \/d 3 \/f");
return 0;
}

ALGORITHM : DDALine ( X1, Y1, XN, YN)
Here X1 and X2 denotes starting X and Y coordinates,whereas XN and YN denotes ending X and Y coordinates of the line.M is the slope of the line,DX and DY are change in X and Y coordinates respectively.

1.Set M = (YN – Y1) / (XN – X1). [Slope Of Line]
2.Set I=X1.[Initialize Counter ]
3.Repeat steps 4,5 and 6 while I <=XN.
4.If (M <= 1) Then
Set DX = 1 and Set DY = M * DX
Else
Set DY = 1 and Set DX = DY / M
[End Of If.]
5.Set X1 = X1 + DX and Set Y1 = Y1 + DY.
6.Call PutPixel(X1, Y1)
7.Set I=I+1.[Increment Counter]
[End Of Loop.]
8.Exit.


If you have any suggestions regarding this post, please comment below in the comment section.

Followers