Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Determines whether a string is selected
#2
Many editors copy entire line if there is no selection. Some have an option to turn off it.
Then the text usually ends with newline character. If I don't need entire lines:

Macro Macro3237
Code:
Copy      Help
_s.getsel
out _s.len
if(_s.len=0) ret
if(_s[_s.len-1]=10) mes "please select a word, not entire line"; ret
out _s

Else don't know.


Messages In This Thread
RE: Determines whether a string is selected - by Gintaras - 08-29-2022, 06:35 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)