Menu

#9 Notepad upgrade stops Active X link working.

1.0
open
None
2022-11-19
2022-04-15
No

I updated my Notepad++ via auto update now my Active X does not work with Autocad or Bricscad, I use this every day so miss it.

Notepad++ 8.3.3 x64

Discussion

  • David Gausmann

    David Gausmann - 2022-04-18

    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...

     
  • Alan Houston

    Alan Houston - 2022-04-22

    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

     
  • David Gausmann

    David Gausmann - 2022-04-22

    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 to Windows via the COM interface "Yep, I am ready".

    Can you please check whether you find the following menu item:
    Menu menu bar of Notepad++ -> Plugins -> ActiveX Plugin

    If this menu item is there, then the plugin is loaded. If it is missing then you must reinstall it via the Notepad++ plugin management (Menu bar of Notepad++ -> Plugins -> Plugin management -> Check the ActiveX plugin and install it).

    If the menu item was there, please try the following:
    Menu bar of Notepad++ -> Plugins -> ActiveX Plugin -> Settings...
    Then click once on Unregister and once on Register.

    If the problem still persists, please tell me whether the plugin is loaded and the plugin version (can be seen under: Menu bar of Notepad++ -> Plugins -> ActiveX Plugin -> About...).

    Kind Regards
    David Gausmann

     
  • Alan Houston

    Alan Houston - 2022-04-23

    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

     
  • David Gausmann

    David Gausmann - 2022-04-23

    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 both processes are run with Administrator privileges (or both without).

    Try to start Notepad++ with Administrator privileges (the term "[Administrator]" is than shown in the title bar) and also your other tool with Administrator privileges and then test your script again.
    You can start an application with Administrator privilege by making an right click on the program file and selecting "run as administrator".

    If the problem still exists then please create a VBS file with the following content and try to run
    it:

    Option Explicit
    
    Dim oNppApplication
    
    Set oNppApplication = CreateObject("NotepadPlusPlus.Application")
    Call oNppApplication.activeEditor.newFile()
    Call oNppApplication.activeEditor.write("This text has been written by the example script!")
    

    Also try here both versions of Notepad++ (once with Administrator privilege and once without).

    Kind Regards
    David Gausmann

     

    Last edit: David Gausmann 2022-04-23
  • Alan Houston

    Alan Houston - 2022-04-24

    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

     
  • Clemente Surriel

    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

     
  • Alan Houston

    Alan Houston - 2022-10-01

    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.

     
  • Albrecht Swoboda

    Hello David,
    I tried all things above,
    the conclusio is, that is still(or maybe again) the issue of your Ticket 1
    regards
    Albrecht

     
  • Albrecht Swoboda

    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

     

Log in to post a comment.