Title

Message

Confirm

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

Shutting down a program when monitor profile is changed

Avatar from Gravatar.com
Symmetry
19 discussion posts
Hi
Slowly getting the hang of DisplayFusion (loving it, by the way), and was hoping someone could explain to me how to do something.
I would like to shut down a particular program when the monitor profile is changed from 3 monitors to 2.
I'm guessing i use Triggers? Or Functions? Or both? Or neither?
Would appreciate even a rough guide :)
Thanks
18 days ago  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
You'd need to use a combination of a Trigger rule and a Scripted Function to do this. Could you send me the window title of the program you want to close?
17 days ago  • #2
Avatar from Gravatar.com
Symmetry
19 discussion posts
Sure
The name of the program is called SongBook.
The name of the window is 'document title - LinkeSoft SongBook'
The path for the exe is C:\Program Files (x86)\LinkeSOFT\SongBook\SongBook.exe
Is that what you're chasing?
17 days ago  • #3
Avatar from Gravatar.com
Symmetry
19 discussion posts
Hi there! Any luck?
14 days ago  • #4
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, try this out:

  • Save the attached file, and import it on the Settings > Functions tab with Scripted Function > Import Scripted
  • Apply the settings
  • On the Triggers tab, add a new Trigger rule
  • Choose "Monitor Profile Changed" as the Trigger Event
  • Choose the 2 monitor profile as the Monitor Profile in the Match Conditions section
  • Click Add > Run Function, and choose the "Close SongBook" function
  • Apply the Settings and try it out

Hope that helps!
• Attachment: Close SongBook.dfscript [492 bytes]
14 days ago  • #5
Avatar from Gravatar.com
Symmetry
19 discussion posts
Kieth my friend, you are a genius :)
Works perfectly, thank you.
12 days ago  • #6
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Glad to hear it!
12 days ago  • #7
Was this helpful?  Login to Vote  Login to Vote
<< DiscussionsReply