Hello Farzad, I know this was posted a while back, but I want to help. As it turns out, I was working on a similar program not to long ago and was able to modify it for your use. It's kind of hodge-podged together. It uses a Mouse-hooking class written in C# I came across somewhere on the net and modified for my use. The main form is written in Visual Basic .NET. You can download the code from: HERE Hope that's what you needed, Ray