I have a multitoch-enabled tablet PC running Windows 7.
However, when using the stylus pen and getting too far away from the display, I often accidently hit it with my fingers which causes unwanted mouse-clicks.
The solution is navigating to “Control Panel – Pen- and Finger Input – Finger Input” and deactivate the checkbox “Use the finger as an input device” (all titles translated so they might be different on an English windows).
Now I am wondering whether I can do this programmatically, too, so I would be able to write a little tray app for this.
I tried using Process Monitor to find out registry keys, however, I did not find one which really shows the same effect as the checkbox.
Does anyone know how to access this property (without using UI-Automation)?
This can be done by manipulating the
MICROSOFT_TABLETPENSERVICE_PROPERTYflag set.(I am not taking the credits for this one, soure)
The important parameter is the hWnd handle you pass to SetProp. GetDesktopWindow returns the handle of the desktop window. Setting this for the desktop window should deactivate it for all windows on the desktop and the desktop itself. Note however that this won’t be a constant change (reboot will undo it).
Possible values you can use are
( http://msdn.microsoft.com/en-us/library/bb969148%28VS.85%29.aspx )