mIRC Home    About    Download    Register    News    Help

Print Thread
#230500 12/03/11 02:44 PM
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Hello,

how can i clipboard the editbox text like there is into the editbox

editbox details:

1. TEST TEST1 TEST2
2. TEST TEST1 TEST2
3. TEST TEST1 TEST2

------------------

I have the now the /clipboard $didtok(4,32).text
but does not clipboarding like there is into the editbox

any ideas?

- Thanks!


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
westor #230504 12/03/11 05:33 PM
Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
Instead of $didtok(dialog,id,32), use $replace($didtok(dialog,id,10),$chr(10),$crlf)

You don't want $didtok to returns lines spaces seperated, so use for example 10 instead of 32 to get them seperated by linefeed.
Then add a carriage return before each linefeed so lines are seperated by $crlf.

Last edited by Wims; 12/03/11 05:36 PM.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel
westor #230505 12/03/11 05:34 PM
Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
try /clipboard $didtok(<dialog name>,4,32)

Wims #230507 12/03/11 07:28 PM
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Originally Posted By: Wims
Instead of $didtok(dialog,id,32), use $replace($didtok(dialog,id,10),$chr(10),$crlf)

You don't want $didtok to returns lines spaces seperated, so use for example 10 instead of 32 to get them seperated by linefeed.
Then add a carriage return before each linefeed so lines are seperated by $crlf.


Thanks, for the code


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-

Link Copied to Clipboard