In the above, there was a slight bug in the fact that.
.window -h $4 Should have been
.window -h $iif($numeric == 403,$2,$4)However, another not so wonderful but working, method would be..
Using,
band.dll and the following:
alias band.dll return $+(",band.dll,")
alias bdll { var %d = $band.dll | if ($isid) return $dll(%d,$$1,$$2-) | dll %d $$1 $$2- }
raw *:*:{
if (($chan($4)) && (($numeric == 442) || ($numeric == 403))) {
window -a $iif($numeric == 403,$2,$4)
bdll menu 61536
}
}
Alternatively, you might be able to use
sendkey.dll.
Eamonn.