Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
String Manipulation bug
#2
Fails when s is empty because no text is selected.

Add this after s.getsel:
if(!s.len) out "nothing selected. Run the macro again."; ret

Or maybe s.getsel does not work well with that window. It presses Ctrl+C and gets clipboard. Maybe it is too fast. Replace it with:
opt slowkeys 1; spe 100
key Cc
s.getclip


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)