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
Vincenzo Marzano48249
2 discussion posts
Hello,
is there a way to include another script as library?
I would like to create several script (one for each button combination) and each script should call a set of other functions with different paramenters.
Is there a way to centralize the shared functions into another script and include it?
Thanks
Dec 15, 2020  • #1
Jon Tackabury (BFS)'s profile on WallpaperFusion.com
Hi Vincenzo, you can't create shared functions like that but you can call other scripts that you've created. You're limited to only passing a window handle in, so that might not suit your needs. You could create an external DLL and reference that from your script if you just want to create some helper functions. We have reworked scripting support coming in 2021 that might help with this as well, stay tuned. :)
Dec 17, 2020  • #2
User Image
Vincenzo Marzano48249
2 discussion posts
Hi Jon,
thanks for your answer, so if you will add the feature that I'm looking for I would be very happy to stay tuned :) .
About the DLL, I'm a Java developer and not C# but I guess I can figure out how to create a DLL, the real issue here is that I have call/include the BFS in my DLL and idk if your DLL is for public use and where I can find it...
Dec 18, 2020  • #3
Jon Tackabury (BFS)'s profile on WallpaperFusion.com
With the release of DisplayFusion v10 in 2021 you will be able to use the scripting DLL in external applications to externally control DisplayFusion. This should allow you all the flexibility you need and still use the power of DisplayFusion. Stay tuned in 2021! :)
Dec 18, 2020  • #4
User Image
tpolz
18 discussion posts
Can the scripting dll now be used by external applications? I couldn't find any other discussions about this topic.
Jul 1, 2022  • #5
Jon Tackabury (BFS)'s profile on WallpaperFusion.com
Yes, the scripting DLL can be used by any .NET application running .NET 5 or higher.
Jul 6, 2022  • #6
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)