mIRC Home    About    Download    Register    News    Help

Print Thread
#229962 21/02/11 10:19 AM
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Hello,

I have a list and there i have about 20+ more items and one button that want to copy in the clipboard all the list items, is there any way to do this? i tryied but did not find any way.

- Thanks!


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
westor #229963 21/02/11 10:34 AM
Joined: Feb 2006
Posts: 546
J
Fjord artisan
Offline
Fjord artisan
J
Joined: Feb 2006
Posts: 546
you would use /clipboard to modify the contents of the clipboard.

if you have a dialog list, then you can use //clipboard $didtok(dname, ID, 10) to fill the clipboard with each item separated by $lf, which mIRC will recognize as separate lines in $cb(), for example.

in general, you would use /clipboard -an <line> to add individual lines to the clipboard which you may prefer to do, in a loop, depending on the nature of the list.


"The only excuse for making a useless script is that one admires it intensely" - Oscar Wilde
jaytea #229964 21/02/11 10:40 AM
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Originally Posted By: jaytea
you would use /clipboard to modify the contents of the clipboard.

if you have a dialog list, then you can use //clipboard $didtok(dname, ID, 10) to fill the clipboard with each item separated by $lf, which mIRC will recognize as separate lines in $cb(), for example.

in general, you would use /clipboard -an <line> to add individual lines to the clipboard which you may prefer to do, in a loop, depending on the nature of the list.


Yes $didtok thanks that one helped!


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
westor #229966 21/02/11 11:11 AM
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
And something else if i wanna save all the list items into a file how can i make it? (with a loop)


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
westor #229968 21/02/11 12:23 PM
Joined: Feb 2006
Posts: 546
J
Fjord artisan
Offline
Fjord artisan
J
Joined: Feb 2006
Posts: 546
do you reaaaaally want to use a loop? because, again, you can accomplish this easily with a single command:

Code:
/savebuf -o dname ID file.txt


"The only excuse for making a useless script is that one admires it intensely" - Oscar Wilde
westor #229969 21/02/11 12:25 PM
Joined: Feb 2006
Posts: 181
C
Vogon poet
Offline
Vogon poet
C
Joined: Feb 2006
Posts: 181
Reference: /help /savebuf

Code:
/savebuf -o <dialog name> <dialog id> <filename>


Link Copied to Clipboard