ya thats the problem itz giving,,,,u wont believe wht it did when i complied this script to exe and excueted ..at that time my yahoo messenger was running it automatically selected eac one of my friends and sended the message ""this is test"" it happened because of winwaitactive command ..i dint specify particular window to take over...thanx so much let me try 1st on my behalf if smoething goes wrong than i wil ask u...thanx