StylusDown External Application Window Detection
Simple question, I hope that there will be no answer: "You cannot" :-)
How (in code) can I subscribe to the stylus "global" event. Windows 7 clearly does this in some way, as the small tablet icon appears as soon as I use the stylus (wacomm pen and touch, but that seems out of place).
I want to create a simple drawing application that runs quietly in the background (maybe small icons on the taskbar) and appears as soon as I lift my stylus and start drawing.
I can do it all with a window, but StylusDown is an attached UI property. Is there some kind of global property?
A translucent window that overlaps my entire desktop all the time is not "really" an alternative.
Chris
source to share
Short:
You can not.: -)
Long
You are using p / invoke to call the Windows API function GetCursorPos .
[DllImport("user32.dll")]
public static extern bool GetCursorPos(out Point pt);
You can call this function periodically to keep the timer updated.
source to share