[UWP]如何向Windows10系统注入笔事件? [英] [UWP]How to inject pen event to Windows10 system?
问题描述
从MSDN,我们可以使用类InputInjector将pen事件注入系统。我可以编译代码而不会出错,但在运行时会出现异常吗?
b
输入注入器
https://msdn.microsoft.com/ library / windows / apps / windows.ui.input.preview.injection.inputinjector
代码,
InputInjector ^ inputInjector = InputInjector :: TryCreate();
$
错误,
testPenInjection.exe中的0x76E3A732抛出异常:Microsoft C ++异常:Platform :: AccessDeniedException ^ at memory位置0x038DDFF0。 HRESULT:0x80070005访问被拒绝。
WinRT信息:访问被拒绝。
From MSDN, we can use the class InputInjector to inject pen event to system. I can compile the code without error, but get exception when run it?
InputInjector
https://msdn.microsoft.com/library/windows/apps/windows.ui.input.preview.injection.inputinjector
Code,
InputInjector^ inputInjector = InputInjector::TryCreate();
Error,
Exception thrown at 0x76E3A732 in testPenInjection.exe: Microsoft C++ exception: Platform::AccessDeniedException ^ at memory location 0x038DDFF0. HRESULT:0x80070005 Access is denied.
WinRT information: Access is denied.
这里有类似的问题论坛,但没有答案!
There is similar question in this forums, but no answer!
https://social.msdn.microsoft.com/Forums/en-US/1a46f7e2-d7b6-42af-8dd9-c77f3e83586d/uwp-inputinjector?forum = wpdevelop
https://social.msdn.microsoft.com/Forums/en-US/1a46f7e2-d7b6-42af-8dd9-c77f3e83586d/uwp-inputinjector?forum=wpdevelop
谢谢!
推荐答案
您好Cloud Yang,
Hi Cloud Yang,
我可以重现您与相关团队联系的问题。
I can reproduce your issue that I’m contacting with the relevant team.
如果任何更新,我会及时更新。感谢你的耐心。
If any update, I’ll update here in time. Appreciate your patience.
最好的问候,
Jayden Gu
Jayden Gu
>
这篇关于[UWP]如何向Windows10系统注入笔事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!