mIRC Home    About    Download    Register    News    Help

Print Thread
#139101 11/01/06 04:54 AM
Joined: Apr 2003
Posts: 9
D
dabb Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Apr 2003
Posts: 9
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,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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
Joined: Apr 2003
Posts: 9
D
dabb Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Apr 2003
Posts: 9
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,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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: 842
Hoopy frood
Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
/window -x seems to work well, it'll maximize the window (activating it) but it won't cause mIRC to restore itself.


What do you do at the end of the world? Are you busy? Will you save us?
#139106 12/01/06 03:40 AM
Joined: Apr 2003
Posts: 9
D
dabb Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Apr 2003
Posts: 9
Thanks Jigsy, that works perfect!


Link Copied to Clipboard