Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maxto window move /window "Notepad" /Monitor "\\.\DISPLAY3" dosn't work #313

Closed
coreyspeed opened this issue Jan 7, 2019 · 7 comments
Closed
Assignees
Milestone

Comments

@coreyspeed
Copy link

Maxto to is not moving my windows to another display, this feature will be really useful to me if this works correctly.

First, one maximum the window on the screen that notepad is on, this was DISPLAY1

C:\Windows\System32>maxto window move /window "Notepad" /Monitor "\.\DISPLAY4"
Success: Moved 'Untitled - Notepad' (handle: 0xA314A) to (-1920,0,0,1080).

C:\Windows\System32>maxto window move /window "Notepad" /Monitor "\.\DISPLAY2"
Success: Moved '' (handle: 0x0) to (0,0,0,0).

C:\Windows\System32>maxto window move /window "Notepad" /Monitor "\.\DISPLAY3"
Success: Moved '' (handle: 0x0) to (0,0,0,0).

C:\Windows\System32>maxto window move /window "Notepad" /Monitor "\.\DISPLAY3"
Success: Moved '' (handle: 0x0) to (0,0,0,0).

C:\Windows\System32>

@vegardlarsen vegardlarsen self-assigned this Jan 7, 2019
@vegardlarsen
Copy link
Member

vegardlarsen commented Jan 7, 2019

Thanks for this report. I see a few things that are wrong here.

  • Monitors named in this fashion should be \\.\DISPLAYx (note the extra slash at the start)
  • The window may not be found unless you use the exact title, which may be what is happening here. Try /window "Untitled - Notepad" instead. You can see that it says it was succesful in moving an untitled window ('').

Currently, the move command is intended to move a window into a region, not to a different monitor. I can see the usefulness of that possibility though, and I think the syntax you are using seems to be the correct way to do it.

There are caveats when moving a window to a different monitor. I am assuming that moving the window to a monitor without placing it in a region will keep its current size and relative position on the new monitor. That means that the window may be placed partially outside the new monitor; in which case we need to limit both the size and position of the window to stay inside.

@coreyspeed
Copy link
Author

I always did have the \ GitHub seems to have removed that,

image

@coreyspeed
Copy link
Author

the last move maximized the window did not move the program

@coreyspeed
Copy link
Author

Works if you specify a region, I need a full-screen region then I guess, we have 3 x TV Screens that display on wallboard, we have to manually move the browser windows to each of the defined screens each day,

Could you let me know how to address web browser's? as we have two firefox windows, can you move tabs ?

@vegardlarsen
Copy link
Member

If you just need to maximize the window completely to another monitor, try maxto window maximize /Window "Untitled - Notepad" /Monitor "\\.\DISPLAY2" instead.

@vegardlarsen
Copy link
Member

MaxTo cannot currently move things inside browsers, it can only address individual windows (not tabs).

@vegardlarsen vegardlarsen added this to the 2.0.0-beta.7 milestone Jan 9, 2019
@vegardlarsen
Copy link
Member

This issue has been fixed for 2.0.0-beta.7, due out tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants