Evening! I am hoping someone here can aid in my understanding of this section of default code:
TLDR: Is there any easy way to remove only the last input command from text input?
Label: process_letter
Condition: if number L:0004 Letter Counter is Lesser than L:0002 Number of Letters
>Variable: L:0004 Letter Counter Add Value 1
>Condition: if switch L:0001 ABC Selected is equal to ON
>>Number Variable: L:0001 Letter Sub Value 1
>>Get from List: L:0001: Letters index L:0001 Letter Value Text Store in L:0002 Letter
>>Text Variable: Text L:0003: Text Append Variable L:0002: Letter
{LT:2}
>Else: Number Variable: L:0001 Letter Sub Value 1
>>Get from List: L:0002 Symbols index L:0001 Letter Text store in L:0002 Letter
>>Text Variable: text L:0003 Text Operation Append Variable L:0002 Letter
[object Object]
>>Refresh Text: 300
Idle
I can't really find much information on the 'append' command. I follow that it is adding a text key to the end of a phrase here, and possibly 'append' always adds to the end. (I see no place where it specifies unless I am misinterpreting a line somewhere.) I also am not sure what this line is doing at all:
>>Text Variable: text L:0003 Text Operation Append Variable L:0002 Letter
[object Object]
As I do not know json, at least not yet.
My reason for asking is I noticed there is no delete hot key in the default input. It has 'clear all', but all that does is set the text back to nothing. In theory I could let them delete a key by somehow assigning each letter to a switch or common event, but yikes. So my main question: Is there any easy way to remove only the last input command from text input?
Side note- I typed it out as above because to me it is much easier to read. If someone would prefer actual screenshots I certainly can do so.
TLDR: Is there any easy way to remove only the last input command from text input?
Label: process_letter
Condition: if number L:0004 Letter Counter is Lesser than L:0002 Number of Letters
>Variable: L:0004 Letter Counter Add Value 1
>Condition: if switch L:0001 ABC Selected is equal to ON
>>Number Variable: L:0001 Letter Sub Value 1
>>Get from List: L:0001: Letters index L:0001 Letter Value Text Store in L:0002 Letter
>>Text Variable: Text L:0003: Text Append Variable L:0002: Letter
{LT:2}
>Else: Number Variable: L:0001 Letter Sub Value 1
>>Get from List: L:0002 Symbols index L:0001 Letter Text store in L:0002 Letter
>>Text Variable: text L:0003 Text Operation Append Variable L:0002 Letter
[object Object]
>>Refresh Text: 300
Idle
I can't really find much information on the 'append' command. I follow that it is adding a text key to the end of a phrase here, and possibly 'append' always adds to the end. (I see no place where it specifies unless I am misinterpreting a line somewhere.) I also am not sure what this line is doing at all:
>>Text Variable: text L:0003 Text Operation Append Variable L:0002 Letter
[object Object]
As I do not know json, at least not yet.
My reason for asking is I noticed there is no delete hot key in the default input. It has 'clear all', but all that does is set the text back to nothing. In theory I could let them delete a key by somehow assigning each letter to a switch or common event, but yikes. So my main question: Is there any easy way to remove only the last input command from text input?
Side note- I typed it out as above because to me it is much easier to read. If someone would prefer actual screenshots I certainly can do so.