Nem
1 discussion post
I have a custom function that moves a window to monitor 1, and snaps it to the top half (100% width, 50% height, aligned with middle top)
I'd like to combine this with a trigger/function for launching an application so that...
1. When my computer starts (i.e. when display fusion launches) it will launch an application (thunderbird, in this case)
2. Set the position of the thunderbird window using the custom function for aligning windows described above
So whenever I start my computer thunderbird will automatically open, move itself to monitor 1 and snap to the top half of the screen
I'd also like to do this automatic opening and positioning with a webpage, so that when my computer starts, the default browser will open at a specific webpage, move to monitor 1 and snap itself to the bottom half of screen (I have another custom function for this as well)
How would I achieve this with a trigger/function/script? I've seen some script that achieves parts of this, but I'm not familiar enough with C# to combine everything together
You should be able to do this just using Triggers and your Custom Functions. Create a trigger using the "DisplayFusion Starts" event that launches your applications. Then create two separate triggers using the "Window Created" event to run the Custom Function for each application.
Hope that makes sense!