Does exist a way to simulate key press to an other program which is running ?
Clearly, I've wrote a letter in a textbox, and then my program is telling to an other program that the equivalent key has been pressed.
It's great ! This is what i've wanted and more, I understand message principes ! Thanks.
I've change WM_CHAR with WM_KEYDOWN and I can control notepad like I'm working on it but I'm on my program in fact. However, in that way I've some troubles : I can't use ctrl+c or ctrl+v, the copy\paste function whereas I use ctrl+F, do you know why? I've changed postmessage api to sendmessage, then F3 key no longer open search notepad window -it's strange, isn't it? -.
How use makepoints macro in vb?
Last edited by IsWorking; Oct 31st, 2005 at 10:59 AM.
You can play around with this:
I subclassed the textbox
Then forwarded either the WM_CHAR messages or the WM_KEYUP and WM_KEYDOWN messages to Notepad with mixed results
Thanks for this program, this is what I was trying to do. I have not already understood all but I'm progressing. Can we do the same things for mouse?
I'm surprised why can I not launch context menu with special key or use alt button to get access to the menu ?