简体   繁体   中英

Hook keyboard not registering first key when typing?

I've a hook keyboard class created and it's working fine. It's created to catch when keys are typed in T-SQL editor for VS 2012 and 2010. The only problem I got is that in VS2012 it's not registering my first keystroke. It's not global hook, it's apps. In VS2010 it's working great. I've checked everything and couldn't find where to look for this problem. After you type in the first character window form is showing and then you type in the second character and that one is shown nicely. On first keystroke that is not registered form is shown as it should just as I made it, but somehow I am not sure what is happening in 2012 and my first key is not being shown.

Thanks for the help.

尝试将日志记录重定向到文件,并在没有单独使用该应用程序的情况下进行测试。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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