Save up to 50% off any of our desktop apps in our 2021 spring sale, including
DisplayFusion, ClipboardFusion, FileSeek, LogFusion, TrayStatus, and VoiceBot!

Title

Message

Confirm

<< DiscussionsReply

Import other script as Library

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
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
Was this helpful?    
<< DiscussionsReply