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
Jeffen Nilsson
118 discussion posts
I really like the Fade All Monitors Except Primary scripted function and i would like to modify it into 2 different functions. one function that only fades, and the other that only unfades. Is this possible?

Ill explain my use case so maybe someone can come up with a better idea.

I open game.exe and i want the other monitors to FADE.
while playing game.exe i want to tab out of it and i want the monitors to UNFADE when i do that.
after i tab out and then go back to game.exe i want the monitors to FADE again.
and in the end when im done playing game.exe i close down the game and i want the monitors to UNFADE.

The problem i could see is that the function will overlap each other so that maybe DF will try to fade/unfade several times in a row so there would have to be something in the script that checks whether the other script is running or not
May 27, 2017 (modified May 27, 2017)  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Are you wanting those two functions to run automatically? Or just want the fade/unfade in separate functions so that you can run them via key combinations?
May 29, 2017  • #2
User Image
Jeffen Nilsson
118 discussion posts
Quote:
Are you wanting those two functions to run automatically? Or just want the fade/unfade in separate functions so that you can run them via key combinations?


i want them to run automatically

i have tried running the function through a trigger but it is very inconsistent, sometimes it works, sometimes it doesnt, sometimes it runs twice so it cancels itself out.
May 29, 2017 (modified May 29, 2017)  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
I'm wondering if we can modify the script so that it's just a long running script that checks the focused window every few seconds. If it's the game window, make sure the other monitors are dimmed, if it's not, then undim them. Does that sound like it would work for your scenario?
May 30, 2017  • #4
User Image
Jeffen Nilsson
118 discussion posts
Quote:
I'm wondering if we can modify the script so that it's just a long running script that checks the focused window every few seconds. If it's the game window, make sure the other monitors are dimmed, if it's not, then undim them. Does that sound like it would work for your scenario?


i'm not sure. I also do this with video players and browser windows so im not sure whats the best.

it feels like it would be easier to use the functions when split into 2 but i'm not sure if that would be annoying to implement.

We could try the easiest solution first and if that doesn't work we could try something else if that makes sense.
May 30, 2017  • #5
Keith Lammers (BFS)'s profile on WallpaperFusion.com
The script could just check for whatever window it was run on, so it should work for anything. Let me see what I can find out.
Jun 2, 2017  • #6
User Image
Jeffen Nilsson
118 discussion posts
Quote:
The script could just check for whatever window it was run on, so it should work for anything. Let me see what I can find out.


have you found anything yet or are you still testing?
Jul 1, 2017  • #7
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Sorry, I haven't forgotten about this, just waiting for one of our devs to have a few minutes of free time to write a Scripted Function for this :)
Jul 6, 2017  • #8
Thomas Malloch (BFS)'s profile on WallpaperFusion.com
Sorry for the long wait! I put together a script that should work for you and attached it to this post. Here's how to get it into DisplayFusion:

  • Download the file attached to this post
  • Open the DisplayFusion Settings Window
  • On the "Functions" tab, click the "Add Scripted" button
  • Copy the text from the file you download in the first step into the window that pops up
  • Give the script a name and a key combination
  • Click OK to close that window, and OK again to save and apply your changes

I hope this works for you!
Jul 21, 2017  • #9
User Image
Jeffen Nilsson
118 discussion posts
Quote:
Sorry for the long wait! I put together a script that should work for you and attached it to this post. Here's how to get it into DisplayFusion:

  • Download the file attached to this post
  • Open the DisplayFusion Settings Window
  • On the "Functions" tab, click the "Add Scripted" button
  • Copy the text from the file you download in the first step into the window that pops up
  • Give the script a name and a key combination
  • Click OK to close that window, and OK again to save and apply your changes

I hope this works for you!


That script seems to work pretty well the only problem i have is when it activatesand when it shuts off.

I want the script to activate when i open game.exe and dim the other monitors, if i then tab out from game.exe i want the other monitors to go back to full brightness, and then when i go back to the game.exe window i want the other monitors to dim again. When i then close game.exe i want the script to stop running.

im not sure if i can do this through triggers or if there is something in the script that has to be edited


I made 2 triggers for game.exe for when the window is created and for when it is destroyed. I have no problem with the destroy trigger but i do have a problem with the created trigger.

