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
Charles7
49 discussion posts
I'm use this for monitor profiles:

Code

private static bool isMonitorProfile(string testProfile)
    {   string[] ProfileList = BFS.DisplayFusion.GetMonitorProfiles();
        return Array.Exists(ProfileList, element => element == testProfile);
    }



Is it possible to test if a function exists?
Jan 28, 2019  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
There isn't currently a BFS scripting function for getting the list of DF Functions, but we've added this to our feature request list for 9.5 :)
Jan 29, 2019  • #2
Keith Lammers (BFS)'s profile on WallpaperFusion.com
We're getting ready to release DisplayFusion 9.5 Beta 2. It's not posted publicly yet, but you can download it here if you want to give it a try: https://www.binaryfortress.com/Files/DisplayFusion/DisplayFusionSetup-9.5-Beta2.exe

We've added a new function to get the list of available functions: BFS.DisplayFusion.GetFunctions(). You could use that to get the list, then loop through it to see if the one you're looking for exists in the array.

Hope that helps!
May 2, 2019  • #3
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)