Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

code for commands

2. Help
2005-05-30
2012-11-13
  • Hi,

    I'm trying to get Notepad++ launch by commands given in Opera and then paste some text from clipboard to Notepad++. I know the Opera-specific command lines for launching other programs, but the paste function requires a Notepad++-specific command in an Opera's INI file.

    Can you give me the Notepad++-specific INI code for "paste"? Is there a documentation available for such things?

     
    • Don HO
      Don HO
      2005-05-30

      I don't even know what "INI code" is (Maybe you mean the "commad line"? ) . Could you give me more detail? An example may help.

      Don

       
    • an example of contents of a few INI files - the basis of Opera's configuration:

      buttons.ini
      [Document Toolbar.content]
      Button0, "Pyyhi"="Clear disk cache, , , "Pyyhi", "Mail Trash""
      Zoom1
      Identify2
      Button3, "[DOM 2]"="Go to page, "javascript:var isXHTML=/html/.test(document.getElementsByTagName('body')[0].nodeName);function createNewEle(ele){if(isXHTML) { return document.createElementNS('http://www.w3.org/1999/xhtml', ele); }else{ return document.createElement(ele); };};(function(){var ele=document.getElementsByTagName('head')[0].appendChild(createNewEle('script'));ele.type='text/javascript';ele.src='http://aleto.ch/webTools/code/DOMtree2button.js'})();", , "[DOM 2]", " ""
      Button4, "FF"="Execute program, "firefox.exe", "%u", "FF", "FF""
      Address5

      menu.ini
      [Identify As Menu]
      Item, 52210        = Identify as, 0
      Item, 70478        = Identify as, 1
      ;Item, 52212        = Identify as, 2
      ;Item, 52213        = Identify as, 3
      Item, 70479        = Identify as, 4

      As you can see, it is not a programming language on its own. It's just a way of describing program behaviour in a text file and the text "code" can be implemented any way the program developers wish. However, some standard stuff can be included, like javascript and paths to external programs. These examples include both.

      In case of the external program example (look at FF), the code "%u" means "open the active URL in the external program".

      My specific interest was the paste command. For regular Notepad, the code "/clippaste" works. I can't figure out, what would work as paste for Notepad, when it is described in Opera's INI file to be launched as an external program.