那里,
我也开始使用kinect和c#。所以我希望我的问题有一个简单的答案。
iam getting started with kinect and c# too. So i hope there is an simple answer for my question.
我从kinect SDk中获取了SlideshowGestures-WPF样本,并使用来自系统的FindWindow()/ SetForegroundWindow()对其进行了修改。 Windows.Forms获取一个也加载了浏览器窗口(Chrome,Firefox,无论如何)并将其启动。没问题,它可以达到。
I take theSlideshowGestures-WPF sample from kinect SDkand modified it with FindWindow() / SetForegroundWindow() fromSystem.Windows.Forms to get an also loaded browser window (Chrome, Firefox, whatever) and bring it up. No problem, it works up to this.
但是当我开始通过SendKeys.Send("{DOWN}")向浏览器发送密钥时;示例应用程序崩溃并显示以下消息:
But when i start to send an key to the browser via SendKeys.Send("{DOWN}"); the sample applicaton crashes with the message:
System.Windows.Forms.dll中出现未处理的"System.InvalidOperationException"类型异常。
帮助表示赞赏:)
greez
ee
推荐答案首先要确保您的发送到的应用程序处于活动状态,错误=
没有活动的应用程序可以发送击键。 first be sure the application your sending to is active, the error =
|
发布评论