Click to See Complete Forum and Search --> : Mapping buttons
sakishrist
Jul 2nd, 2008, 07:10 AM
Hello,
What I need to do is to make my application use some of the device's buttons (including the 'yes' and 'no' buttons) and not let any other application use those buttons as usual even if my application is in the background. is there any way to do that? I use VB.NET.
Thanks!
sapator
Jul 2nd, 2008, 08:37 AM
There is an API "keybd_event" i think that also works with the CF coredll.
Apo elllada?
sakishrist
Jul 3rd, 2008, 05:24 AM
I will try to make it work, Thanks.
Nai, apo ellada (peripou).
sakishrist
Jul 3rd, 2008, 05:33 AM
I found a bit of information about 'keybd_event' here (http://msdn.microsoft.com/en-us/library/ms646304(VS.85).aspx) and i saw the MapVirtualKey Function (http://msdn.microsoft.com/en-us/library/ms646306(VS.85).aspx). Is that one going to help me? I have not tested any of these functions yet.
sapator
Jul 3rd, 2008, 06:05 AM
I don't think that MapVirtualKey Function is supported in CF.
keybd will help you Simulate a keystroke,yes.
Apo po pou re si? EllinoAmerik?
sakishrist
Jul 3rd, 2008, 06:21 AM
So ... will that make all other programs NOT accept that keystroke? ... I need to make my program to be the only one that will accept it even if it is in the background.
sapator
Jul 3rd, 2008, 06:30 AM
I don't know for sure. Never tried it but most probably you will have a problem if your app is in the background. Give it a try and let us know and will try to help.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.