I wrote touchless mouse for the LeapMotion device (see Code) The problem is that the mouse listener is only active if the winform is on top and has focus. If it lost the focus the program cannot control the cursor. I tried to set the "always ontop" or " topmost" property on "true".
public Form1()
{
InitializeComponent();
this.ShowInTaskbar = false;
this.Opacity = 0;
this.TopMost = true;
}
Yet, this does not alter the fact that when the window lost its focus it stop to control the cursor. How can I implement it that the window or program is active and moves the cursor around even when it has no focus?