mIRC Homepage
Posted By: Venoman using /close with status windows. - 24/04/04 02:17 PM
This is another instance where multinet hasn't completely been accounted for; there is no command to be used to close a status window; /close only accounts for query, dcc, etc. Right now the only option I have is to use com objects to simulate ctrl + f4, but that's beyond me (if someone knows how to do this as a temporary solution, please reply:
/altplusr { .comopen WSH WScript.Shell | .comclose WSH $com(WSH, SendKeys, 3, bstr, $chr(37) $+ R) }
^ that alias simulates pressing alt + r, but I need ctrl + f4).

So, I think /close could use another parameter, along with the existing -icfgms@, that would account for status windows. -s comes to mind, wonder why? smile

-Venoman
Posted By: Sat Re: using /close with status windows. - 24/04/04 03:56 PM
This should work: /window -c "Status window"
Posted By: Iori Re: using /close with status windows. - 25/04/04 02:06 AM
Just FWIW:
$chr(37) $+ R (or % $+ R) = %R = Alt + R ;Obviously you cant send "%R" from a script, mIRC would try to evaluate %r as a variable
^{F4} = Ctrl + F4
More info at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsMthSendKeys.asp
Posted By: Venoman Re: using /close with status windows. - 25/04/04 05:09 AM
And suddenly, I have not one but two solutions smile You guys are immensely helpful.

I didn't realize you could treat other windows as a custom window, and use the /window parameters to manipulate them. That'll be good to know in the future. That com alias, as well as the reference page, I'm sure I will find use for as well. Thank you both!

-Venoman
Posted By: Watchdog Re: using /close with status windows. - 25/04/04 06:49 AM
/close is also an IRC command, on some servers at least.
© mIRC Discussion Forums