Menu

nppExec & executing http://

2007-04-04
2012-11-14
  • Nobody/Anonymous

    I just downloaded the nppExec plugin and it works great, except that there's one little annoying problem:
    I use np++ to write a java applet, and to test the applet I normally enter in the command prompt:
    appletviewer http://127.0.0.1/applet.htm

    I entered this command in the nppExec, but then it does this:
    appletviewer http:

    so everything after the // isn't executed somehow.
    So now I was wondering: is there a workaround for this problem?

     
    • DV

      DV - 2007-04-06

      it seems you need NppExec v. 0.2beta3 (not implemented yet) :-)
      Currently // means a comment, and all the text after // is ignored. So additional check for :// is needed.
      Or there can be another solution: change // to ## for the comments.
      You can do it manually:
      1) close Notepad++
      2) open NppExec.dll in any HEX-editor (not inside Notepad++). For example, you can use HT editor (search for it on sourceforge.net)
      3) go to offset 0x1929C
      4) you will see this data:  2F 2F 00 00
      5) change it to:  23 23 00 00
      In short, these actions change // to ## for the plugin.
      After you do it, // will no more be a comment, ## will be a comment instead.

       
    • Nobody/Anonymous

      Thanks, it works perfectly now! :-)