Mouse Clicking
-
Hi, I am currently working on a project named "motion detection to control pc". It is a project which can assist paralysed patient to access the pc using facial movement. I have a webcam capturing movement of head and translate it to mouse(cursor) movement. I can move the mouse(cursor) by using the Cursor.property function, however, i am still unable to double click/right click the mouse using codes. Any can help? ***************************************************************************** Cursor.Position = new Point(Cursor.Position.X - 0, Cursor.Position.Y - 80); ***************************************************************************** Thanks~
-
Hi, I am currently working on a project named "motion detection to control pc". It is a project which can assist paralysed patient to access the pc using facial movement. I have a webcam capturing movement of head and translate it to mouse(cursor) movement. I can move the mouse(cursor) by using the Cursor.property function, however, i am still unable to double click/right click the mouse using codes. Any can help? ***************************************************************************** Cursor.Position = new Point(Cursor.Position.X - 0, Cursor.Position.Y - 80); ***************************************************************************** Thanks~
One way would be to interop out to the Windows SDK, and use SendMessage to send a mouse click windows message to the control. A VB version of something 'similar' is here.[^]
Regards Malc *********************************************