B2005 - How do I stop text in a text entry field from being prehighlighted?

by - Joseph Ganci

I'm using PresetEntry to preset text to go into a TextEntry response. When I run the program, the preset text looks like it's already selected: it's got a black box around it. I would like it to be deselected (with no black box around
the text). Does anyone out there know how to do this?

This is a real problem
because since the text is already highlighted, if the user hits a key, like
the letter "a", it will replace the text that's already in the field.
Here's a way around it. In your script, after you set up your preset
entry, force a right arrow:

PresetEntry := "MyText"
PressKey("RightArrow")

This forces the cursor
to move to the end of the preselected text, thereby deselecting it.