i used this code to close dcc window so i can show it in a dialog.
var %a = 1
while ($window(*,%a)) {
var %win = $window(*,%a),%fw = $gettok(%win,1,32)
if ((%fw =send) || (%fw = ,get)) window -h $_bracket(%win)
inc %a
}
and this to show it in switchbar again, when dialog is closed.
while ($window(*,%a)) {
var %win = $window(*,%a),%fw = $gettok(%win,1,32)
if ((%fw = send) || (%fw = get)) {
if (%win) window -wa $_bracket(%win)
}
inc %a
}
the hide works, but when i close the dialog and want to show dcc window back in switchbar it doesn't work. instead it detaches the dcc window. so when i minimize it, it minimizes at the bottom of mIRC. any idea how to fix this?
is this not right?? window -wa