system events applescript events with wrong keyboard layout

Hi, I have a strange issue.

I am running a Windows XP VM under Mountain Lion, and log into another remote system via RDP from Windows. My standard keyboard layout for the mac is Hungarian, but I switch to US for the VM, and all keys work well when I type in the VM.

However, when I run an AppleScript with System Events events "simulating typing", some characters are off, I think mostly/only punctuation and other marks. The off characters do not even correspond to the Hungarian layout either! (Though maybe I could experiment more to identify if they correspond to any other layout.)

Where does this go awry what can I check?

Thanks!
 
Back
Top