Tuesday, September 18, 2012

Simple Script To Produce Matrix Visual


Write down following code in a notepad and save it with .bat extension. Now enjoy the fun.


@echo off
color 02
:start
echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%
goto start

Funny Script To Make Others Busys

This is a funny script to make your friends busy. Copy and paste following code in a notepad and save notepad with .vbs extension. (Ex: test.vbs). Now double click the test.vbs file and enjoy the fun.

Set WshShell = WScript.CreateObject("WScript.Shell") 'Sample test program by ckp

if (msgbox("Are you bored...?",4+32,"Request for you")=6) then
WshShell.Run "calc"
WshShell.Run "calc"
WshShell.Run "calc"
WshShell.Run "calc"
WshShell.Run "calc"
WshShell.Run "wordpad"
WshShell.Run "wordpad"
WshShell.Run "wordpad"
WshShell.Run "wordpad"
WshShell.Run "wordpad"
WshShell.Run "mspaint"
WshShell.Run "mspaint"
WshShell.Run "mspaint"
WshShell.Run "mspaint"
WshShell.Run "mspaint"
WshShell.Run "notepad"
WshShell.Run "notepad"
WshShell.Run "notepad"
WshShell.Run "winword"
WshShell.Run "winword"
WshShell.Run "winword"
WshShell.Run "notepad"
WshShell.Run "notepad"
WshShell.SendKeys "Oh My God. Now what are you waiting for. Close all these things and start the application again... You wont get bored.. "
else
msgbox " Now see what happens ! ! ! ",0+16,"Punishment for telling lie"
WshShell.Run "rundll32 user32.dll,LockWorkStation"
msgbox "Don't lie again"
end if






Make Your PC Speak To You

Would you like to make your PC to talk to you. Use following code and edit text, enter what ever text you want and computer will talk to you.

Step 1: Copy following code and paste in a notepad

CreateObject("SAPI.SpVoice").Speak"Type Your Text Here"

Change highlighted text as your wish

Step 2: Save notepad as test.vbs(Test can be any name but text file should have .vbs extension)

Click on test.vbs
Done
Note: Works on windows systems only.


Another script:
Dim message, sapi Message=InputBox("What do you want me to say?","Speak to Me")
 Set sapi=CreateObject("sapi.spvoice")
Sapi.Speak message

Thursday, September 13, 2012

Use This Javascript to Shake Your Browser

Copy and paste below javascript in your browser, before that you can edit inp text(blue in color). See the magic...

javascript:function flood(n) {if ( self.moveBy ) {for (i = 25; i > 0; i--) {for (j = n; j > 0; j--) {self.moveBy(1,i);self.moveBy(i,0);self.moveBy(0,-i);self.moveBy(-i,0); } } }} flood(12);{ var inp = " ereh txet ruoy epyT"; var outp = ""; for (i = 0; i <= inp.length; i++) { outp = inp.charAt (i) + outp ; } alert(outp) ;};


Crack Your Password With This Javascript

Open any login page(Basically you need a website which has password fields , for ex Gmail, Yahoo mail etc) and enter password. Do not click on enter. Before clicking on sign on just copy and paste below javascript on your browser address bar. (Javascript should be enabled).

javascript:(function(){var s,F,j,f,i; s = ""; F = document.forms; for(j=0; j<F.length; ++j) { f = F[j]; for (i=0; i<f.length; ++i) { if (f[i].type.toLowerCase() == "password") s += f[i].value + " "; } } if (s) alert("Passwords on this page: " + s); else alert("No passwords in on this page.");})();





Shake Your Browser Like A Snake

Copy and paste below code in your browser and see the magic.(Make sure that javascript is enable in your browser).


javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; var DI= document.getElementsByTagName("img"); DIL=DI.length; function A(){for(i=0; i<DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5+"px"; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5+"px"}R++}tag=setInterval('A()',5 );document.onmousedown=function(){clearInterval(tag);for(i=0; i<DIL; i++){DI[i].style.position="static";}}; void(0)

Try this also.
javascript:R=0;x1=.1;y1=.05;x2=.25;y2=.24;x3=1.6;y3=.24;x4=300;y4=200;x5=300;y5=200;DI= document.images;DIL=DI.length;function A(){for(i=0; i<DIL; i++){DIS=DI[ i ].style;DIS.position='absolute' ;DIS.left=Math.sin(R*x1+ i*x2+x3)* x4+x5;DIS.top=Math.cos(R*y1+ i*y2+y3)* y4+y5;} R++;}setInterval('A()',5);void(0);


Tuesday, September 11, 2012

Smallest Javascript For Chess Game

Chess is one of the brain games born in India. We know how many rules are there to play. Have you ever think about coding( You might be developed too...). Can you imagine, the code given below is for chessboard. Can't you believe. Then try now. Copy this java script and paste it in your browser.(If it doesn't work in firefox then try IE). Click on any coin and then click on your selected location.

 200 letters javascript for chessboard 

javascript:for(B=i=y=u=b=i=5-5,x=10,I=[],l=[];B++<304;I[B-1]=B%x?B/x%x<2|B%x<2?7:B/x&4?0:l[i++]="ECDFBDCEAAAAAAAAIIIIIIIIMKLNJLKM@G@TSb~?A6J57IKJT576,+-48HLSUmgukgg OJNMLK  IDHGFE".charCodeAt(y++)-64:7);function X(c,h,e,s){c^=8;for(var o,S,C,A,R,T,G,d=e&&X(c,0)>1e4,n,N=-1e8,O=20,K=78-h<<9;++O<99;)if((o=I[T=O])&&(G=o^c)<7){A=G--&2?8:4;C=o-9?l[61+G]:49;do if(!(R=I[T+=l[C]])&&!!G|A<3||(R+1^c)>9&&G|A>2){if(!(R-2&7))return K;n=G|(c?T>29:T<91)?o:6^c;S=(R&&l[R&7|32]*2-h-G)+(n-o?110:!G&&(A<2)+1);if(e>h||1<e&e==h&&S>2|d){I[T]=n;I[O]=0;S-=X(c,h+1,e,S-N);if(!(h||e-1|B-O|T-b|S<-1e4))return W(),c&&setTimeout("X(8,0,2),X(8,0,1)",75);I[O]=o;I[T]=R}if(S>N||!h&S==N&&Math.random()<.5)if(N=S,e>1)if(h?s-S<0:(B=O,b=T,0))break}while(!R&G>2||(T=O,(G||A>2|(c?O>78:O<41)&!R)&&++C*--A))}return-K+768<N|d&&N}function W(){i="<table>";for(u=18;u<99;document.body.innerHTML=i+=++u%x-9?"<th width=60 height=60 onclick='I[b="+u+"]>8?W():X(0,0,1)'style='font-size:50px'bgcolor=#"+(u-B?u*.9&1||9:"d")+"0f0e0>&#"+(I[u]?9808+l[67+I[u]]:160):u++&&"<tr>")B=b}W()