Title

Message

Confirm

<< DiscussionsReply

questions re: Move Window to Specific Size and Location

Avatar from Gravatar.com
sevenoneone
3 discussion posts
Hi, loving the trial of DisplayFusion Pro!

I'd like a single Trigger that moves any windows containing my match syntax, to a certain spot using "Move Window to Specific Size and Location". The windows are various sizes, but I picked an X,Y location that fits ok for all of them.

Questions:

1) What's the best way to accommodate the different sizes? I entered 0 for width and height, which seems to be working so far.

2) In this same scenario (varying window sizes), is it possible to relocate a window by its bottom left corner, instead of upper left corner? This is for a touchscreen, and it would be killer if all the windows automatically jumped to the closest spot to reach! Which for me is along the bottom. Some sort of script maybe?

3) I made 2 separate actions, first to move the window to the touchscreen monitor, and the 2nd to move it to the X,Y coordinates. Is the first action even necessary here? I removed it and it seems to give the same end result...
6 days ago  • #1
Avatar from Gravatar.com
sevenoneone
3 discussion posts
EDIT: I found this thread https://www.displayfusion.com/Discussions/View/win10-move-window-to-specified-location/

and downloaded the script, and altered it to "anchor" from the bottom and left edges instead. Works great!

I realized I do need two actions now. First, move to the specific monitor. Second, the script.

Is there a way to do it in one move, which might be quicker, rather than two?
6 days ago (modified 6 days ago)  • #2
Avatar from Gravatar.com
Owen Muhlethaler (BFS)
745 discussion posts
Hello,

You could put the Move to monitor action inside the script, so the trigger only loads the script and the script does everything. Performance wise, this may marginally improve, but likely not a lot.

How long is it currently taking you to load the trigger?

Thanks!
4 days ago  • #3
Avatar from Gravatar.com
sevenoneone
3 discussion posts
Thanks for replying Owen, I just purchased!

Hit a snag... I'm trying to use this script from the download section: "Move Window 10px from Right Edge, 100px from Bottom Edge"

My only change was making the variable X not a calculation, so it measures from the left edge of the monitor. Works great. But I'm trying to use two different copies of it, each has a different X value, and I think that caused problems...

Say my goal is:

Move Green Olives to the LEFT side of the pie

Ignore Mushrooms, Anchovies, Cheese, and Black Olives

Move all other ingredients to the RIGHT side of the pie

I have 2 triggers:
Trigger 1 has Window Text entry: "Green Olives"
and Window Class entry: Pizza
This one works fine!

Trigger 2 has Window Text entry: -"Green Olives" -Mushrooms -Anchovies -Cheese -"Black Olives"
and Window Class entry: Pizza

Trigger 2 is acting on Green Olives (which was just moved to the LEFT side by Trigger 1) and moving it to the right... This also happens with Cheese, which I definitely want to be ignored, and not moved.
4 days ago (modified 4 days ago)  • #4
Avatar from Gravatar.com
Owen Muhlethaler (BFS)
745 discussion posts
Hello,

Thanks for the support!

Could you send over a screenshot of each of your current trigger rules?

Thanks!
3 days ago  • #5
Was this helpful?    
<< DiscussionsReply