Reputation: 1032
I am using RemoteViewing VNC Server library for .NET to implement some custom VNC behaviour. (Send custom images instead of the desktop under certain conditions etc...)
Now I am adding keyboard functionality, and the library has this keyChange event which provides the X11 KeySym of the key and a boolean indicating wether it is pressed. So I want to fire a function when this event is raised that will pass this key to the local computer. I am however having a hard time finding a solution that will translate these X11 keysym to something Windows understands.
I would really appreciate it if someone could provide some info on how to write the logic that will send these X11 keysyms to Windows.
Upvotes: 0
Views: 679
Reputation: 7713
Ok, if I understand it right, you just want to translate the X11 KeySymbols to windows keycodes. I think you just have to create a dictionary, using as key the values found in keysymdef.h
(you've got it here for example) and as values the keycodes understood by SendKeys.
Hope this puts you on the track.
Upvotes: 1