Problem with InputSimulator.IsKeyDownAsync while migrating to .NET Framework 4.0 and 4.5

Aug 8, 2013 at 6:25 AM
Edited Aug 8, 2013 at 7:39 AM

WPF Touch Screen Keyboard is a great project, but I have found one small issue.

While migrating it to .NET Framework 4.0 and 4.5 I realized that the InputSimulator.IsKeyDownAsync method which is being used in InstantaneousModifierKey class always return false. Thus the keys of type InstantaneousModifierKey does not work as expected, and the keys does not maintain proper state. Is there any other option to use in .NET Framework 4.0 and 4.5 instesd of using IsKeyDownAsync.

Avik Sen
Aug 18, 2013 at 11:24 PM
Sorry I didn't reply sooner. Have you had any luck with this? You could try using the newer version of InputSimulator that actually drives the WPF keyboard and see if it is more compatible.


Jan 30, 2014 at 6:54 PM
I debugged the InstantaneousModifierKey class and the IsInEffect variable is always set to false.