Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selected pasted characters
#1
Hello, I have defined an Autotext.

Pasted text, I need to always be at the begin of the line, then keep selected,

How to keep selected?  is this possible?  Thanks in advance

I use code ('SH)to delete the begin characters in a line. Is there a better way?



Autotext test
Trigger $t     Help - how to add the trigger to the macro
Code:
Copy      Help
/b/i/c/m
te :sub.Sub1 ;;test


#sub Sub1 m

'SH ;;Delete characters in line

_s=
F
;line1
;line2
;line3
;line4
;line5
;line6
paste(_s)

;code: Selected pasted characters
#2
I solved this problem, is there a better way?  Smile
Can be achieved with pointer?
In the case of automatic line break, my method will have problems 
Sad



Autotext test
Trigger $t     Help - how to add the trigger to the macro
Code:
Copy      Help
/b/i/c/m
te :sub.Sub1 ;;test


#sub Sub1 m

'SH ;;Delete characters in line

_s=
F
;QMITEM qmac; int imac
;ARRAY(str) amac
;rep
;,imac=qmitem(-imac 2 &qmac 1)
;,if(imac=0) break
;,if qmac.itype=0
;,,amac[]=qmac.name
paste(_s)

;code: Selected pasted characters
_i=numlines(_s)
'SH
key S{U(#_i-1)}
'SH


Forum Jump:


Users browsing this thread: 1 Guest(s)