send message to window [modified]
-
trioum wrote:
how can we send a ctrl+V message to window .I have handlw to that window
You can use
WM_PASTE
, if it's an edit control, directly and your intention is to paste some text from clipboard. Also you can try SendInput[^].Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com
-
trioum wrote:
how can we send a ctrl+V message to window .I have handlw to that window
You can use
WM_PASTE
, if it's an edit control, directly and your intention is to paste some text from clipboard. Also you can try SendInput[^].Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com
-
You should not be doing such a thing though, you've been asking it for something like a month here. So... Send key-stroke messages in this order: Control (Key down) S (key down) S (key up) Control (Key up)
It is a crappy thing, but it's life -^ Carlo Pallini
-
You should not be doing such a thing though, you've been asking it for something like a month here. So... Send key-stroke messages in this order: Control (Key down) S (key down) S (key up) Control (Key up)
It is a crappy thing, but it's life -^ Carlo Pallini
-
trioum wrote:
send me chunck of code
WRITE IT YOURSELF! Use PostMessage[^] with WM_KEYDOWN[^], WM_KEYUP[^] to send normal key press event. Similarly use WM_SYSKEYDOWN[^] and WM_SYSKEYUP[^] for sending a CTRL key press event.
It is a crappy thing, but it's life -^ Carlo Pallini
-
trioum wrote:
send me chunck of code
WRITE IT YOURSELF! Use PostMessage[^] with WM_KEYDOWN[^], WM_KEYUP[^] to send normal key press event. Similarly use WM_SYSKEYDOWN[^] and WM_SYSKEYUP[^] for sending a CTRL key press event.
It is a crappy thing, but it's life -^ Carlo Pallini
-
How would I know what were you doing? Is it difficult for you to show me your code?
It is a crappy thing, but it's life -^ Carlo Pallini
-
How would I know what were you doing? Is it difficult for you to show me your code?
It is a crappy thing, but it's life -^ Carlo Pallini