mIRC Home    About    Download    Register    News    Help

Print Thread
#223139 15/07/10 02:03 PM
Joined: Apr 2010
Posts: 969
F
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
I'd like to see a way to save the contents of clipboard, as is, in the clipboard, much like /savebuf does for windows/dialogs.


I am SReject
My Stuff
Joined: Dec 2002
Posts: 344
D
Pan-dimensional mouse
Offline
Pan-dimensional mouse
D
Joined: Dec 2002
Posts: 344
Is there a problem with cycling through $cp(N)? Or are you simply looking for a more efficient method?

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Or use /play with the -b switch and then /savebuf the window you /play to (or use an alias with /play to write it all).


Invision Support
#Invision on irc.irchighway.net
Joined: Apr 2010
Posts: 969
F
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
Originally Posted By: drum

Is there a problem with cycling through $cp(N)? Or are you simply looking for a more efficient method?

The space thing. Am making a script with a multi lined, return-allowed editbox in a dialog. When the dialog opens I want it to be filled with the contents of clipboard. The problem is, I lose multi-spaces when cycling through $cb

Last edited by FroggieDaFrog; 15/07/10 08:36 PM.

I am SReject
My Stuff
Joined: Apr 2010
Posts: 969
F
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
I did find a work around, thanx to Riamus2:
Code:
/cbloadbuf [lines] [-apirsglecNnomt<topic>] <window | dialog id>
(switches same as /loadbuf)
alias cbloadbuf {
  .play -abp noop 1
  loadbuf $1- playq1.txt
  .play stop
}

/cbsavebuf [lines] <filename>
alias cbsavebuf {
  window -hn2w0 @cbsavebuf
  cbloadbuf -r @cbsavebuf
  savebuf $iif($regex($1,/^\d+(?:-\d?)?$/),$1 @cbsavebuf $2-,@cbsavebuf $1-)
  window -c @cbsavebuf
}


edit: Added second alias, fixed regex

Last edited by FroggieDaFrog; 15/07/10 04:25 PM.

I am SReject
My Stuff
Joined: Nov 2004
Posts: 842
Hoopy frood
Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
This could have its uses.

I second this idea.


What do you do at the end of the world? Are you busy? Will you save us?

Link Copied to Clipboard