09-21-2023 04:46 PM
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
09-26-2023 03:20 AM
@alexderjuengere wrote:
Does someone know how to do:
Set NppApplication = CreateObject("NotepadPlusPlus.Application")
The Automation Open node should be the equivalent to CreateObject()
09-26-2023 06:42 AM - edited 09-26-2023 06:42 AM
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
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
09-26-2023 06:51 AM - edited 09-26-2023 06:53 AM
@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.
10-02-2023 02:57 AM - edited 10-02-2023 03:16 AM
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".
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