You are here: PSPad forum > Bug report / Hlášení chyb > 4.5.7 Clip hot keys don't always work

4.5.7 Clip hot keys don't always work

#1 4.5.7 Clip hot keys don't always work

Posted by: therium | Date: 2014-04-18 12:31 | IP: IP Logged

PSPad 4.5.7 on Win 7

I edited the Perl clip defintion file and removed everything except my skeleton for a subroutine. No matter what control key I assign, it works for a while in my editing session, then it stops working after a while. I've tried CONTROL-SHIFT-P, CONTROL-SHIFT-S, CONTROL-SHIFT-[.

Whenever the program is trapping a key, it should process the key as a custom clip hotkey first, before looking to see if the key combination is a standard hot key combination.

Do you think you could fix this? Anyone else having problems?

Thanks.

Options: Reply | Quote | Up ^


#2 Re: 4.5.7 Clip hot keys don't always work

Posted by: pspad | Date: 2014-04-18 13:08 | IP: IP Logged

Try the latest build from the PSPad developer forum

Options: Reply | Quote | Up ^


#3 Re: 4.5.7 Clip hot keys don't always work

Posted by: therium | Date: 2014-04-18 13:59 | IP: IP Logged

PSPad 4.5.7.2450

I have changed my clip hotkey to CONTROL-[ and I still have the same problem. When I do the menu item Settings, Clip Hotkeys, and choose my custom clip, the clip is not inserted.

Even when I do CONTROL-SPACE to show clips, and hit return on my clip, the clip is not inserted.

If I make a new blank document in PSPad, then hit ^-[ my clip is inserted.

I could assign this to a CONTROL-LETTER or CONTROL-SHIFT-LETTER but I still have the same problem. It works for a while then stops inserting my clip.

When I change the clip hotkey by editing the DEF file directly, it works for a while, then stops inserting my clip. I'm guessing the clip hotkey is not even getting trapped.

Is this a known problem that has been fixed in the latest build?

Edited 5 time(s). Last edit at 2014-04-18 14:15 by therium.

Options: Reply | Quote | Up ^


#4 Re: 4.5.7 Clip hot keys don't always work

Posted by: pspad | Date: 2014-04-18 14:23 | IP: IP Logged

Did you try the latest 4.5.8 build as I mentioned?

Options: Reply | Quote | Up ^


#5 Re: 4.5.7 Clip hot keys don't always work

Posted by: therium | Date: 2014-04-21 12:08 | IP: IP Logged

Ok, I updated to 4.5.8.2471 and still have the same problem. I even changed my hotkey to CONTROL-ALT-[. This seems to be a problem no matter what the hotkey is.

My clip name is "sub". Could this be the problem? I mean the hotkey works a few times at first, then stops working completely.

Here is my Perl clip file, perhaps that will help.


; PSPad code template for Perl 5.8.8 (Practical Extraction and Report Language)
; Author: Therium, Mar 2014
; E-mail: ''.phorum_html_encode('webjob@seznam.cz').''
; Update: 2003-12-11
;
;
[sub | Create new blank sub]*Ctrl+Alt+[
####################################################################
#
sub |
{my($l)=@_;
my(@a,@b,$i,$j,$procname);

$procname="";

return; #
}

;
[if exists | Insert if exists key in hash]
if (exists $data{$k})
{
}
else {
}

EDIT: changed name of clip to "sub1" and still have the same problem.

Edited 2 time(s). Last edit at 2014-04-21 12:42 by therium.

Options: Reply | Quote | Up ^


#6 Re: 4.5.7 Clip hot keys don't always work

Posted by: pspad | Date: 2014-04-21 12:17 | IP: IP Logged

What highlighter do you use?
If you use HTML multihighlighter, PSPad switches clips depends to content. If you want to pure Perl, switch highlighter to Perl

Options: Reply | Quote | Up ^


#7 Re: 4.5.7 Clip hot keys don't always work

Posted by: therium | Date: 2014-04-21 12:44 | IP: IP Logged

My Perl highlighter under Settings, Highlighter settings, is set to use the Perl highlighter for "*.pl" files (also for "*.pm"). Is that the right syntax? Or is it ".pl" in the entry list?

How do I know for sure which highlighter is currently in effect for my pgm.pl file?

When I go to Settings, User Highlighter, and it tries to open a Syntax/*.ini file, I don't see a Perl.ini file or anything related to Perl.

Edited 1 time(s). Last edit at 2014-04-21 12:47 by therium.

Options: Reply | Quote | Up ^


#8 Re: 4.5.7 Clip hot keys don't always work

Posted by: pspad | Date: 2014-04-21 15:42 | IP: IP Logged

You see the current highlighter on the statusbar

Options: Reply | Quote | Up ^


#9 Re: 4.5.7 Clip hot keys don't always work

Posted by: therium | Date: 2014-04-21 18:06 | IP: IP Logged

Ok, the word to the left of the word "unix" (i'm currently editing Perl files on Linux) says "Perl". So that must be the highlighter.

Have you been able to reproduce the problem? I also have the Code Explorer window open, but no other PSPad windows open.

Thanks.

Options: Reply | Quote | Up ^


#10 Re: 4.5.7 Clip hot keys don't always work

Posted by: therium | Date: 2014-04-22 16:42 | IP: IP Logged

PSPad 4.5.8.2471

UPDATE: I have changed my clip hotkey to ^-F12 and been using it all day. No problems. It appears the only problems I had were with: ^-SH-key or ^-ALT-key combinations.

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