mIRC Home    About    Download    Register    News    Help

Print Thread
#61286 21/11/03 04:24 AM
Joined: Apr 2003
Posts: 300
A
andymps Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
ok i have a long line, i want it seperated on to different lines, where i want it seperated there is $chr(10), also it is a return from a dll,im at a loss of how to do it


Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
#61287 21/11/03 05:16 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
are you looking for $&?
Code:
alias demo {
  /echo this is a really really long line that $&
    has been split up into several more managable $&
    chunks so that you can deal with it easier
}


-KingTomato
#61288 21/11/03 05:26 AM
Joined: Apr 2003
Posts: 300
A
andymps Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
nope i have a return from $dll, it is a long bit, of which has $chr(10) at where the line needs to go onto another line, such as
bahhghkdg$chr(10)jgbkdhghg
i want as
bahhghkdg
jgbkdhghg
it isnt actually $chr(10) it is the simble that it is if u know what i mean, but if i paste it it is just a space, basically, where $chr(10) is the nesxt bit of text up to the next $chr(10) i want on another line


Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
#61289 21/11/03 06:20 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
put the output of said dll in %string:

Code:
tokenize 10 %string
var %i = 1
while (%i <= $0) {
  echo $eval($+($,%i),2)
  inc %i
}



DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#61290 21/11/03 06:44 AM
Joined: Apr 2003
Posts: 300
A
andymps Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
tyvm


Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
#61291 21/11/03 06:58 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
If the aim is to have the dll return multiple command for executing, mirc will valuate returns usng th epipe ( | ) I beieve.


-KingTomato

Link Copied to Clipboard