akorx

Multi monitors and winmove()

2 posts in this topic

#1 ·  Posted (edited)

Hi,

I use winmove() to resize and move a windows (on different corners of the screen) but when I use many monitors my window jumps between monitor 1 to monitor 2 (or the opposite)...

How can I do find the "active" screen (= the monitor where is the windows I want to move) and force winmove() to stay on this screen?

 

Edited by akorx

AkorxMail akorx@yahoo.fr

Share this post


Link to post
Share on other sites



#2 ·  Posted

To find the "active" screen of a the window you could try _WinAPI_MonitorFromWindow($hWnd, $MONITOR_DEFAULTTONEAREST)

And perhaps some other functions in this post

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now