We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More
This site is now read-only. You can still browse and search as usual. Learn More
That's because the KeyDown and KeyUp commands don't take the ASCII character string but the VK Code for the ascii character. You need to call a Win32API method to get this to really work properly. Something like
function testlp(value){
var i;
for (i = 0; i < value.length; i++){
var chrK = Win32API.VkKeyScan(value[i]);
LLPlayer.KeyDown(VK_SHIFT, 200);
LLPlayer.KeyDown(chrK, 200);
LLPlayer.KeyUp(chrK, 200);
LLPlayer.KeyUp(VK_SHIFT, 200);
}
} That's because the KeyDown and KeyUp commands don't take the ASCII character string but the VK Code for the ascii character. You need to call a Win32API method to get this to really work properly. Something like
function testlp(value){
var i;
for (i = 0; i < value.length; i++){
var chrK = Win32API.VkKeyScan(value[i]);
LLPlayer.KeyDown(VK_SHIFT, 200);
LLPlayer.KeyDown(chrK, 200);
LLPlayer.KeyUp(chrK, 200);
LLPlayer.KeyUp(VK_SHIFT, 200);
}
} Thank you, it works !