mIRC Home    About    Download    Register    News    Help

Print Thread
using /close with status windows. #80458 24/04/04 02:17 PM
Joined: Apr 2004
Posts: 45
V
Venoman Offline OP
Ameglian cow
OP Offline
Ameglian cow
V
Joined: Apr 2004
Posts: 45
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

Re: using /close with status windows. #80459 24/04/04 03:56 PM
Joined: Apr 2004
Posts: 847
Sat Offline
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2004
Posts: 847
This should work: /window -c "Status window"


Saturn, QuakeNet staff
Re: using /close with status windows. #80460 25/04/04 02:06 AM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
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

Re: using /close with status windows. #80461 25/04/04 05:09 AM
Joined: Apr 2004
Posts: 45
V
Venoman Offline OP
Ameglian cow
OP Offline
Ameglian cow
V
Joined: Apr 2004
Posts: 45
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

Re: using /close with status windows. #80462 25/04/04 06:49 AM
Joined: Dec 2002
Posts: 2,985
Watchdog Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
/close is also an IRC command, on some servers at least.