mIRC Home    About    Download    Register    News    Help

Topic Options
#229962 - 21/02/11 10:19 AM clipboard a list
westor Offline
Hoopy frood

Registered: 27/12/08
Posts: 1511
Loc: Greece
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? -> http://westor.ucoz.com/contact <-

Top
#229963 - 21/02/11 10:34 AM Re: clipboard a list [Re: westor]
jaytea Offline
Fjord artisan

Registered: 23/02/06
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

Top
#229964 - 21/02/11 10:40 AM Re: clipboard a list [Re: jaytea]
westor Offline
Hoopy frood

Registered: 27/12/08
Posts: 1511
Loc: Greece
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? -> http://westor.ucoz.com/contact <-

Top
#229966 - 21/02/11 11:11 AM Re: clipboard a list [Re: westor]
westor Offline
Hoopy frood

Registered: 27/12/08
Posts: 1511
Loc: Greece
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? -> http://westor.ucoz.com/contact <-

Top
#229968 - 21/02/11 12:23 PM Re: clipboard a list [Re: westor]
jaytea Offline
Fjord artisan

Registered: 23/02/06
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

Top
#229969 - 21/02/11 12:25 PM Re: clipboard a list [Re: westor]
Crinul Offline
Vogon poet

Registered: 10/02/06
Posts: 181
Loc: Bucharest, Romania
Reference: /help /savebuf

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

Top