mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2006
Posts: 14
P
Pikka bird
OP Offline
Pikka bird
P
Joined: Jul 2006
Posts: 14
Hello


i have a popup like this :

Msg:{
var %test $$?="toto"
/msg %test abcdef
}

I would like to change is so that instead of opening a dialog box for %test, i would like that mirc paste automaticly what is in the clipboard of the pc, in %test.

i explain better :

i want a popup like that :

Msg:{
/msg %test abcdef
}

and %test must be the last thing i put in the clipboard of windows with Ctrl C or Ctrl X.

do you know how to do ?

thank you


PS. i am sorry my english is not good at all. I hope you will understand my question.

Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
Code:
menu channel,query {
  $iif((!$cb),$style(2)) msg clipboard content to $active $iif(($cb(1)),$+([lines,$chr(58) $cb(0),])) : {
    var %nr = 1
    while ($cb(%nr)) { msg $active $v1 ABCDEF | inc %nr }
  }
}

With the $cb identifier you can:
- return whether or not there's something in the clipboard at all : if ($cb)
- return how manly $crlf delimited lines the clipboard holds: $cb(0)
- return single lines of the clipboard content: $cb(N)

Joined: Jul 2006
Posts: 14
P
Pikka bird
OP Offline
Pikka bird
P
Joined: Jul 2006
Posts: 14
it works...

thank youuuuuuuuuuuuuuuuuuu


Link Copied to Clipboard