Announcement

Collapse
No announcement yet.

OnScreen Keyboard does not send " or '

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • OnScreen Keyboard does not send " or '

    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:
    Code:
    typeIt(Button.GetProperties(this));
    this is the typeIt function to add the letters:
    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);
    But when I click on the " or ' key this error comes up:
    Bl4ckSh33p-Soft - Custom Software and Indie Games

  • #2
    you should upload an APZ or share the link of original project (if it does same thing in original project too)
    the codes you have posted does not make any sense
    amsplugins.com Is Closed.

    Facebook Page

    Comment


    • #3
      I will try to put it into an apz soon!
      But its just a virtual keyboard and the buttons/keys ObjectText, Name or Tooltip text is used and then put into the currently selected input object. It works fine for all keys and special chars except " and '.
      Bl4ckSh33p-Soft - Custom Software and Indie Games

      Comment


      • #4
        Here is an example:
        Attached Files
        Bl4ckSh33p-Soft - Custom Software and Indie Games

        Comment

        Working...
        X