aqEnvironment.SetKeyboardLayout always return false
Hi
I am trying to test multiple languages in our application and in order to do that i am trying to use the aqEnvironment.SetKeyboardLayout() method. The problem is that I get always false as the return, and i dont get to change the imput method. Even if a try the following example from the manual, the line with SetKeyboardLayout returns always false, and USEnglish is not set.
Any idea what i have to do to make it work?
Thanks
function IsLanguageSupportedExample()
{
Win32API.WinExec("notepad.exe", SW_NORMAL);
var wNotepad = Sys.Process("notepad");
var EditForm = wNotepad.Window("Notepad", "Untitled - Notepad", 1).Window("Edit", "", 1);
var USEnglish = 0x0409;
if (aqEnvironment.IsLanguageSupported(USEnglish))
{
aqEnvironment.SetKeyboardLayout(wNotepad.Id, USEnglish)
EditForm.Keys("Hello!");
}
else
{
Log.Message("The specified language is not supported.");
}
}