mIRC Home    About    Download    Register    News    Help

Print Thread
#255413 21/10/15 12:16 PM
Joined: Dec 2010
Posts: 89
D
Babel fish
OP Offline
Babel fish
D
Joined: Dec 2010
Posts: 89
Hey all, when you highlight text, it automatically copies that text to the clipboard. Is there an event which is fired when a user selects/highlights that text and it is copied to the clipboard?
I plan to make a script which will allow you to highlight certain text in a channel and then for it to be displayed in a separate window, as a way of easily creating logs/records etc.

dominic_eddy #255415 21/10/15 12:40 PM
Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
No such event I'm afraid, and you just can't workaround it.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #255418 21/10/15 03:45 PM
Joined: Dec 2010
Posts: 89
D
Babel fish
OP Offline
Babel fish
D
Joined: Dec 2010
Posts: 89
That's darn unfortunate smirk

I'm going to make a suggestion in the 'feature suggestions' forum to add this event.
I think an ON COPY or ON SELECT or ON HIGHLIGHT event would be really useful.

Last edited by dominic_eddy; 21/10/15 03:49 PM.
dominic_eddy #255420 21/10/15 07:14 PM
Joined: Feb 2015
Posts: 243
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Feb 2015
Posts: 243
You might be able to make this happen by using On HOTLINK event.
Check the help files for
/clipboard
and
on hotlink

Last edited by OrFeAsGr; 21/10/15 07:18 PM.
OrFeAsGr #255425 21/10/15 09:55 PM
Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
On hotlink trigger when you put your mouse over a word in a line, it's not about highlighting/selecting text.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #255426 21/10/15 10:55 PM
Joined: Feb 2015
Posts: 243
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Feb 2015
Posts: 243
He could copy the whole line it's not exactly what he's looking for but it could work somehow.

OrFeAsGr #255429 22/10/15 11:25 AM
Joined: Dec 2010
Posts: 89
D
Babel fish
OP Offline
Babel fish
D
Joined: Dec 2010
Posts: 89
Thanks for letting me know about hotlink. It won't work as well sadly, but it may work well enough. I'll play around with it and see how it goes. I still think it would be awesome for mirc to have an 'on copy' event though.


Link Copied to Clipboard