Quantcast
Channel: Hyper-V forum
Viewing all articles
Browse latest Browse all 8743

Sending Keys through VM Console incorrect Ascii mapping (openSUSE)?

$
0
0

Hi All,

I'm using a Hyper-V environment, and using Powershell to send keys via the console to the SUSE VM for setup scripting. This all works fine with CentOS, Debian, Fedora and Ubuntu.

However, with SUSE 13 when I sent keys from powershell using the following commands:
$VMConsole = Connect-VMConsole
$KB = $VMConsole.VSMKB
$KB.TypeText("root")

It does not work. On further investigation I found that using TypeKey or TypeText it sends the keystrokes using standard ascii table as found at:http://www.bluesock.org/~willg/dev/ascii.html

However, SUSE interprets using a different ascii table, found at: http://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx

I can provide this by sending:
$KB.TypeKey(0x6B)
This produces the character + on the console.

Whereas, it should produce the character: k

This only seems to happen on OpenSUSE (at least it doesn’t happen on CentOS, Ubuntu, Debian or Fedora).

Have you got any ideas? I’ve tried resetting the keyboard to US layout on the SUSE VM, and I’ve also tried using loadkeys us.

Cheers
Will


Viewing all articles
Browse latest Browse all 8743

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>