Sending characters like ß, ü, ö, ä as string keys

Nov 27, 2013 at 9:29 AM
Hello I want to simulate some special symbols(like ß, ü, ö, ä) as string keys. But if I write the code like this,
new OnScreenKey { GridRow = 4, GridColumn = 1, Key =  new StringKey("ß", "ß")},
new OnScreenKey { GridRow = 4, GridColumn = 2, Key =  new StringKey("ä", "ä")},
Then during output, it always comes as '?' The desired letter does not come.

Can anyone help me and let me know if I am missing anything.

Regards
Avik Sen
Dec 3, 2013 at 5:11 AM
Hi Avik,

Are you using the code for version 2? It has better support for full unicode and some tests that show how the input looks on your system. Is it possible the font doesn't support those characters?

Cheers,
Mike


Dec 4, 2013 at 8:54 AM
Hi Mike,

Thanks for your advice. Can you let me know the link from where I can get the version 2.

The source code i am refering is uploaded on Dec 23, 2009. I am not sure if you are refering to this or any other version.

Regards
Avik Sen
Dec 17, 2013 at 12:32 AM
Ah, sorry. The best bet at the moment is to grab the source code for WPFKB and then update it use the InputSimulator nuget: Install-Package InputSimulator

I haven't really kept WPFKB up to date, it is more of a sample starting place since most people grab the code and modify it anyhow.

Hope that helps.
Mike