HI All , I have created a small program which will open notepad and write something to it .................................. infinitely . The program will die if somebody closes the window . To cut jokes with my friends I want to write a prgramm so that I can hide the Cmd then it will be very good . can any body know how to write such kind of program $SIG{INT} = 'IGNORE'; use Win32::GuiTest qw( :ALL); system "start notepad.exe"; sleep 1; my @whnds = FindWindowLike( undef, "^Untitled - Notepad" ); if( [EMAIL PROTECTED] ){ die "Cannot find window with title/caption Calculator\n"; }else{ printf( " Don't Close Ur computer will be virus affected " ); } while (1) { system "start notepad.exe"; SetForegroundWindow($whnds[ 0 ]); SendKeys("WISH U A HAPPY DEEWALI \n"); } any idea will be appreciated , Thanks in advance
--------------------------------- Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail.