mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Nov 2011
Posts: 52
E
eawedat Offline OP
Babel fish
OP Offline
Babel fish
E
Joined: Nov 2011
Posts: 52
hey all,

Is there a way getting clipboard in mIRC ?

Code:
alias ctrl_v {
echo -a content_From_clipboard
}


thanks a lot.

Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
/help $cb


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Joined: Nov 2011
Posts: 52
E
eawedat Offline OP
Babel fish
OP Offline
Babel fish
E
Joined: Nov 2011
Posts: 52
thanks a lot:)

Joined: Nov 2011
Posts: 52
E
eawedat Offline OP
Babel fish
OP Offline
Babel fish
E
Joined: Nov 2011
Posts: 52
argv[0]

I wrote this :
Code:
alias paste {
  var %i = 1
  while (%i <= $cb(0)) {
    echo -a $cb(%i)
    inc %i
  }
}

but I have problem when I get to a blank line
is there a trick or something to echo a blank line above ?


thanks.

Last edited by eawedat; 11/08/12 06:40 PM.
Joined: Nov 2009
Posts: 295
P
Fjord artisan
Offline
Fjord artisan
P
Joined: Nov 2009
Posts: 295
Well here is a quick fix. It checks if the clipboard line is empty and if it is, it uses a color code so the line isn't empty which causes the error.

echo -a $iif($cb(%i),$v1,)

The color code is there but it's character isn't always visible.


http://scripting.pball.win
My personal site with some scripts I've released.
Joined: Nov 2011
Posts: 52
E
eawedat Offline OP
Babel fish
OP Offline
Babel fish
E
Joined: Nov 2011
Posts: 52
pball thank you;)

I did another thing :

Code:
echo -a $cb(%i) $+ 


Link Copied to Clipboard