mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 204
K
keeker Offline OP
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Dec 2002
Posts: 204
Hello, how can i make /play nick help.txt 1000 evaluate identifiers in the text of the text file? like $nick $time $date stuff like that? I dont want to treat each line like a command cause thier not, they are just lines but wuld like to add the time/date/nick into certain parts of each play. I hope this makes sense and would appreciate any help


keek: Scots - intr.v. keeked, keek·ing, keeks
To peek; peep.
Joined: Jun 2003
Posts: 32
Ameglian cow
Offline
Ameglian cow
Joined: Jun 2003
Posts: 32
Update your mIRC to 6.1 and use /play -a.

Joined: Jan 2003
Posts: 249
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Jan 2003
Posts: 249
Not sure if this is what you wish, but from the help file:

The -c switch forces mIRC to interpret lines as actual commands instead of plain text.

Don't know if he will interpret the $idents contained within the line wit that.

Joined: Dec 2002
Posts: 204
K
keeker Offline OP
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Dec 2002
Posts: 204
nope dont work, that treats each line like a /command and it returns "Unknown Command" errors for each line.


keek: Scots - intr.v. keeked, keek·ing, keeks
To peek; peep.
Joined: Dec 2002
Posts: 204
K
keeker Offline OP
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Dec 2002
Posts: 204
i tried using /play -a in mirc 6.1 and came up with an alias to run it through, but i musta messed up the alias somewhere cause it will send the message, but it dont evaluate the data:

Code:
 alias returner {
  msg  $eval($1-,1)
}
 


i tried it both with and without the $eval and with the $eval in the text file itself, but none of them worked. any other suggestions?


keek: Scots - intr.v. keeked, keek·ing, keeks
To peek; peep.
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Code:
alias returner {
  msg $eval($1-,[color:red]2[/color])
}

Joined: Dec 2002
Posts: 204
K
keeker Offline OP
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Dec 2002
Posts: 204
thank you thank you thank you collective, it work!!!!!


keek: Scots - intr.v. keeked, keek·ing, keeks
To peek; peep.

Link Copied to Clipboard