I send "Ctrl+Shift+Left" to select a word,
but "editor.seltext" returns an empty string.
if a word is selected already, there are no problems.

Why ? 


sub Knowledge
    Dim SearchText
    Set editor = newEditor()
    editor.assignActiveEditor
    if editor.seltext="" then 
      Set WSHShell = CreateObject("WScript.Shell")
      _WSHShell.sendkeys "^+{LEFT}",True_
    end if
    SearchText = editor.seltext    
    msgbox SearchText
end sub


-- 
<http://forum.pspad.com/read.php?2,32049,32049>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem