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 :)