简体   繁体   English

WPF窗口外的Kinect for Windows v2手形光标

[英]Kinect for Windows v2 hand cursor outside WPF windows

I would like to write an application where you can use your hand instead of mouse. 我想编写一个可以用手代替鼠标的应用程序。 I wrote some WPF and use a hand style and it work good. 我写了一些WPF并使用了手工样式,效果很好。 But I want to use this control outside and WPF window, just like normal mouse coursor. 但是我想在外部和WPF窗口中使用此控件,就像普通的鼠标光标一样。 Is it possible to write it with Kinect For Windows V2 ? 是否可以使用Kinect For Windows V2编写它?

What you need is a service, but not WPF app. 您需要的是服务,而不是WPF应用程序。 So that it still can process input from Kinect in background, not only when your app is active and foreground. 这样,它不仅可以在您的应用处于活动和前台状态时,还可以在后台处理Kinect的输入。

You need to emit mouse move/click events in order to use it globally in the whole Windows OS. 您需要发出鼠标移动/单击事件,才能在整个Windows操作系统中全局使用它。 Here is one of examples on MSDN: https://social.msdn.microsoft.com/Forums/vstudio/en-US/1ea09f18-94f6-4f4f-bcba-d02da27beaa4/control-mouse-position-and-generate-click-from-program-c-winforms-aim-control-pc-from-serial?forum=csharpgeneral 这是MSDN上的示例之一: https : //social.msdn.microsoft.com/Forums/vstudio/en-US/1ea09f18-94f6-4f4f-bcba-d02da27beaa4/control-mouse-position-and-generate-click-从程序-C-的WinForms-AIM-控制-PC-从串行?论坛= csharpgeneral

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM