Hi Marcus,
is it possible to send a STRG+A? This is the usual way to mark a field completely.
>Hello,
>
>Hope somebody here can help me. I have the following problem. Just want to send keystrokes to a SAP mask (Input-field).
>Works fine with nearly all keystokes.
>Now I want to mark the whole field to delete it.
>
>I use :
>
>#Define VK_END 0x23
>#Define KEYEVENTF_KEYUP 2
>
>= keybd_event(VK_SHIFT, 0, 0, 0)
>= keybd_event(VK_END , 0, 0, 0)
>= keybd_event(VK_END, 0, KEYEVENTF_KEYUP, 0)
>= keybd_event(VK_SHIFT, 0, KEYEVENTF_KEYUP, 0)
>
>Shift + TAB works fine, VK_END on its own works fine. But not the combination of SHIFT+END. Cursor just goes to the end without highlighting the text. In SAP the SHIFT + END works fine (manually)
>
>Any help is appreciated
>
>Thanks in advance
>
>Marcus
Best Regards
-Tom
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.
Oh, and BTW: 010101100100011001010000011110000101001001101111011000110110101101110011