Hello David (and the others with this problem), workaround: Option Explicit Dim oNppApplication CreateObject("Wscript.Shell").Run """C:\Program Files\Notepad++\notepad++.exe""", 1, True Set oNppApplication = CreateObject("NotepadPlusPlus.Application") Call oNppApplication.activeEditor.newFile() Call oNppApplication.activeEditor.write("This text has been written by the example script!") regards Albrecht
Hello David, I tried all things above, the conclusio is, that is still(or maybe again) the issue of your Ticket 1 regards Albrecht
Hi everyone Sstill not working, had a couple of thoughts about it, there appear to be two files that may be the problem shortcut xml and a VBS file that may be missing. If you have these two files and they indicate run lisp could you post please.
Hello, Sorry if the bug is already fixed or if it's explained somewhere else. It may not be very elegant but... Has anyone tried creating a text file called "-Embedding" in the c:\windows\system32 directory? Because I created it and the message has stopped appearing. Be happy
I tried what you suggested about admin etc did so for notepad++ and no go, not sure where I try setting Admin for the activex plugin. (startapp "wscript d:/acadtemp/notepad.vbs") ran from Bricscad created a new file as per script. I never changed anything re admin rights. Thanks Alan
Hi Alan, I've made some tests and found a way to reproduce that issue. But unfortunately it is nothing that I can fix and it was there in each version of Notepad++ and the ActiveX plugin. Due to security limitations of Windows and COM, processes, which are running with Administrator privileges, are not allowed to communicate with non-Administrator processes by default. I guess that your Autocad/Briscad is running with Administrator privileges and your Notepad++ not (or vice versa). Please ensure...
Hi Alan, I've made some tests and found a way to reproduce that issue. But unfortunately it is nothing that I can fix and it was there in each version of Notepad++ and the ActiveX plugin. Due to security limitations of Windows and COM processes, which are running with Administrator privileges are not allowed to communicate with non-Administrator processes by default. I guess that your Autocad/Briscad is running with Administrator privileges and your Notepad++ not (or vice versa). Please ensure that...
Hi David Thanks for looking into it. Yes checked all settings Did the unregister re register no difference Is it a admin thing that I am not loading at top admin level ? Still getting the -Embedding window I appreciate your help Regards Alan
Hi Alan, ok, I guess you are starting Notepad++ by calling CreateObject("NotepadPlusPlus.Application") from Autocad/Briscad and then Notepad++ starts, opens the Embedding file and then does nothing? This sounds for me as though the plugin isn't loaded anymore. The external application can start Notepad++ via COM because the registry entries are still there, but after Notepad++ has been loaded there is no communication between both applications, because newly started Notepad++ process doesn't say...
thanks David for responding I have tried un-installing and reinstalling still not working The only hint is that I get the embedding window popping up but no messages
Hi Alan, I've tested the plugin with the current version but it works for me. Can give me some information what doesn't work? Do you access Autocad/Briscad from Notepad++ or vice versa? Do you have an example script? With the currently given information, I can't do anything for you...
Notepad upgrade stops Active X link working.
I've closed it.
Exception while running script as default script 1
Hi David, Thanks a lot - now it works! Where can I close the Ticket? Kind Regards Marcus Sonntag
Hi Marcus, I've fixed this and uploaded version 1.1.8.7. There was a bug when executing external files. The byte order mark wasn't determined correctly. The file has been treated as ANSI instead. Because the BOM isn't valid VBScript there was the error message. Kind Regards David Gausmann
Exception while running script as default script 1
Thanks for creating an elegant little addin for Notepad++. Having read the included help, I have created the attached two templates, one of Javascript and one for VBScript, which I thought other users might find useful, it is based on one of the examples in the included help. The files include the declaration code for the NppApplication object in the scripts. Of course a couple of the lines could be deleted or commented out depending in the intended purpose of the script either internal or exter...
x64 version of the plugin
I've updated the NPP plugin interface files, removed the fancy inline assembler code (not supported anymore by Visual C++, but since different calling convention doesn't exist anymore in x64 I would've needed to change it anyway), added static_casts to avoid unwanted compiler warnings (my casts are wanted at these places). I checked shorty whether it seems to work in x64 Npp, but I didn't test everything. The plugin is now released.
NppApplication.activeEditor.language doesn't work for "Java Script" anymore
This is fixed now. L_JS has been replaced with L_JAVASCRIPT, while L_JS is still present...?!
Reading NppApplication.activeEditor.text is not correct
This will be fixed with the next release.
Executing scripts doesn't work anymore
This was the same bug as in ticket #2. The behavior of Scintilla has changed. Maybe there was a bug fixed, what caused then the bug here.
x64 version of the plugin
Executing scripts doesn't work anymore
NppApplication.activeEditor.language doesn't work for "Java Script" anymore
Reading NppApplication.activeEditor.text is not correct
I wanted to thank you for creating this Activex plugin / interface to Notepad++. Yesterday, I was able to install it, and successfully built some features to transfer source code to and from Notepad++, as well as to perform automated source code comparisons using the Compare plugin. Off to a great start and I will certainly automate and integrate more Notepad++ and plugin features into my development tools. Thank you very much! Mike
FYI, I found what you are talking about documented here: https://msdn.microsoft....
Strange. I get this even when Notepad++ is open.
Strange. I get this even when Notepad++ is open. FYI, I found what you are talking...
Strange. I get this even when Notepad++ is open.
Wohoo, a respone of someone after some years. :D I have already knowledge of this...
It is actually a message box that pops open in Notepad++. Copying it gives this (wish...
Opening Notepad++ via ActiveX prompts to create "Embedding" file.
will be giving this a go embedding on c# over coming weeks and also VBA for Access...
Version 1.1.7.3 This is the second update. It contains the additional classes to...
Version 1.0.0.0 This was the (inofficial) base version of the plugin. It didn't run...