Xojo Conferences
XDCMay2019MiamiUSA

[MBS] convert a virtualKeyCode to an actual character (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] Feature request :)
Next thread: [MBS] QTGrabber Error


Re: [MBS] AuthorizationMBS   -   Garth Hjelte
  [MBS] convert a virtualKeyCode to an actual character   -   MBS Mailingliste
   Re: [MBS] convert a virtualKeyCode to an actual character   -   Christian Schmitz

[MBS] convert a virtualKeyCode to an actual character
Date: 10.04.12 14:02 (Tue, 10 Apr 2012 15:02:01 +0200)
From: MBS Mailingliste
Hello,

I need to convert a virtualKeyCode to an actual character of russian
language
So the virtualkeycode should be converted to the correspondig russian glyph

I think that I could do that with native Windows API calls like
GetKeyboardLayout
ToUnicodeEx

but I wonder if I could do the same using MBS functions.

I've found
RemoteControlMBS.WinVirtualKeyCodeToCharCode(VirtualKeyCode as integer) as
integer

I've tried this:
dim sChar as string
dim iChar as integer

iChar = RemoteControlMBS.WinVirtualKeyCodeToCharCode(myVKcode)
sChar = chr(iChar)
sCharÀnvertEncoding(sChar,Encodings.UTF8)

Then I save sChar to a textfile
But when I open the textfile (UTF8) I see only english letters like abc....
no cyrillic

Any chance to do this?

Heinz

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] convert a virtualKeyCode to an actual character
Date: 10.04.12 17:48 (Tue, 10 Apr 2012 18:48:50 +0200)
From: Christian Schmitz

Am 10.04.2012 um 15:02 schrieb MBS Mailingliste:

> Hello,
>
> I need to convert a virtualKeyCode to an actual character of russian
> language
> So the virtualkeycode should be converted to the correspondig russian glyph
>

Sorry, no idea about this.

Greetings
Christian