Title

Message

Confirm

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

DisplayFusion Command Line Tool (displayfusioncommand.exe)

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.


-closeall
Closes all DisplayFusion instances with no prompts.

-wallpaperloadprofile "profile name"
Loads the Wallpaper Profile named in the quotes. (v3.4.0+)

-wallpapernextimage
Loads the next random Wallpaper image, if random images are enabled for any of the monitors. (v3.4.0+)

-wallpaperpause
Pauses wallpaper changes, if random images are enabled for any of the monitors. (v7.3.1+)

-wallpaperapply
Re-applies the current Wallpaper Profile. (v8.0+)

-wallpapertoggle
Enables/disables the DisplayFusion Desktop Wallpaper feature. When disabling, the wallpaper will be changed to a solid black background. (v8.0+)

-wallpaperanimationstoggle
Pauses/resumes animated wallpaper sources (My Videos, Website). (v8.0+)

-applicationhooksload
Forces DisplayFusion to load the global application hooks. (v3.4.0+)

-applicationhooksunload
Forces DisplayFusion to unload the global application hooks. (v3.4.0+)

-windowwallpaper
Opens the DisplayFusion Wallpaper window. (v3.4.0+)

-windowsettings
Opens the DisplayFusion Settings window. (v3.4.0+)

-windowmonitorconfig
Opens the DisplayFusion Monitor Configuration window. (v3.4.0+)

-windowscreensaversettings
Opens the DisplayFusion Screen Saver Settings window. (v3.4.0+)

-applywindowslockscreen
Re-applies the Windows Lock Screen image as set in the DisplayFusion Settings. (v9.0+)

-monitorloadprofile "profile name"
Loads the Monitor Profile named in the quotes. (v3.4.1+)

-functionrun "hotkey name"
Runs the specified DisplayFusion HotKey. (v4.0+)

-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+)

-desktopiconload "profile name"
Loads the specified Desktop Icon Layout Profile. (v4.0+)

-windowpositionprofilesave "profile name"
Saves the currently opened windows as a Window Position Profile Profile. Specifying the name of an existing profile will prompt to overwrite. (v9.2+)

-windowpositionprofileload "profile name"
Loads the specified Window Position Profile Profile. (v9.2+)

-settingsbackup "file path"
Saves the current DisplayFusion Settings to a .reg file. If you don't specify a file name, the backup will be created in the default location of %USERPROFILE%\Documents\DisplayFusion Backups. (v5.1+)


Examples:

DisplayFusionCommand.exe -closeall
Closes all DisplayFusion instances.

DisplayFusionCommand.exe -wallpaperloadprofile "Horse Pictures"
Loads a pre-configured Wallpaper profile named "Horse Pictures"

DisplayFusionCommand.exe -wallpaperloadprofile "Horse Pictures" -wallpapernextimage
Loads a Wallpaper profile, then loads the next random image

DisplayFusionCommand.exe -functionrun "Start Screen Saver"
Runs the built-in DisplayFusion Function that starts the Screen Saver

DisplayFusionCommand.exe -settingsbackup "C:\Backups\DisplayFusionBackup.reg"
Saves the current DisplayFusion Settings to C:\Backups\DisplayFusionBackup.reg

Aug 13, 2014 (modified Jun 28, 2019)  • #1
Avatar from Gravatar.com
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
Keith Lammers (BFS)'s profile on WallpaperFusion.com
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
Avatar from Gravatar.com
Linfeng Li948660
6 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.
14 days ago  • #4
Jon Tackabury (BFS)'s profile on WallpaperFusion.com
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!
10 days ago  • #5
Avatar from Gravatar.com
Linfeng Li948660
6 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.
10 days ago  • #6
Keith Lammers (BFS)'s profile on WallpaperFusion.com
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?
10 days ago  • #7
Avatar from Gravatar.com
Delmain
2 discussion posts
E: Nevermind
9 days ago (modified 9 days ago)  • #8
Was this helpful?  Login to Vote(3)  Login to Vote
<< Discussions<< NewsReply