Title

Message
Want to earn a free DisplayFusion Pro license? We're looking for DisplayFusion translators!
<< Discussions<< NewsReply

Launching and Positioning an Application on Startup

By using DisplayFusion's powerful Custom Functions and Trigger rules, you can have applications launch automatically on Windows startup, and move to the exact size and location as specified by you. The steps and video below demonstrate how to do this for Notepad, but you can apply them to any application on your system.
  1. Open the application that you want to setup the rules for, and set it up at the desired size and location.
  2. On the Settings > Functions tab, click "Add Custom Function."
  3. Give it a name and select Launch Application from "Function Action" dropdown list. Select the application that you want to launch when Windows/DisplayFusion starts.
  4. Click OK to save the Custom Function, then click Apply to save the DisplayFusion Settings.
  5. On the Settings > Triggers tab, click "Add."
  6. In the Trigger rule, set the "Trigger Event" to "DisplayFusion Starts"
  7. In the Actions section of the Trigger rule, click "Add > Run Function," and choose the Custom Function that you created in step 3.
  8. Click OK to save the Trigger rule, then click Apply to save the DisplayFusion Settings.
  9. On the Settings > Triggers tab, click "Add."
  10. Set the "Trigger Event" to "Window Created."
  11. In the Match Conditions section, enable the "Process Filename" checkbox, then choose the application in the "Select Application" window.
  12. In the Actions section, click "Add > Move Window to Specified Size and Location."
  13. Drag the orange target icon and drop it on the open window to get its size and location automatically.
  14. Click OK to save the Trigger rule, then click Apply to save the DisplayFusion Settings.
  15. Close the application from step 1, then restart DisplayFusion or your computer to test it out.
Nov 21, 2017 (modified Nov 21, 2017)  • #1
Avatar from Gravatar.com
sane
7 discussion posts
hello, thank you for this explanation
I am trying to do something similar but more complex, here is the detail:

On my left screen, open two explorer windows. The first on the left side open on D: and the second on "This computer"

On the central screen already divided in 30/70, open a chrome window on the left on a specific site, same thing for the right part.

On my right screen, already split in 30/30/30, open also a chrome window on each part with a specific site.

Do you think this is possible, and if so can you help me in the settings?
Thank you
Nov 25, 2017  • #2
Keith Lammers (BFS)'s profile on WallpaperFusion.com
For the File Explorer windows, you can add the folder path to the command line parameters in the Launch Application Function, and then in the Trigger rule for moving the window, put the folder name (just the folder, not the full path) in the "Window Text" match condition.

For the browser windows, you can use a Scripted Function to launch a page in a new window on a specific monitor, and run that Scripted Function from a "DisplayFusion Starts" Trigger: Open Website in Default Web Browser and Maximize on Specific Monitor

Hope that helps! If you need further assistance, please send us a support request via the Settings window (Help > Support Request).

Thanks!
Nov 27, 2017  • #3
Avatar from Gravatar.com
hub2000
1 discussion post
Hello,
i have a similar question.

i need to store profiles/workspaces and to quick access them, anytime, not when displayfusion or the Computer starts.

E.G.
- open two explorer windows on dedicated positions
- open three explorer windows on dedicated positions + open a program on a dedicated position

But is this is actually possible? i cant find it.

brg
hub2000
Nov 30, 2017 (modified Nov 30, 2017)  • #4
Avatar from Gravatar.com
Andy139
3 discussion posts
Hi there,

I followed this instructions and tested several others. No matter what I'm doing the applications are always opening at my primary Screen.

Is this a bug may be with the Fall-Creators Update?

Specs
Windows 10 Pro 64 Bit, Fall Creators Update (1709)
DisplayFusion 9.1

I wanted to automate a process where, at startup, 4 different applications are opened at 4 different screens (1 application per screen).

Best regards
Dec 1, 2017  • #5
Keith Lammers (BFS)'s profile on WallpaperFusion.com
@hub2000: We have another feature planned that will help there.

@Andy139: Did you create both the "DisplayFusion Starts" Triggers for each application, and then separately the "Window Created" Triggers?
Dec 1, 2017  • #6
Avatar from Gravatar.com
drumsticks
1 discussion post
I am in need of the same request as hub2000. It's great to know you have a new feature planned for it. Would you mind elaborating a little bit more about it, please? Is it under development already and is there an estimated time of delivery on this new feature?

