LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Notepad++ ActiveX Control

Solved!
Go to solution

Hi,

 

I saw the topic is bit old, but i would like to know if you found a solution to control or integrate NP++ in Labview.

From my side I tried also without sucess.

I have activated the activeX plugin into NP++, but I'm blocked now with labview. 

 

Regards,

Olive

0 Kudos
Message 11 of 15
(518 Views)

@alexderjuengere wrote:

Does someone know how to do:

Set NppApplication = CreateObject("NotepadPlusPlus.Application")


The Automation Open node should be the equivalent to CreateObject()

Rolf Kalbermatter
My Blog
Message 12 of 15
(459 Views)

eight years later, I am using labview 2023 Q3 64 bit, notepad ++ 64 bit 8.5.8, npp plugin activex 1.1.8.7 (installed via notepad ++ built-in packet manager)

 


@rolfk wrote:

@alexderjuengere wrote:

Does someone know how to do:

Set NppApplication = CreateObject("NotepadPlusPlus.Application")


The Automation Open node should be the equivalent to CreateObject()


- the plugin is registered manually via Notepad++.exe

- I drop an Automation Refnum via Frontpanel , select the class "...NppApplication" and pass it into Automation Open node - when running this .vi, this results in error 3005

 

alexderjuengere_1-1695726224796.png

 

maybe this plugin is 32 bit only

 

¯\_(ツ)_/¯

 

 

@Tripe wrote:

 

I have activated the activeX plugin into NP++, but I'm blocked now with labview.

 

 


 

same here - but actually, I can't remember, why I investigated into this topic the first place

 

 

 

0 Kudos
Message 13 of 15
(442 Views)

@alexderjuengere wrote:

eight years later, I am using labview 2023 Q3 64 bit, notepad ++ 64 bit 8.5.8, npp plugin activex 1.1.8.7 (installed via notepad ++ built-in packet manager)

 


@rolfk wrote:

@alexderjuengere wrote:

Does someone know how to do:

Set NppApplication = CreateObject("NotepadPlusPlus.Application")


The Automation Open node should be the equivalent to CreateObject()


- the plugin is registered manually via Notepad++.exe

- I drop an Automation Refnum via Frontpanel , select the class "...NppApplication" and pass it into Automation Open node - when running this .vi, this results in error 3005

ActiveX is actually a complicated beast. It allows Out of Process invocation in which the Automation Server is instantiated in a proxy COM server of the correct bitness and then all the method and parameter handling is processed through DCOM. However an automation server needs to be registered in a very specific way to allow this and most ActiveX creators don't know or never bothered. It was also not clearly documented by Microsoft and even they don't use it for most of their products.

 

With ActiveX nowadays being a historical note in the computer technology, that Microsoft itself rather would abandon if they only could, it's not going to get easier.

Rolf Kalbermatter
My Blog
Message 14 of 15
(436 Views)

I tried several possibilities. And Yes I understand your point Rolfk.
I also tryed already the 32bit version but without success too. I'm not abble to create the object "npp".

Object.PNG.jpg

 

Maybe, somebody could give me a way to follow. My first idea was to create a tiny sequencer using a dedicated script with own volcabular. Notepad++ is really powerful, my first idea was to take advantage of its customization capabilities to script a particular language and to use also the UI as a debuguer using the flags like a break point.

 

But, certainly other people has already follow this way, and found an alternative / other solution.

 

Ilonet

0 Kudos
Message 15 of 15
(398 Views)