mIRC Home    About    Download    Register    News    Help

Print Thread
#270131 07/04/22 08:43 AM
Joined: Apr 2005
Posts: 111
X
Vogon poet
OP Offline
Vogon poet
X
Joined: Apr 2005
Posts: 111
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]

Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
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.


Link Copied to Clipboard