For those who are interested in a solution, here's a quick workaround, but I would prefer to do it the right way, for example by using the appropriate
command. Also, a method to check if the titlebar Buttons are enabled would be great for a "if" command.
Anyway, here's the workaround: In the settings go to the
"Functions" and set a Key Combination for
"DisplayFusion Functions
Toggle TitleBar Buttons".
Then open your script and add the
command (
http://www.displayfusion.com/ScriptedFunctions/Help#bfs_input_sendkeys) with your key combination. A window should pop up, to help you with the string to put in. And that is basically it.
Please note that I coded in C#, I don't know if this works in Visual Basic.
If you know the "correct" way to implement this feature, please post the solution in this thread or link to it.
I hope that this will be helpful to somebody.