Search code examples
scriptingnotepad++javascriptwindows-scripting

Port listening with JScript


I'm Trying to write a plugin for NotePad++ using NppScripting - a platform for writing plugins using javascript (specifically - JScript).

I was wondering if there was a way (probably via ActiveXObject) with which I could listen to a port asynchronously (specifically - I'm trying to write a CSS-X-Fire port to NPP).

I know .NET has that capability via System.Net.Sockets but I couldn't figure out a way to access it via JScript.

Any help?


Solution

  • I eventually decided to use Adobe AIR to create my solution. It provides an amazing set of APIs, including a set of Socket APIs.

    You can look at my solution here