mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 31
M
mruno Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Dec 2002
Posts: 31
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"

Last edited by mruno; 30/05/16 06:18 PM.
Joined: Jul 2006
Posts: 4,130
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,130
Space out the %1 variable.
The $!test.reply construct makes %1 non evaluated


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Dec 2002
Posts: 31
M
mruno Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Dec 2002
Posts: 31
No effect, I still get "Reply:"

Joined: Dec 2002
Posts: 31
M
mruno Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Dec 2002
Posts: 31
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


Link Copied to Clipboard