ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Way to receive any keystrokes from COM Add-in? (https://www.excelbanter.com/excel-programming/408361-way-receive-any-keystrokes-com-add.html)

Shahin Musayev

Way to receive any keystrokes from COM Add-in?
 
Hello everybody!

I'm developing a COM Add-in and it should run some routines in
response on keystrokes (like CTRL+C etc).

So I decided to use subclassing to resolve my problem. Using Spy++ I
identified that WM_KEYDOWN, WM_SYSKEYDOWN messages are sent to EXCEL7
window (workbook window). So I tried to subclass that one. But the
problem I faced is that my new window procedure receives WM_KEYDOWN,
WM_SYSKEYDOWN messages only in case key combination is not used by
Excel and not assigned to macro by OnKey method.

1) Is there any way to receive any keystrokes from COM Add-in?
2) Is there any way to override key combinations used by Excel and
defined by OnKey method?

Any help would be greatly appreciated, thanks!!!!

Shahin

Shahin Musayev

Way to receive any keystrokes from COM Add-in?
 
Any ideas?

Shahin Musayev

Way to receive any keystrokes from COM Add-in?
 
Hi, any ideas?

Shahin


All times are GMT +1. The time now is 07:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com