TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
webb webbhelp
NA
13
7.7k
Mouse background hook
Aug 30 2010 2:13 PM
Hi!
I am trying to hook mouseevents in the background but I don't get everything to work :/
public UserActivityHook actHook;
private void mouseclicker_Load(object sender, EventArgs e)
{
actHook = new UserActivityHook(); // create an instance
// hang on events
actHook.OnMouseActivity+=new MouseEventHandler(MouseMoved);
actHook.KeyDown+=new KeyEventHandler(MyKeyDown);
actHook.KeyPress+=new KeyPressEventHandler(MyKeyPress);
actHook.KeyUp+=new KeyEventHandler(MyKeyUp);
}
public void MyKeyDown(object sender, MouseEventArgs e)
{
MessageBox.Show("CLICK");
}
the problem is:
public UserActivityHook actHook;
The type or namespace name 'UserActivityHook' could not be found (are you missing a using directive or an assembly reference?)
That error message do I got.
Please help me out here :)
Reply
Answers (
11
)
try catch problem in C#
Drawing a line between two points with Mouseclick