EDN Admin
Well-known member
Im trying to send CTRL-A to an application (notepad, for example) - I can send CTRL-V just fine, but sending some other common CTRL messages, like CTRL-F (find), I cant get working either.
<font color="#010001" size=2>
SendMessage</font><font size=2>(</font><font color="#0000ff" size=2>new</font><font size=2> </font><font color="#2b91af" size=2>HandleRef</font><font size=2>(</font><font color="#0000ff" size=2>this</font><font size=2>,notepadHWnd</font><font size=2>), (</font><font color="#0000ff" size=2>uint</font><font size=2>)</font><font color="#2b91af" size=2>WindowsMessages</font><font size=2>.</font><font color="#010001" size=2>WM_CHAR</font><font size=2>, (</font><font color="#2b91af" size=2>IntPtr</font><font size=2>)0x16, (</font><font color="#2b91af" size=2>IntPtr</font><font size=2>)(1)); //works just fine. but Changing 0x16 to anything else doesnt seem to work. </font>
<font size=2></font>
I tried successions of WM_KEYDOWN for ctrl and A, etc. What am I missing?
View the full article
<font color="#010001" size=2>
SendMessage</font><font size=2>(</font><font color="#0000ff" size=2>new</font><font size=2> </font><font color="#2b91af" size=2>HandleRef</font><font size=2>(</font><font color="#0000ff" size=2>this</font><font size=2>,notepadHWnd</font><font size=2>), (</font><font color="#0000ff" size=2>uint</font><font size=2>)</font><font color="#2b91af" size=2>WindowsMessages</font><font size=2>.</font><font color="#010001" size=2>WM_CHAR</font><font size=2>, (</font><font color="#2b91af" size=2>IntPtr</font><font size=2>)0x16, (</font><font color="#2b91af" size=2>IntPtr</font><font size=2>)(1)); //works just fine. but Changing 0x16 to anything else doesnt seem to work. </font>
<font size=2></font>
I tried successions of WM_KEYDOWN for ctrl and A, etc. What am I missing?
View the full article