intercepting wm_char messages
Thank you very much Mr.Shehzad_Salim
The problem i have is i have to intercept all key events and track the wm_char message generated by that keydown event and send to any application which is having the current focus.
For example if a user is typing in word and if he selects my font then he should be able to type in that or if he chose notepad or photoshop then he should be able to type in that application and using my application they should be able to get access to those extended ascii characters.
intercept wm_char messages
Thank you very much Mr.Shehzad_Salim
i managed to get the handle of the active window ie formost window using the api GetForegroundWindow
i read about IsKindOf function and it is really beyond my level to understand what has given in that msdn article.
Sir i have got the keystrokes and i managed to combine the keystrokes also and i want to do is to intercept the message that window is generating for that keydown event and from that message take wm_char parameter and change that parameter.
Sir i need your help in
1. How to intercept that message before it goes to the respective application.
2.how to obtain wm_char message from that intercepted message.
3.How to change ?
4 how to send to the active application?
Thanks in advance
rv vimal
intercepting wm_char message
Thank you very much Mr.Shehzad_Salim
Sir i need little detailed answers and how to implement practically with if possible with an example.
1. How to intercept that message before it goes to the respective application or any application , from my application.
2.how to obtain wm_char message from that intercepted message.
4.How to prevent that message from going to its defalut application.
3.How to change the wm_char message and load my own exteded ascii wm_char message ?
4 how to send to the active application or to the application that message to be send ?
Sir I want answers in the form of 1,2,3 & 4 for each question and if possible elobrate answers for me to apply that codings in my aplication.
Thanks in advance
rv vimal
Re: intercepting wm_char message
Quote:
Originally posted by rvvimal
Thank you very much Mr.Shehzad_Salim
Sir i need little detailed answers and how to implement practically with if possible with an example.
1. How to intercept that message before it goes to the respective application or any application , from my application.
2.how to obtain wm_char message from that intercepted message.
4.How to prevent that message from going to its defalut application.
3.How to change the wm_char message and load my own exteded ascii wm_char message ?
4 how to send to the active application or to the application that message to be send ?
Sir I want answers in the form of 1,2,3 & 4 for each question and if possible elobrate answers for me to apply that codings in my aplication.
Thanks in advance
rv vimal
Check the below link
http://www.codeproject.com/system/hooksys.asp
This would help you in intercept messages.......