Page 1 of 1
Developing a custom SIP

Posted:
Jan 1, 2003 @ 12:17am
by ZaG
I'm developing my own input keyboard for my PocketPC. I've got it all set up and am able to use it in the SIP and everything works when I hit keys except I can't get the enter key and tab keys to work. Has anyone built a custom SIP? I'm using the SendVirtualKeys method to send VK_RETURN and VK_TAB when the enter or tab keys are pressed in my SIP but neither works. I have other keys working correctly (like backspace) so I know the basic code is working it is just these 2 keys. When I send the tab it does nothing at all and when I send the enter key it closes the file I was editing. I can't figure out why.
If any one has any thoughts on how to make this work I'd love to hear them!
ZaG

Posted:
Jan 1, 2003 @ 1:55am
by Dan East
The enter key is used to trigger the "Ok" button in dialogs by default. So that may be the correct behavior. Have you tried using the builtin SIP to see how it behaves with that app? The other thought that comes to mind is that you might be directing the messages the wrong window, which is capturing only the tab and enter messages.
Dan East

Posted:
Jan 1, 2003 @ 7:19pm
by ZaG
Thanks for the ideas. I did think about the idea that my messages might be going to the wrong window but since backspace and character keys are working alright that doesn't seem to be the problem.
The built-in sips all work fine so obviously what I am doing is not the right way to do it. I'm going to write a small text entry app that displays whatever key codes for whatever key strokes are sent to it so I can see what the built-in sips are sending for enter and tab.
ZaG