NOTIFICATIONS

Help
John Byrne
2013-01-25
2013-01-25
  • John Byrne
    John Byrne
    2013-01-25

    Hi,

    Trying to define a callback for notifications but callback is never called.

    import Npp

    def handleCharAdded(args):
        Npp.console.write("Char="+args)

    notepad.callback(handleCharAdded, )

    Npp.console.show()
    Npp.console.write("logging keys")


    I have tried several other notification enums and the callback is never called.

    Using Notepad++ 6.2.3

    Thanks

     
  • For scintilla notifications you need to use editor.callback.  notepad.callback uses the NOTIFICATION enum.

    Dave