June 6, 200619 yr I am creating an on screen keyboard for a touch screen and I can not figure out how to send a command that executes a backspace or a (delete). I need to navigate forwards, backwards and delete one letter at a time. Any suggestions?
June 6, 200619 yr Author I am also having trouble with typing quote marks. How do you define quotes in a script?
June 6, 200619 yr You can read the current position of the cursor using the Get( ActiveSelectionStart ) and Get( ActiveSelectionSize ) functions and change it using the companion script step Set Selection. This way you can move back and forth. To delete individual characters you can use the Clear script step.
June 6, 200619 yr See also the demo file posted here. Regarding your second question, see: Help > Creating a database > Working with formulas and functions > Identifying text constants and special characters in formulas
June 9, 200619 yr Author See also the demo file posted here. Regarding your second question, see: Help > Creating a database > Working with formulas and functions > Identifying text constants and special characters in formulas Thanks for your sample file post.
June 9, 200619 yr Author You can read the current position of the cursor using the Get( ActiveSelectionStart ) and Get( ActiveSelectionSize ) functions and change it using the companion script step Set Selection. This way you can move back and forth. To delete individual characters you can use the Clear script step. I have read up on the get functions that you mentioned but I have not had any luck trying implement what you have described.
June 10, 200619 yr Author Here is a sample keyboard for a touch screen that illustrates what I am trying to do and where I am getting stuck with the delete and navigation buttons. Any help would be greatly appreciated. KEYBOARD.zip
June 11, 200619 yr Author After some sleep the scripts in the posted samples made more sense. I kept getting confused between script functions and calculation function. So much has changed since FM 5.5. I've just about got it all working. Thanks for everyone's help.
June 11, 200619 yr Author You can read the current position of the cursor using the Get( ActiveSelectionStart ) and Get( ActiveSelectionSize ) functions and change it using the companion script step Set Selection. This way you can move back and forth. To delete individual characters you can use the Clear script step. I've got the navigation working, and I can delete characters one at a time, but I can not keep the "Get ActiveSelection" script step from highlighting characters so new text can be inserted without deleting a character.
Create an account or sign in to comment