I was using the SendMessage with CreateFileMapping to get some value from mirc, like $chan(0).
If I want to be able to get the value of $chan(0) of every server window (Multi-server support), I was trying to use /scon 1, /scon 2 ...
but scon doesn't seem to work well with SendMessage, mirc maybe considere the script function end when I first send the command.
What am I doing wrong ?
Doing an aliase in mirc:
alias test23 {
scon 2
%mynewvalue = $chan(0)
}
%mynewvalue is fill great
Doing SendMessage from outside:
//mData previously created with CreateFileMapping
wsprintf(mData, "scon 2");
SendMessage(mircHwnd, WM_USER+200,1,0L);
wsprintf(mData, "$chan(0)");
SendMessage(mircHwnd, WM_USER+201,1,0L);
//mData is fill with the result of $chan(0) but from the scon 1
Anyone can help please ? would be really appreciate...
Thanks