mIRC Homepage
Posted By: mruno $dde evaluate with arguments - 30/05/16 06:16 PM
I am trying to get multiple mirc's to communicate with each other using $dde evaluate with a custom alias with a variable as an argument.
Here is an example of what I am trying to do:
Code:
alias test.query {
var %1 testing
echo -a Reply: $dde(mirc2,evaluate,$!test.reply(%1))
}

alias test.reply return $1-

I have a second instance of mirc running with the ddename set as mirc2.

No matter what I do, I always just get "Reply:"
How do I make the output as "Reply: testing"
Posted By: Wims Re: $dde evaluate with arguments - 30/05/16 10:43 PM
Space out the %1 variable.
The $!test.reply construct makes %1 non evaluated
Posted By: mruno Re: $dde evaluate with arguments - 31/05/16 12:09 AM
No effect, I still get "Reply:"
Posted By: mruno Re: $dde evaluate with arguments - 01/06/16 01:20 AM
Correction, it worked. Changed the code to the following:

Code:
alias test.query {
var %1 testing
echo -a Reply: $dde(mirc2,evaluate,$!test.reply( %1 ))
}

alias test.reply return $1-


thank you
© mIRC Discussion Forums