mIRC Home    About    Download    Register    News    Help

Topic Options
#234441 - 25/10/11 04:59 PM custom window dont center..
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
From the help file:
C = center window when first created

Yes, it does as long as you dont running anything in fullscreen befor you create the window. I using this to create my custom window.

window -aPoCdk0 @custwin -1 -1 480 85 Verdana 11

This make the window center. if i playing a game while this window is created it will be created to the right in mirc, i dont know if this is a bug, but since the help file state the -C flag shall create the window centered it should do so even when a fullscreen aplication is running?
_________________________
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Top
#234442 - 25/10/11 06:40 PM Re: custom window dont center.. [Re: sparta]
Wims Offline
Planetary brain

Registered: 31/07/06
Posts: 3435
Loc: France
I can't reproduce that on win7 with 7.22 using this code and by putting firefox in fullscreen before the window is created:
Code:
//timer 1 3 window -aPoCdk0 @custwin -1 -1 480 85 Verdana 11
Can you reproduce it with any fullscreen application?
_________________________
Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net

Top
#234443 - 25/10/11 06:41 PM Re: custom window dont center.. [Re: Wims]
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
Test it with a game, when the game is minimized the window end up to the right..

And as i wroted i dont know if its a bug, maybe just the change of resolution from the game to windows that give some strange behavior.
_________________________
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Top
#234444 - 25/10/11 06:43 PM Re: custom window dont center.. [Re: sparta]
Wims Offline
Planetary brain

Registered: 31/07/06
Posts: 3435
Loc: France
Not everyone play game, can you reproduce that with any fullscreen program?
_________________________
Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net

Top
#234445 - 25/10/11 06:48 PM Re: custom window dont center.. [Re: Wims]
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
Nope, just when a game is running in fullscreen mode, then when it get minimized the window sit to the right on the screen. I using a desktop window (-d) that will minimize any running games/movies. But wanted it to show centered on my screen..
_________________________
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Top
#234449 - 25/10/11 08:26 PM Re: custom window dont center.. [Re: sparta]
Riamus2 Offline
Planetary brain

Registered: 13/10/04
Posts: 8327
Loc: NC, USA
From my limited knowledge on the subject (someone please verify or contradict this), full screen games or other programs with a true full screen mode (this is not the same as a maximized window) create problems when determining desktop resolution. Part of this is likely due to how such programs/games allow a different resolution than what you have as your desktop resolution, though there may be some other reason. I think that if you were to try and display the screen height and width on a timer and then open a game, you'll find that the results drop to either 0 or 1 until you minimize or close the game. This is likely the reason the window isn't centered -- it's trying to center at 0,0. I'm not certain if this is a Windows issue or a mIRC issue, but I have seen it before in mIRC.
_________________________
Invision Support
#Invision on irc.irchighway.net

Top
#234452 - 25/10/11 09:11 PM Re: custom window dont center.. [Re: Riamus2]
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
ok, thank you.. smile i can live with the window to the right on the screen..
_________________________
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Top