mIRC Home    About    Download    Register    News    Help

Print Thread
window channels #270131 07/04/22 08:43 AM
Joined: Apr 2005
Posts: 71
X
XGamerAMD Offline OP
Babel fish
OP Offline
Babel fish
X
Joined: Apr 2005
Posts: 71
how can i put the window of my channel in the middle of screen

for example the window #chaco-corrientes

https://i.imgur.com/PMogbrw.png



[Linked Image from i.imgur.com]

Re: window channels [Re: XGamerAMD] #270132 07/04/22 09:14 AM
Joined: Jan 2004
Posts: 1,745
maroon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,745
This assumes you want to center in the window excluding the treebar. Change the -3 to -2 or -1 if appropriate. It also assumes the window is already the correct size but is in the wrong spot. Replace $window(%win).w and .h with the actual desired widths when appropriate

//var %win $active | window $active $calc( ($window(-3).w - $window(%win).w) //2) $calc( ($window(-3).h - $window(%win).h) //2) $window(%win).w $window(%win).h

Alternatively, you should simply move the location of the @window to the correct size and location, then use the upper-left menu for /position/save and the window will default to that location+size the next time you open it.