I've not used mIRC for a while, however I'm wanting to write a script as an example of using a DDE server for someone.
I've got this so far:-
alias MyAliasName{
var %ddeservername = MyDDEServerName
if ($isdde(%ddeservername) == $true) {
var %ipl = $dde(%ddeservername,info,"%ipl%")
/echo %ipl
if (%ipl == 5) {
echo Yup
}
else {
echo Nope
}
}
else {
echo DDE server not running
}
halt
}
The erroneous '/echo %ipl' is so I can see what's happening, with any luck.
Bottom line, %ipl is
never 5, but the code always responds with 'Yup'. I've obviously missed something fundamental about mIRC scripting, it's not something I really want to add to my resume, so any help would be much appreciated.
Another quick Q... is there a way of declaring and initialising a string without mIRC trying to parse it? i.e. %mystring = "$dde(%ddeservername,info,"%ipl%")"