Set curso to the start of the word and call SelStart() foolowed by SelLength(length_of_the_word)
or Set cursor to start of the word and call editorCommand(ecSelWord) -- <https://forum.pspad.com/read.php?2,71873,71874> PSPad freeware editor https://www.pspad.com
