@echo off
start /b "" "C:\Program Files\DisplayFusion\DisplayFusionCommand.exe" -monitorloadprofile "TV"
exit
It simply loads the "TV" monitor profile. I was wondering if there is a way to somehow toggle between two profiles using the same command? I have "Desktop" and "TV", so I'm thinking that if the command runs and "Desktop" is the active one, it should change to "TV" and vice versa.
I tried looking for ways through DisplayFusionCommand.exe to somehow fetch the current monitor profile, in that case I could have a conditional in the BAT that checks which one of the profiles that are active and loads the inactive of the two. But it doesn't seem like that is possible.
I've attached a script below that should do this. You can import it via the DisplayFusion Settings > Functions > Scripted Function > Import Scripted Function, and then use the "-functionrun" argument in the command line tool to run it.