Close gadget

using script

How do close an executable gadget with code. I want to close my gadget using vbscript instead of the "close" menu item on the default pop-up menu. Thanks.
5,022 views 5 replies
Reply #1 Top
I would use another object. Change the type to "widget"; set the action to "Widget close".

Group it, give it an image, export it.

It won't work until it's exported.

{This is my way of saying "I don't know the code")   
Reply #2 Top
The DX Scripting Guide will be of much help in finding these DX specific snippets.

Like Zubaz's method, which is a perfectly good way to do it, the method in code will also only actually work when the project is running as a widget. But the code itself couldn't be simpler.



Widget.Close
Reply #3 Top
Widget.Close


LOL
Reply #4 Top
Widget.Close, ha, good one. I thought it only applied to widgets. I was looking for something like gadget.close, since I'm making a gadget. LOL. Thanks. Thanks for the link to the scripting guide.
Reply #5 Top
Defenetly thanks for the guide I have been looking for something like that for a while. All I could really find was the documntation and that doesn't help to much.