Hi! I found an example with an OnScreen Keyboard using Luacom a while ago and I tried to modify it to use it to fill in input fields. It seems to work fine with all keys except the " and ' key. I tried a few things like adding "\" to escape it but it did not work.
It would be great if someone could take a look at the code below. Maybe someone knows how to fix this?
When you click a button this code is executed:
this is the typeIt function to add the letters:
But when I click on the " or ' key this error comes up:
It would be great if someone could take a look at the code below. Maybe someone knows how to fix this?
When you click a button this code is executed:
Code:
typeIt(Button.GetProperties(this));
Code:
if Button.GetState("ShiftLeft_btn") == 1 then Input.SetText(CurrentInput, Input.GetText(CurrentInput)..Char.ObjectName); elseif Button.GetState("CapsLock_btn") == 1 then if Char.FontSize == 15 then Input.SetText(CurrentInput, Input.GetText(CurrentInput)..Char.ObjectName); else Input.SetText(CurrentInput, Input.GetText(CurrentInput)..Char.TooltipText); end else Input.SetText(CurrentInput, Input.GetText(CurrentInput)..Char.TooltipText); end Button.SetState("ShiftLeft_btn", BTN_UP); Button.SetState("ShiftRight_btn", BTN_UP);

Comment