01-18-2012, 11:13 PM
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
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
