mIRC Home    About    Download    Register    News    Help

Print Thread
#36375 15/07/03 12:01 AM
Joined: Jul 2003
Posts: 7
D
douceur Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Jul 2003
Posts: 7
Is there a way to center a window (horizontally & vertically) after it's open? I know that /window -C will center it initially, but that doesn't seem to work after it's already open.

Also, is there a way to maximize the main mIRC window?

#36376 15/07/03 12:14 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
try setting position -1 -1. Thats "center" for dialogs when they open >:D


-KingTomato
#36377 15/07/03 12:16 AM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
for maximizing mirc /showmirc -x

#36378 15/07/03 12:31 AM
Joined: Jul 2003
Posts: 7
D
douceur Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Jul 2003
Posts: 7
I looked through the help file, but I must have just totally missed /showmirc. Thanks!

#36379 15/07/03 12:32 AM
Joined: Jul 2003
Posts: 7
D
douceur Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Jul 2003
Posts: 7
Hm... -1 -1 doesn't seem to work. Is there a way to get the dimensions of the mIRC window? If so, I suppose I could center it mathematically.

#36380 15/07/03 12:44 AM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
/window window x y w h
u don't have to choose the w h which is for width and height, x y is the position of the window


#36381 15/07/03 02:32 AM
Joined: Jul 2003
Posts: 7
D
douceur Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Jul 2003
Posts: 7
Here's what I'm doing:

/window @test
/window @test -1 -1

That doesn't center it. Am I doing something wrong?

If it makes any difference the window I'm actually trying to center is the status window. But I have tried it w/ the commands above, and the window @test does not center either.

Last edited by douceur; 15/07/03 02:34 AM.
#36382 15/07/03 02:55 AM
Joined: Dec 2002
Posts: 29
R
Ameglian cow
Offline
Ameglian cow
R
Joined: Dec 2002
Posts: 29
$window(-1).w will give you width for your screen
$window(-1).h will give you height fro your screen
----
$window(-2).w and $window(-2).h will give you width and height of Main mIRC window
----
$window(-3).w and $window(-3).h will give you width and height for mirc MDI area.

#36383 15/07/03 03:02 AM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
-1 used to make it default (so it will choose what the mirc always choose for this parameter), u can check the position of the center by doing /window -C @window
and then //echo -a $window(@window).x - $window(@window).y will give u the positions

#36384 15/07/03 07:10 AM
Joined: Jul 2003
Posts: 7
D
douceur Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Jul 2003
Posts: 7
Solved my problem. Thanks everyone for the quick responses.


Link Copied to Clipboard