D1eg0

hello to all.
I do not speak English.

I need to emulate the FN key (to enter numbers) on windows mobile 5

it is possible

thanks.
greetings



Re: Smart Devices VB and C# Projects Emulate Keys

ScubaSteve20001

Look at the 'keybd_event' function in "coredll.dll". You will have to P/Invoke in order to use it. Look on msdn for further details.




Re: Smart Devices VB and C# Projects Emulate Keys

D1eg0

Thanks for your reply.
It's just what I am doing. But I don't know the virtual-key code of the key FN





Re: Smart Devices VB and C# Projects Emulate Keys

Christopher Fairbairn

Hi,

D1eg0 wrote:
It's just what I am doing. But I don't know the virtual-key code of the key FN

I bieleve you are talking about devices which have a QWERTY keyboard where the numbers are overlaid with the alpha characters, and there is a FN (function) key you can use to toggle between the buttons entering numeric and alpha characters. Is that correct

On Windows Mobile 6 there is a new API designed to perform this switch called SHSetImeMode (see MSDN's documentation at http://msdn2.microsoft.com/en-us/library/bb416403.aspx).

The Windows Mobile team blog discussed this subject in a blog entry titled "How do you dial 1-800-FLOWERS " available at http://blogs.msdn.com/windowsmobile/archive/2007/02/06/how-do-you-dial-1-800-flowers.aspx. You might find some of the comments to this entry of interest since it discusses some work arounds available to Windows Mobile 5.0 applications which desire the keyboard to be in a particular mode.

I am not aware of a particular key code you can send to switch modes due to how this functionality is implemented.

Hope this helps,

Christopher Fairbairn






Re: Smart Devices VB and C# Projects Emulate Keys

D1eg0

Thank you very much. It's just what I needed.
I admire your knowledge. Very good your blog
Greetings.