netbeans - Autohotkey - Duplicate Selected Lines Down -


i want simulate netbeans feature. want able duplicate selected lines. (not selected text).

i have written following autohotkey macro

duplicatedown() {     setkeydelay, -1     temp := clipboardall     clipboard =     send {home}+{end}^c     clipwait, 2     send {end}{enter}%clipboard%     clipboard := temp } 

problem macro copies current line. , want able copy multiple selected lines.

can please advise me how accomplish this.

when have lines selected upfront , send {home}+{end}, don't force system re-select single line instead of selected mutiple lines?

here example, not work automatic line-breaks though....

#singleinstance force #installkeybdhook #persistent insert::     temp := clipboardall     clipboard = ""     send, ^c     sleep, 300     loop, parse, clipboard, `n         jump:=a_index - 1     send {end}+{home}     send, +{up %jump%}^c     clipwait, 2     send {down %jump%}     send, {end}{enter}^v     clipboard := temp return 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -