Menu

Send text from console script back to editor

NppExec
Anonymous
2012-04-05
2013-05-21
  • Anonymous

    Anonymous - 2012-04-05

    I am trying to write a script which would send some formatted text back to the editor.  It would effectively be something like a commonly used comment block with a preloaded project number and change number today's date and place the cursor at the  correct place in the comment block.   

    However I have experimented with SCI_SENDMSG SCI_ADDTEXT  @""  … but have not been able to write to the string buffer is  it possible???

     
  • DV

    DV - 2012-04-05

    See NppExec Manual, section 3.8.4.
    Also 4.6.3 and 4.6.6 may be useful.

     
  • Chris Pearce

    Chris Pearce - 2012-04-05

    just the ticket!! I blame windows7 for not readilly wanting to open the .chm … slightly emabarrassed shuffle to the left… thanks ;-)

     

Log in to post a comment.