If I may make a recommendation, it would be incredible if by an on/off flag somewhere in settings, we could just have these apps save to their perspective virtual monitors within the opened profile automatically so we do not have to manually do this setup. Yes, call us lazy, but that's why we like apps like DisplayFusion and the likes, to save us time by setting something up to work for us so we can go about our work efficiently. At the moment (me being new to DisplayFusion and still working and figuring things out with the trial version), I feel like DisplayFusion is missing an automation feature that will do this setup of apps assigned to each monitor within each profile and also the window sizes so we don't have to do this every time we want to change. Really, what would be great is that I set up the monitors in each profile to my liking and wherever i position a window, everything about that window is then saved. If I close out DisplayFusion and open it and select a particular profile, then those windows come up automatically or even by switching from one profile to another, the windows change out and are placed automatically where they were last left. Another automatic on/off flag option could be to start last opened windows of a selected profile when changing profiles. If this on/off flag is marked as off, then just when the user selects the app to open it, it would still then go to where it was last opened.

I have not tried yet, but by watching the tutorial video of hovering over the window to grab the size and location that this is a very manual process. What happens when I move the window or resize it, does it automatically save or will I have to go back in to manually hover over that window again to have it placed where I repositioned/resized the window? I can definitely find this out myself, but my point is that I am betting is all manual and I can see this aspect getting cumbersome for me personally.

I use 3 monitors, one of them being a 55" TV, so I have a lot of real estate to move things around and I do change the windows a lot, but I still would like them to be left where they were from my last use on the computer.

I could be completely misunderstanding DisplayFusion with limited knowledge being only a couple of days in on this app and it would be great to be stood corrected on, but so far I cannot figure out all of the things as I mentioned just yet. :-)These are just some thoughts in my head that I think would take this incredible app to another level, if I am correct on how it works, so far.

Thank you.
Dec 1, 2017 (modified Dec 1, 2017)  • #7
Avatar from Gravatar.com
Andy139
3 discussion posts
Quote:
@Andy139: Did you create both the "DisplayFusion Starts" Triggers for each application, and then separately the "Window Created" Triggers?


Yes I did. But then I realized I'm trying to move Unity Standalone-Builds and suspected, that the internal Unity Display-Settings might interfere with DisplayFusion. So I tested with a regular application and that worked fine.

So I guess I have to investigate what settings to disable in Unity. But it should work with Fullscreen-Applications right?

Best regards
Dec 4, 2017  • #8
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Some full screen windows don't respond to SetWindowPos calls (for sizing/moving). If you manually run a DisplayFusion hotkey on the window (like Ctrl + Win + X), does it work?
Dec 4, 2017  • #9
Avatar from Gravatar.com
Andy139
3 discussion posts
Quote:
Some full screen windows don't respond to SetWindowPos calls (for sizing/moving). If you manually run a DisplayFusion hotkey on the window (like Ctrl + Win + X), does it work?


Hi there. Yes, shortcut works. Anyway... I can setup unity to start as windowed fullscreen (chromeless), that would work too.
Thank you.
Dec 6, 2017  • #10
Avatar from Gravatar.com
Sijmen Moleman
9 discussion posts
This positioning and sizing of windows at display-fusion-startup works fine for "normal" applications but the positioning of apps or "Windows Universal Applications" doesn't work.
When display fusion starts: Firefox, Vivaldi, Outlook, Waterfox and Chrome, all start fine and go to their defined position,
but Twitter, Weather and Tune-in Radio start ok but then all go to my main monitor instead of the position I told them to go to in the triggers when their windows are created.

I don't think it is a problem with display-fusion as these Universal Applications also don't remember where they were positioned if I close them and reopen. It looks like they are completely unaware of the monitor configuration.
Any ideas?
Apr 21, 2018 (modified Apr 21, 2018)  • #11
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Could you attach a screenshot of one of the Triggers you setup for a Universal app? It should be possible to move them, but they may need a tweak.
Apr 23, 2018  • #12
Avatar from Gravatar.com
Sijmen Moleman
9 discussion posts
In the attached screenshot trigger 7 of windows created is open, it is triggered by Display-fusion starts trigger 3 MSN Weather. I try to move it to my top left monitor (of 6) but it keeps popping up on the bottom middle monitor (main) in the top left corner.

What also doesn't work is: Skype Start trigger 8 works sometimes and Window Created trigger 6 to minimize Skype never works.

