mIRC Home    About    Download    Register    News    Help

Print Thread
/clipboard feature. #189223 05/11/07 12:05 AM
Joined: Nov 2004
Posts: 826
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 826
I've seen a couple of previous posts that ... sort of linger on this idea. (I think.)

But the ability to save text from the clipboard and load text into the clipboard would be nice.

E.g.

/clipboard -s <P:\ath\to\file.ext>
/clipboard -l <P:\ath\to\file.ext>


What do you do at the end of the world? Are you busy? Will you save us?
Re: /clipboard feature. [Re: Jigsy] #189224 05/11/07 12:09 AM
Joined: Oct 2007
Posts: 51
T
Trashlord_ Offline
Babel fish
Offline
Babel fish
T
Joined: Oct 2007
Posts: 51
Code:
alias saveclip {
var %i = 0, %x = $cb(0)
if (!%x) { return }
while (%i < %x) {
inc %i
write $1 $cb(%i)
}
echo -a *** Saved clipboard data to $1
}

alias loadclip {
if (!$isfile($1)) { return }
var %i = 0, %x = $lines($1)
while (%i < %x) {
inc %i
clipboard -a $read($1,%i)
}
echo -a *** Loaded text to clipboard from file $1
}


Re: /clipboard feature. [Re: Trashlord_] #189225 05/11/07 12:12 AM
Joined: Nov 2004
Posts: 826
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 826
I know it can be scripted, I just meant overall.


What do you do at the end of the world? Are you busy? Will you save us?
Re: /clipboard feature. [Re: Jigsy] #189230 05/11/07 12:50 AM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
A way to save it to a file would probably be good. Loading to the clipboard doesn't really offer anything that I can see.

The problem I see saving from the clipboard would be when something other than text is on the clipboard. I'm not sure what would be involved in making mIRC properly save every possible thing that can be on the clipboard.


Invision Support
#Invision on irc.irchighway.net
Re: /clipboard feature. [Re: Riamus2] #189235 05/11/07 01:05 AM
Joined: Nov 2004
Posts: 826
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 826
Reloading the clipboard could be useful if you need something else that'll clear, then add data to your clipboard cache. (For like temp. purposes.)


What do you do at the end of the world? Are you busy? Will you save us?
Re: /clipboard feature. [Re: Jigsy] #189243 05/11/07 02:40 AM
Joined: Jun 2006
Posts: 508
D
deegee Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
Originally Posted By: Jigsy
Reloading the clipboard could be useful if you need something else that'll clear, then add data to your clipboard cache. (For like temp. purposes.)

That's exactly why I suggested this. wink

Re: /clipboard feature. [Re: deegee] #189246 05/11/07 03:26 AM
Joined: Nov 2004
Posts: 826
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 826
I said it loosly followed what others said. :P

Quote:

Note though that I'm not talking about saving to image/text/whatever file


What do you do at the end of the world? Are you busy? Will you save us?
Re: /clipboard feature. [Re: Jigsy] #189248 05/11/07 03:52 AM
Joined: Jun 2006
Posts: 508
D
deegee Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
Originally Posted By: Jigsy
I said it loosly followed what others said. :P

Originally Posted By: deegee

Note though that I'm not talking about saving to image/text/whatever file

Yep, 'cause if it's just the raw clp data it doesn't matter what is in the clipboard, it'll be preserved and re-instated.

Text
File lists (Windows copy/cut/paste purposes)
Images (or parts of)
...and so on

Plus no line length issues...

Re: /clipboard feature. [Re: Riamus2] #189261 05/11/07 07:12 AM
Joined: Jul 2003
Posts: 655
Om3n Offline
Fjord artisan
Offline
Fjord artisan
Joined: Jul 2003
Posts: 655
Originally Posted By: Riamus2
Loading to the clipboard doesn't really offer anything that I can see.


There are a number of scripts (dialogs) that sort of 'compile' a complex command or similar based on options selected and/or information input into the dialog. A little 'copy to clipboard' is always nice.

'Loading' the clipboard (i assume dumping data into it) is easy enough to script though /clipboard on its own clears it then a loop of /clipboard -an calls to add each line...


"Allen is having a small problem and needs help adjusting his attitude" - Flutterby