mIRC Home    About    Download    Register    News    Help

Print Thread
Window & dialog 'center' on multimonitor with mIRC #247629 17/08/14 05:35 AM
Joined: Dec 2002
Posts: 21
V
Vile Offline OP
Ameglian cow
OP Offline
Ameglian cow
V
Joined: Dec 2002
Posts: 21
Make new windows and dialogs with the 'center' flags show in the monitor that mIRC is currently running in,

ex: /window -dC & /dialog -r show in the first monitor, rather than the one mIRC is currently active in.

If you drag mIRC to a second monitor and have something that pops up a dialog or window that's supposed to be centered, it's a bit odd for it to show up on an entirely different screen. New windows/dialog creation doesn't do this, only when they're centered.

Last edited by Vile; 17/08/14 05:38 AM.
Re: Window & dialog 'center' on multimonitor with mIRC [Re: Vile] #247631 17/08/14 05:05 PM
Joined: Jul 2006
Posts: 3,573
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,573
Confirmed on 7.35 and win 7 but this is a bug, not a feature.
But since we are here, maybe we could get an improvement for /window and /dialog, we could decide the screen the dialog/window should be displayed on

/window +CN with N=0 for the current screen mIRC is on (default), N=1 for the primary screen, N=2 second screen etc..

/dialog -CN ..


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: Window & dialog 'center' on multimonitor with mIRC [Re: Vile] #247637 18/08/14 08:09 AM
Joined: Dec 2002
Posts: 4,563
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 4,563
Thanks, I was able to reproduce the issue with /window -dC and this has been fixed for the next version. However I was not able to reproduce the issue with /dialog -r. In my tests, /dialog -r centers the dialog on the monitor where the main mIRC window is located.

Re: Window & dialog 'center' on multimonitor with mIRC [Re: Khaled] #247649 18/08/14 04:43 PM
Joined: Jul 2006
Posts: 3,573
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,573
I can't reproduce the problem with /dialog -r either (7.36, win 7)


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: Window & dialog 'center' on multimonitor with mIRC [Re: Khaled] #247654 19/08/14 02:36 AM
Joined: Dec 2002
Posts: 21
V
Vile Offline OP
Ameglian cow
OP Offline
Ameglian cow
V
Joined: Dec 2002
Posts: 21
Whoops. I meant to say I was starting the dialog and using /dialog -s with $mouse.dx and $mouse.dy to move the dialog to where the cursor is. Problem is $mouse.dx, $mouse.dy will return the same relative coordinates regardless of which monitor is active. Maybe /dialog -s is what needs to take which monitor is active into account then.

Last edited by Vile; 19/08/14 02:39 AM.
Re: Window & dialog 'center' on multimonitor with mIRC [Re: Vile] #247657 19/08/14 09:18 AM
Joined: Apr 2004
Posts: 841
Sat Offline
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2004
Posts: 841
Have you tried with $mouse.cx/$mouse.cy ?


Saturn, QuakeNet staff
Re: Window & dialog 'center' on multimonitor with mIRC [Re: Sat] #247662 19/08/14 11:56 PM
Joined: Dec 2002
Posts: 21
V
Vile Offline OP
Ameglian cow
OP Offline
Ameglian cow
V
Joined: Dec 2002
Posts: 21
That works, thanks.