Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Mouse Clicking

Mouse Clicking

Scheduled Pinned Locked Moved C#
helpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Cassiopeiaxy
    wrote on last edited by
    #1

    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~

    M 1 Reply Last reply
    0
    • C Cassiopeiaxy

      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~

      M Offline
      M Offline
      Malcolm Smart
      wrote on last edited by
      #2

      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 *********************************************

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups