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
Log in to post a comment.
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