You are here: PSPad forum > English discussion forum > Copy line to clipboard

Copy line to clipboard

#1 Copy line to clipboard

Posted by: idefix2 | Date: 2024-08-23 21:10 | IP: IP Logged

I try to automate a lot of tasks using autohotkey, and most of the things I want to do in PsPad can be done. However, there are two functions which would be very helpful and easy to implement:

Copy the content of line of the cursor to the clipboard
Place the cursor position into the clipboard, maybe in the format line:Position-in-line

The first task could be accomplished sending the key sequence{end}{shftHome}{shftHome}{ctrl-c}, but by doing that, I lose the current cursor position, and I get a flickering screen

Options: Reply | Quote | Up ^


#2 Re: Copy line to clipboard

Posted by: idefix2 | Date: 2024-08-23 23:00 | IP: IP Logged

I just found out in the documentation that it is possible to enable the feature "copy entire line to clipboard" if no text is marked. So this already works well for me.

Maybe there exists a way to find the number of the line and column of the cursor also, but I have not found anything. The numbers are displayed in the status line, but they don't seem to be accessible to an external program.

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