Hope this helps you improve an already great product that I have been using for years.
Cheers, Sijmen
• Attachment [protected]: Capture.JPG [268,477 bytes]
Apr 24, 2018 (modified Apr 24, 2018)  • #13
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Thanks! For the UWP apps, can you try setting the Process Filename to *ApplicationFrameHost.exe, and set the Window Text to part of what shows up in the window title for that specific UWP app? (you can drag the target beside the Window Text box and drop it on the UWP app to get the title).
Apr 24, 2018  • #14
Avatar from Gravatar.com
Sijmen Moleman
9 discussion posts
Thank you, I added the trigger below and it works fine.
• Attachment [protected]: Capture.JPG [98,061 bytes]
Apr 25, 2018  • #15
Avatar from Gravatar.com
Sijmen Moleman
9 discussion posts
My joy was too soon, as long as the "weather" trigger is the only one to use *ApplicationFrameHost.exe to position and size it works fine. But when I add similar triggers for "Skype" and "Twitter" none of the UWP's position and size where I tell them, including "Weather" who works fine when his trigger is the only UWP trigger in the create-window triggers.
Apr 26, 2018 (modified Apr 26, 2018)  • #16
Keith Lammers (BFS)'s profile on WallpaperFusion.com
That's strange! Can you attach screenshots for the Skype and Twitter ones as well?
Apr 27, 2018  • #17
Avatar from Gravatar.com
Sijmen Moleman
9 discussion posts
I have now 3 UWP Window Create triggers and they behave as follows: Weather ends up on the main momitor (bottom middle), Skype opens where it was last closed and stays there, Twitter maximizes sometimes on the main monitor and sometimes on the left monitor.

I also found the following when I close Weather, Skype or Twitter and then open them again, then they do go to the right position. Wouldn't this suggest that the apps that are started with the "DisplayFusion" start event: have their window created and opened before the "Create Window" triggers are defined.

Is there a way to make sure that DisplayFusion defines all the triggers first before executing any functions?
• Attachment [protected]: SkypeTrigger.JPG [95,027 bytes]
• Attachment [protected]: TwitterTrigger.JPG [95,964 bytes]
Apr 28, 2018 (modified Apr 28, 2018)  • #18
Avatar from Gravatar.com
Sijmen Moleman
9 discussion posts
Something strange happened, Twitter updated their windows 10 app and then Display-fusion couldn't start twitter anymore with the custom function I made. The button for twitter on the taskbar was also not working anymore.
I tried to create a new custom function for twitter but the app is not in either application list, normal or UWP.
So I uninstalled Twitter and removed the old remnants of the old and the new Twitter app with geek.
Then I reinstalled Twitter from the windows store and Twitter works fine, I see it in the menu and I could make a new button on the taskbar. But in the app list of Display-fusion to make a new custom function there is no Twitter entry. I tried dragging that little yellow disk to see the process ID but that does nothing.
There is another app that doesn't show up in the application list and that's Whats-app.
Any ideas?
May 2, 2018 (modified May 2, 2018)  • #19
Keith Lammers (BFS)'s profile on WallpaperFusion.com
I was able to reproduce that issue when trying to create a Custom Function to launch the Twitter app as well and have added this to our list to fix up.

Regarding the windows not getting processed by the Trigger rule correctly the first time, I'm not sure what's up there. If you add a delay for the Match Conditions (maybe 5000?) does that make any difference?
May 4, 2018  • #20
Avatar from Gravatar.com
Sijmen Moleman
9 discussion posts
I added "Wait: 5000ms" to triggers 6 and 7 of the event "DisplayFusion starts" to delay the running of the Apps: Weather and Skype. That works fine their windows are opened and moved to the right position.
Was did what you meant by "match conditions" ?
• Attachment [protected]: Triggers2.JPG [181,591 bytes]
May 5, 2018 (modified May 5, 2018)  • #21
Avatar from Gravatar.com
Sijmen Moleman
9 discussion posts
About the last post: This works if I exit Display-fusion and start it again, but it doesn't when I restart my PC. Not even when I increase the wait to 10000 ms.
May 7, 2018  • #22
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Sorry, I mean in the Window Created rules, there's an option to delay the Trigger checks (screenshot attached). BUT! I forgot that we added that in the 9.2 Beta which you can grab here: https://www.displayfusion.com/Download/Beta/

Apologies for the confusion!
May 9, 2018  • #23
Avatar from Gravatar.com
Sijmen Moleman
9 discussion posts
Thanks, I downloaded beta 2 and that works fine with only 2000 in match conditions. I did that for all the UWP's
May 19, 2018  • #24
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Excellent, glad to hear it!
May 22, 2018  • #25
Avatar from Gravatar.com
Hannah8
1 discussion post
How Do I get this to open up a specific window of Firefox? All it lists are generic programs and I only want one specific Firefox window to have a specific position and not all of them.

I tend to have 3 FF Windows open at once, 2-10 Notepads and other things, but I want to save each window individually.
21 days ago (modified 21 days ago)  • #26
Keith Lammers (BFS)'s profile on WallpaperFusion.com
@Hannah: It should be possible to do a specific Firefox window if you specify the Window Text in the Trigger rule as well. The Window Text would need to be set to all or part of the page title, and make sure to set the Trigger Match Conditions delay to something like 2 seconds so that the page has time to load before the Trigger rule checks the Window Text.
19 days ago  • #27
Was this helpful?  Login to Vote  Login to Vote
<< Discussions<< NewsReply