You are here: PSPad forum > English discussion forum > Re: Recall script via right click

Re: Recall script via right click

#1 Recall script via right click

Posted by: mger | Date: 2019-03-06 07:45 | IP: IP Logged

Hello,

is there any way to recall scripts via right-click menu inside PSPad?

E.g. the possibility to recall comment lines/uncomment lines script directly via right click menu would be a very appreciated feature.

This is my very first post, I checked the FAQ without success smiling smiley

Thank You

Options: Reply | Quote | Up ^


#2 Re: Recall script via right click

Posted by: pspad | Date: 2019-03-06 09:59 | IP: IP Logged

Hello

There is no possibility to Call script with right click, but there is possibility to assign shortcut to script and you can call it with shortcut.

Options: Reply | Quote | Up ^


#3 Re: Recall script via right click

Posted by: mger | Date: 2019-03-06 10:33 | IP: IP Logged

Thank You for reply.

Do You mean keyboard short-cut? Can You please indicate me in which menu I can find the settings? The Program settings->Keymap seems not to be the right place.

Options: Reply | Quote | Up ^


#4 Re: Recall script via right click

Posted by: pspad | Date: 2019-03-06 10:44 | IP: IP Logged

You need to edit script (subfolder script\language)
Find function/sub INIT

There is definition of the menu items.
For ListTransform.vbs you should see something like:
sub Init
addMenuItem "&1. List of strings","List conversion", "ListString", "Shift+Ctrl+H"
addMenuItem "&2. List of items","List conversion", "ListItems", "Shift+Ctrl+J"
addMenuItem "&3. Line to list","List conversion", "LineToList", "Shift+Ctrl+L"
end sub

Parameters:
Menu item, Menu group, function to run, Shortcut

More information is in the help, included with PSPad under "scripting"

Options: Reply | Quote | Up ^


#5 Re: Recall script via right click

Posted by: mger | Date: 2019-03-06 10:55 | IP: IP Logged

Thank You!

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR