Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

User Image
Bert L
7 discussion posts
Is it possible to have Window Locations operate conditional on the currently active monitor profile?

For example, I have set up Notepad++ to launch to the left half of my external monitor, XYplorer to the right half of my external monitor, and Thunderbird to my laptop screen. However, when I undock my laptop, I don't want NP++ or XYp to launch to a monitor that isn't there.

Thanks,

BL
Feb 6, 2015  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
If the monitor that's specified in the rule isn't attached, Window Location should just put the application on monitor 1. Is that not the case on your setup?
Feb 6, 2015  • #2
User Image
Bert L
7 discussion posts
It sends the application window to the (nonexistent) external monitor anyway. I can get the window back with the Win key plus the arrow keys, so it's not a disaster, but it's a slight hassle.

The goal is to have the application on the external monitor, flush left, full height and slightly more than half of the monitor width.

Here are the parameters in Window Location:

Move Window - Move to Selected Monitor - 2
Window Size - Run Selected Function on the Window
Function: (Here I have a custom function that I created using the "Drag this icon..." tool)
Window Screen Action - Move window to specified location - Position X: -1920, Position Y: -312
Window Width Change - Change window width to specified pixel value - Width Value 1086 (doesn't need to be exactly this, of course)
Window Height Change - Change window height to specified pixel value: 1050 (I guess this is the screen height minus the toolbar?)
Feb 7, 2015  • #3
User Image
Bert L
7 discussion posts
Progress: I guessed that setting fixed pixel values for the location was not smart, so I added the following function instead:

Window Screen Action:
Move window to monitor #X - select 2 for my external monitor.

Window Alignment:
Move window to top-left corner of monitor

Window width Change:
Change window width to specified percentage
Width value: 55

Window Height Change:
Change window height to specified percentage
Height Value: 100

This is an improvement: now, when there is no external monitor, the application window appears on the laptop screen, but sized as in the function above. I'd like for it to be maximized.
Feb 8, 2015  • #4
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, we can write a scripted function that will size it depending on which monitor it's on. I'll attach it when it's ready :)
Feb 9, 2015  • #5
User Image
Bert L
7 discussion posts
Great, I look forward to it.
Feb 10, 2015  • #6
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, on the Settings > Functions tab, click the "Download Scripted" button, then grab the one called "Move to Monitor 2 or Maximize on Monitor 1."

You can then assign it to a Window Location rule, and test it out :)

Hope that helps!
Feb 10, 2015  • #7
User Image
Bert L
7 discussion posts
Thanks. Sorry if this is a dumb question, but how do I combine the two functions? It downloaded fine and I can select it, but then I lose the function I'd previously made to put the application window flush left and 65% of width.
Feb 11, 2015  • #8
Keith Lammers (BFS)'s profile on WallpaperFusion.com
This scripted function is both of them combined (either 65% at top-left of monitor 2, or maximized on monitor 1 if 2 isn't attached), so you only need to assign this one in the Window Location rule.

However, your previous posted said 55%, so that's what the scripted function was set to. I've updated it to 65%, so you'll want to re-download it to update it. It should show as yellow in the Download Scripted list, just double-click it to download it and it will replace the old one.
Feb 11, 2015  • #9
User Image
Bert L
7 discussion posts
Got it, thanks.

Sorry, 65% was a typo!
Feb 11, 2015  • #10
Keith Lammers (BFS)'s profile on WallpaperFusion.com
No worries, glad I could help!
Feb 12, 2015  • #11
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)