NetMage
287 discussion posts
I wrote a scripted function to create a blurred image, but I can't refresh it.
It would be nice if BFS.DisplayFusion supported setting the Lock Screen filename and/or refreshing the Lock Screen image. I can't find an API to do that easily in Windows.
Also, my blurring algorithm is running a bit slow - are scripted functions compiled with optimization on?
NetMage
287 discussion posts
I got this working from LINQPad by using UserProfile.LockScreen, but it requires .Net 4.5 to be compatible and would only run on Windows 8/8.1. What Windows are you using?
Since DisplayFusion functions are under .Net 4.0, my code won't run anyway, unless I can find a compatible method for Windows 7 and 8/10.
DisplayFusion should be targeting .NET 4.6.1 now. What error do you get when you try to run your code in a DisplayFusion Scripted Function?
MARCTWAIN CARPENTER
18 discussion posts
Neato!
I am on Windows 10 1903. So are you saying that if i generate a blurring file to run at screentimeout, i may be able to get the effect I am talking about?
NetMage
287 discussion posts
Unfortunately I couldn't figure out a way to grab the automatic or manual Windows lock event (though I am thinking some way to detect idle time and if you know the screen lock timeout, you might could do something close) so you must assign a new hotkey to lock your PC, but then it works if you add a registry key to have windows convert a jpg to the lockscreen.
I sent a share request for the function GaussianLock.
I have modified my function to not lock, added a new GaussianLock function that calls GaussianLockUpdate and then locks, and set a System Idle trigger to 598 seconds then run GaussianLockUpdate. My screensaver timeout is set to ten minutes, so that should catch the screen just before it kicks in.
Jan 23, 2020 (modified Jan 23, 2020)
•
#7