mIRC Homepage
Posted By: Jigsy /clipboard - 28/01/06 03:28 PM
Not really much of an idea, but an ability to clear the clipboard contents via /clipboard, e.g. /clipboard -d
Posted By: FiberOPtics Re: /clipboard - 28/01/06 03:31 PM
You can already do this.

/clipboard

This is really a matter of using your head btw. What you do is put $null in the clipboard without appending it, so what does this mean? It results in making the clipboard hold "nothing", which is the same as clearing the clipboard.
Posted By: Jigsy Re: /clipboard - 28/01/06 03:48 PM
That doesn't fully delete it though, if you go into 'clipbrd' you'll be able to click the 'X' button prompting you to delete.
Posted By: qwerty Re: /clipboard - 28/01/06 03:50 PM
The only, very minor, difference is that after /clipboard, the Paste item in the rightclick menu (eg in an editbox) is still enabled, so technically the /clipboard doesn't seem to be empty, it just contains a zero-length string. Not sure if it's worth changing that.
Posted By: FiberOPtics Re: /clipboard - 28/01/06 03:59 PM
So? You asked a way to clear the contents of the clipboard, by using /clipboard they are cleared. Who cares if it still shows an X, does it matter for anything?
Posted By: FiberOPtics Re: /clipboard - 28/01/06 04:18 PM
For those people who think it's so dreadful that it still shows that Paste option enabled, they can use this until Khaled adds it:

Code:
alias clearcb {
  var %t
  .comopen ie.doc htmlfile
  %t = $com(ie.doc,parentwindow,2,dispatch* ie.win)
  %t = $com(ie.win,clipboarddata,2,dispatch* ie.cb)
  %t = $com(ie.cb,cleardata,1)
  :error
  tokenize 32 ie.doc ie.win ie.cb
  scon -r if ($com( $* )) .comclose $*
}
Posted By: hixxy Re: /clipboard - 18/02/06 07:03 PM
From versions.txt for 6.17:

139.Calling /clipboard with no text now empties the clipboard instead
of assigning it an empty string.
© mIRC Discussion Forums