Posted 20 years ago
by painetraine
I was wondering if anyone has tried to do a SendMessage to SyntaxEditor.
I am basically trying to capture keystrokes and replace them (to implement keyboard macros) and am able to capture all keystrokes (WM_KEYDOWN and WM_KEYUP) messages using IMessageFilter.
I then want to replace the wm_keyup and wm_keydown messages to the query editor by using SendMessage and passing the correct values. When I do a SendMessage to SE using KeyDown and KeyUp for a specific key, I would expect it to go into the message loop and be processed as if the user had pressed the key but it doesn't seem to do anything.
Has annyone tried this or have any ideas on how to sendmessages to SE and have the editor process them?
(I really don't want to use SendKeys although I couldn't get that to work correctly and it seemed to hang my machine when I sent keys to SE)
Thanks
I am basically trying to capture keystrokes and replace them (to implement keyboard macros) and am able to capture all keystrokes (WM_KEYDOWN and WM_KEYUP) messages using IMessageFilter.
I then want to replace the wm_keyup and wm_keydown messages to the query editor by using SendMessage and passing the correct values. When I do a SendMessage to SE using KeyDown and KeyUp for a specific key, I would expect it to go into the message loop and be processed as if the user had pressed the key but it doesn't seem to do anything.
Has annyone tried this or have any ideas on how to sendmessages to SE and have the editor process them?
(I really don't want to use SendKeys although I couldn't get that to work correctly and it seemed to hang my machine when I sent keys to SE)
Thanks