Using DisplayFusionCommand.exe (version 3.3+) you can control DisplayFusion from an external program or command prompt. DisplayFusionCommand.exe is located in the DisplayFusion installation folder (C:\Program Files\DisplayFusion by default). You can find the syntax and examples below.
-wallpaperloadprofile "profile name" -wallpapernextimage -wallpaperpause -wallpaperapply -wallpapertoggle -wallpaperanimationstoggle -applicationhooksload -applicationhooksunload -windowwallpaper -windowsettings -windowmonitorconfig -windowscreensaversettings -applywindowslockscreen -monitorloadprofile "profile name" -functionrun "hotkey name" -desktopiconsave "profile name" -desktopiconload "profile name" -windowpositionprofilesave "profile name" -windowpositionprofileload "profile name" -settingsbackup "file path"
DisplayFusionCommand.exe -closeall DisplayFusionCommand.exe -wallpaperloadprofile "Horse Pictures" DisplayFusionCommand.exe -wallpaperloadprofile "Horse Pictures" -wallpapernextimage DisplayFusionCommand.exe -functionrun "Start Screen Saver" DisplayFusionCommand.exe -settingsbackup "C:\Backups\DisplayFusionBackup.reg" |
|
Delmain 2 discussion posts
|
For the commands here that ask you for confirmation, is there a "Force Confirm" flag we can send, like
DisplayFusionCommand.exe -windowpositionprofilesave "ABCD" -y or something of that nature? I'd like to use this in a batch command but all it does is pop-up the confirmation dialog and I have to manually click "Yes". Mar 3, 2019
• #2
|
|
There are some settings in the Advanced Settings window for disabling some of the confirmation prompts. We're planning to add more for the other types (Window Position Profiles Save/Load) as well.
Mar 5, 2019
• #3
|
Linfeng Li948660 8 discussion posts
|
Quote: There are some settings in the Advanced Settings window for disabling some of the confirmation prompts. We're planning to add more for the other types (Window Position Profiles Save/Load) as well. Any update for CLI options to save/load Window Position Profiles? Also, for Version 9.6.1 and 9.6.2 (Beta 1), the simple -closeall flag does not seem to wrok: the tray-icon is still there after executing the following in Command Prompt: "C:\Program Files (x86)\DisplayFusion\DisplayFusion.exe" -closeall Upon inspecting through Task Manager, a DisplayFusion process seems to have been triggered by Command Prompt, but the tray-icon remains alive after the the CommandPrompt-DisplayFusion process dies out. Using Command Prompt to open DisplayFusion works (ended up with populating the tray-icon), but the -closeall flag won't close as well. Mar 15, 2020
• #4
|
|
You should already be able to use the CLI to save/load window position profiles, was there something else you're looking for there? Thanks!
Mar 19, 2020
• #5
|
Linfeng Li948660 8 discussion posts
|
Quote: You should already be able to use the CLI to save/load window position profiles, was there something else you're looking for there? Thanks! My bad. Yes, I see the Windows Position Profiles are avialable through CLI. Yet, on my machines, these CLI flags are not working as intended however I tried: through Command Prompt, through Run-Window (Win+R), or through AHK scripts launched with Admin rights. Please let me know if I should open a support ticket for further debugging. Mar 19, 2020
• #6
|
|
The -closeall command usually takes a bit because it tells DisplayFusion to gracefully shutdown. On my machine it takes about 10-15 seconds.
Re: the Window Position Profile paremeters, could you send me the commands you're trying so I can test them out here? Mar 20, 2020
• #7
|
Delmain 2 discussion posts
|
E: Nevermind
|
EarthlingZero 4 discussion posts
|
Quote: There are some settings in the Advanced Settings window for disabling some of the confirmation prompts. We're planning to add more for the other types (Window Position Profiles Save/Load) as well. -desktopiconsave "profile name" Saves the current Desktop Icon Layout as a profile. Specifying the name of an existing profile will prompt to overwrite. (v4.0+) Please add option to overwrite profile with current desktop icon layout without a prompt popping up as you did for windows position profiles. Thanks! |
|
In the DisplayFusion Settings > Advanced Settings window, enable this setting:
Desktop Icons: Don't Show Overwrite Confirmation when Saving Hope that helps! May 20, 2020
• #10
|
EarthlingZero 4 discussion posts
|
It does. Thank you!
May 21, 2020
• #11
|
Linfeng Li948660 8 discussion posts
|
Quote: In the DisplayFusion Settings > Advanced Settings window, enable this setting: Desktop Icons: Don't Show Overwrite Confirmation when Saving Hope that helps! Glad to find a similar Overwrite option also for "Window Position Profiles". In Advanced Settings window, searching for Overwrite reveals it. The name is "Disable Overwrite Confirmation Prompt" under the Window Position Profiles section. Thanks a lot! Jun 28, 2020
• #12
|
Was this helpful? (4) | |