mIRC Home    About    Download    Register    News    Help

Print Thread
#139101 11/01/06 04:54 AM
D
dabb
dabb
D
I have a script that uses "/window -a windowname" to activate a window when a particular event occurs. However if mIRC is minimized, the /window -a command will cause mIRC to restore and come to the foreground. I would like to select the specified window ala /window -a, but have mIRC stay minimized if its not currently visible so that when I do restore mIRC, the selected window would be visible. Is there a way to do this?

Thanks

#139102 11/01/06 05:12 AM
Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
No promises, but it looks like you need to add the n switch to the -a.
Quote:
n = minimize window


/help /window

#139103 11/01/06 06:10 AM
D
dabb
dabb
D
Thanks for the suggestion, but if mIRC is already minimized, /window -an still pops it up out of the system tray and activates it. In my environment, all MDI channel windows are kept maximized within mIRC.


Quote:
No promises, but it looks like you need to add the n switch to the -a.
n = minimize window

#139104 11/01/06 07:12 AM
Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
Another suggestion (not sure how I would test this, so I haven't), use -n in place of -a and add the following to a script

Code:
ON *:appactive:{ .window -r <window name>}  

#139105 11/01/06 05:06 PM
Joined: Nov 2004
Posts: 822
Hoopy frood
Offline
Hoopy frood
Joined: Nov 2004
Posts: 822
/window -x seems to work well, it'll maximize the window (activating it) but it won't cause mIRC to restore itself.

#139106 12/01/06 03:40 AM
D
dabb
dabb
D
Thanks Jigsy, that works perfect!


Link Copied to Clipboard