custom button
-
Hello there, i’d like to know how i can create a cumtomized button to have a prewritten template already present on the page.
On practice it would be a call come in, i click this button and Pouf a new page with a perwritten templace appear. instead of always copy pasting from another text. Is that possible ?
-
With a scripting plugin it is fairly simple to do.
Here’s an example with PythonScript:# -*- coding: utf-8 -*- from Npp import editor, notepad template_text ='''I am a template of whatever you want; as many lines as you want; or whatever ''' notepad.new() editor.setText(template_text)Result when you run it:

i click this button and Pouf a new page…
You can tie the running of a script to a toolbar button
-
and how do you enable that ? :) please
-
@Philippe-Lajeu said in custom button:
and how do you enable that ? :) please
A good into to setting up a script is found HERE.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login