Click here to Skip to main content
15,881,044 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am developing a kinect application, and now I can set the mouse cursor to middle of screen when my hand is reconized by kinect sensor. However, this just happen when run the application. I want that this happen when hand is detected by the kinect sensor during execution. Somebody can help me? I send the code that I have now:

if (frames < 70)
{
   // set the cursor to the middle of the screen
   Cursor.Position = new System.Drawing.Point(
   // Screen.PrimaryScreen gets the primary display
   Screen.PrimaryScreen.Bounds.Width / 2,
   Screen.PrimaryScreen.Bounds.Height / 2
   );
   // increment the number of frames
   frames++;
}


What I have tried:

Set the mouse cursor when app runs.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900