Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?

User Image
Nighty
4 discussion posts
Hi,

I'm having a bit of trouble with triggers.

Here's what I'm trying to do:: when VLC starts: turn off wallpaper (so I get a black desktop) and dim my other screen; when VLC ends: turn on wallpaper and un-dim my other screen

So, I made two triggers (see attached pictures) using the Toggle Desktop Wallpaper Feature function and Dim All Monitors Except Primary from the script repository.

When I start VLC: wallpaper doesn't toggle off, other screen dims fine.
When I stop VLC: wallpaper toggles OFF, other screen un-dims, but now there's 4 icons in the notification area all titled Dim All Monitors Except Primary

Start VLC again: wallpaper doesn't toggle, other screen briefly dims, still 4 extra icons.
Stop VLC again: wallpaper toggles (ON), other screen goes very dim and I can just make out 8 extra icons in the notification area.

At this point I right-click on each of the extra icons and select Stop Function. The screen remains very dark until I click the main Displayfusion icon to bring up the settings window.

There are no other triggers enabled, I'm running the latest version of Displayfusion, Win8.1 x64, dual monitors.

I also tried "rolling my own" function (prepended to attached log) based on examples which toggles the wallpaper correctly, still has the problem with extra Dim ... icons and leaves a Waiting for Function dialogue window open the entire time, which is not ideal. ;)

So now I've kind of hit a dead-end and need help! :)

Regards,
Nighty
• Attachment [protected]: log.txt [82,680 bytes]
• Attachment [protected]: Trigger-1.png [32,001 bytes]
• Attachment [protected]: Trigger-2.png [32,120 bytes]
Oct 14, 2017  • #1
User Image
Nighty
4 discussion posts
L1 logs attached.
• Attachment [protected]: DisplayFusion - Function.log [268,336 bytes]
• Attachment [protected]: DisplayFusion - Triggers.log [423,028 bytes]
Oct 14, 2017  • #2
Keith Lammers (BFS)'s profile on WallpaperFusion.com
From the log it looks like VLC is creating and destroying multiple windows when you launch it. Can you try changing the "Frequency" setting in both Trigger rules to "Once per process ID?"
Oct 16, 2017  • #3
User Image
Nighty
4 discussion posts
Ah well spotted!

However now it appears as though nothing has happened because the 2nd trigger is undoing the first immediately.

If I enable/disable the triggers individually in the proper sequence everything works.

Regarding the alternative solution (launching VLC directly and waiting), is there a way to suppress the Waiting for Function dialogue?

Regards,
Nighty
Oct 17, 2017  • #4
Keith Lammers (BFS)'s profile on WallpaperFusion.com
I think VLC is still destroying some invisible window right when it starts up, so that would cause the Window Destroyed Trigger to fire right away.

On both Trigger rules, can you try setting the Frequency back to "Always," and enter "VLC media player" (including the quotes) in the "Window Text" match condition? That fixed this up for me in testing :)
Oct 17, 2017  • #5
User Image
Nighty
4 discussion posts
Fixed! Thanks.
Oct 18, 2017  • #6
Keith Lammers (BFS)'s profile on WallpaperFusion.com
No worries, glad to hear it!
Oct 18, 2017  • #7
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(1)  Login to Vote(-)