0

My c# project sends an injected key combo to the foreground window. In notepad, Firefox, IE9 everything works as it should, but Adobe Illustrator CS5 seems to misinterpret the sent combos: for example CTRL+G becomes CTRL+SHIFT+WHEEL_DOWN so instead of grouping selected objects it scrolls the page to the left. (A low level keyboard hook also confirmed that I'm sending the right combo.)

A quick test showed that there is method in this madness, so CTRL+F appears as CTRL+SHIFT+WHEEL_UP.

The system is Windows 7 64bit so at first I suspected some 32 vs 64 bit woe but things work properly in both 32 and 64 bit IE9.

4

1 回答 1

0

我不能肯定地说,但这听起来很像我的应用程序用户指出的问题(这就是我最终来到这里的原因,寻找线索!)。

对于我的应用程序,事实证明我需要在 Control keydown 事件和 C(在本例中用于复制)keydown 之间放置一些延迟。当作为单个组合同时发送时,结果非常不可预测。

http://www.strokesplus.com/forum/topic.asp?whichpage=1&TOPIC_ID=477#1024

于 2012-09-02T13:35:19.210 回答