mIRC Home    About    Download    Register    News    Help

Print Thread
/clipboard #140688 28/01/06 03:28 PM
Joined: Nov 2004
Posts: 800
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 800
Not really much of an idea, but an ability to clear the clipboard contents via /clipboard, e.g. /clipboard -d


What do you do at the end of the world? Are you busy? Will you save us?
Re: /clipboard #140689 28/01/06 03:31 PM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
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.


Gone.
Re: /clipboard #140690 28/01/06 03:48 PM
Joined: Nov 2004
Posts: 800
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 800
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.


What do you do at the end of the world? Are you busy? Will you save us?
Re: /clipboard #140691 28/01/06 03:50 PM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
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.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Re: /clipboard #140692 28/01/06 03:59 PM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
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?


Gone.
Re: /clipboard #140693 28/01/06 04:18 PM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
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 $*
}


Gone.
Re: /clipboard #140694 18/02/06 07:03 PM
Joined: Sep 2005
Posts: 2,876
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,876
From versions.txt for 6.17:

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