When the game.exe window is created and focused the script does run but it does not dim the other monitors even though the game.exe window is focused, i first have to focus a different window and then turn the focus back to game.exe for the other monitors to dim, a small problem perhaps but it is indeed a bit annoying.

I would also like to know where in the script the dim amount is stored so that i can change it if i want. and i would like to know if its possible to add a fade time to the dim so that it gradually dims to its full amount.
Aug 21, 2017 (modified Aug 22, 2017)  • #10
User Image
Jeffen Nilsson
118 discussion posts
Any update on this problem?
Aug 30, 2017  • #11
Thomas Malloch (BFS)'s profile on WallpaperFusion.com
Sorry for the wait! I updated the script to fade in and out, and it should now also work with the Window Created Trigger. You can follow the same steps as my previous post to get this script working in DisplayFusion.

I also added two constants on line 18 and 19 that should help you customize the transparency and fade time of the script.

I hope this works for you!
Sep 1, 2017  • #12
User Image
Jeffen Nilsson
118 discussion posts
Quote:
Sorry for the wait! I updated the script to fade in and out, and it should now also work with the Window Created Trigger. You can follow the same steps as my previous post to get this script working in DisplayFusion.

I also added two constants on line 18 and 19 that should help you customize the transparency and fade time of the script.

I hope this works for you!


The custom transparency and the fade time work perfectly.

I'm still having a problem with the Created window trigger though. The script will run for the window specified but i have to focus a different window and then refocus the intended window for the fade to take effect.

It doesn't work right away with the hotkey for the function either, pressing the hotkey to run the function will remove focus from the affected window and then i have to refocus the window for the fade to take effect.
Sep 1, 2017 (modified Sep 1, 2017)  • #13
Thomas Malloch (BFS)'s profile on WallpaperFusion.com
That's really strange! Is the hotkey working right away with other windows, or are you having the same issue?
Sep 5, 2017  • #14
User Image
Jeffen Nilsson
118 discussion posts
Quote:
That's really strange! Is the hotkey working right away with other windows, or are you having the same issue?


the hotkey seems to always remove focus from the intended window and then i always have to refocus the window for the monitors to dim.
i tried several different windows (chrome, foobar, firefox, vlc, windows explorer) and they all work the same.

the trigger seems to keep the focus on the window but i have to remove the focus from the window and then refocus it for the monitors to dim.
Sep 5, 2017 (modified Sep 5, 2017)  • #15
User Image
Jeffen Nilsson
118 discussion posts
any ideas what the problem might be?
Sep 14, 2017  • #16
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Sorry for the delay, Thomas is busy with ClipboardFusion development at the moment, but he'll have a look at this as soon as he has a chance.
Sep 15, 2017  • #17
User Image
Jeffen Nilsson
118 discussion posts
Quote:
Sorry for the delay, Thomas is busy with ClipboardFusion development at the moment, but he'll have a look at this as soon as he has a chance.


any update on thomas's availibility?
Oct 26, 2017  • #18
Thomas Malloch (BFS)'s profile on WallpaperFusion.com
Sorry for the wait again!

If I can get the game that you're having issues with I can try to see if I can run into the same problem as you so I can fix up this script.

Also, we have built monitor fading directly into DisplayFusion 9. It's much more stable than any of these scripts, and it might work much better for you.

I hope this helps!
Oct 26, 2017  • #19
User Image
Jeffen Nilsson
118 discussion posts
Quote:
Sorry for the wait again!

If I can get the game that you're having issues with I can try to see if I can run into the same problem as you so I can fix up this script.

Also, we have built monitor fading directly into DisplayFusion 9. It's much more stable than any of these scripts, and it might work much better for you.

I hope this helps!


the thing is, it doesnt matter what game or application it is, they all exhibit the same behaviour.

the new monitor fading feature has a lot of promise but could do with multiple additions, such as a fading transition so the fading doesnt flash on and off so extremely at high opacities, separate functions to tie the fading to specific applications as you did in the custom function you made.
Nov 11, 2017  • #20
Thomas Malloch (BFS)'s profile on WallpaperFusion.com
Thanks for the feedback on the DisplayFusion fading function. We've added your suggestions to our list. :)
Feb 6, 2018  • #21
Owen Muhlethaler (BFS)'s profile on WallpaperFusion.com
We've released a new beta that allows you set to a gradual fade time. You can grab it here: https://www.displayfusion.com/Download/Beta/

Thanks!
Jun 26, 2024  • #22
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)