cmauri / eviacam

webcam based mouse emulator
GNU General Public License v3.0
145 stars 38 forks source link

Allow tracking when hotkey is held down #11

Closed nash8350 closed 6 years ago

nash8350 commented 6 years ago

Hey I really enjoy this program! The last camera mouse I tried was CameraMouse, and this is way more accurate! That said, I find it a little distracting that the mouse pointer is constantly moving as I look around the screen. I really only need to move the mouse just before a click. It'd be great if it could track on key down, wait for the cursor to position, and then stop tracking on key up. The reason for holding a key is because I use a USB switch for clicking and I would like to use it to enable tracking as well. Does that make sense? Would you be open to this kind of setting?

nash8350 commented 6 years ago

Hey so I figured out a way to make AutoHotKey do this. Now the mouse is only active when I hold down the F3 key. Closing this issue since it's not needed anymore.

holding:=false
F3::
  if(holding) {
    return
  }
  holding:=true
  Send {F3 down}
  Send {F11}
  return
F3 UP::
  holding:=false
  Send {F3 up}
  Send {F11}
  return