Need a little more help with script
Is DesktopX's implementation of VB script its own entity?
Sunday, July 2, 2006 by BigDogBigFeet | Discussion: DesktopX
Reply #2 Sunday, July 2, 2006 10:31 PM
vbscript with the FileSystemObject has powerful tools for creating and manipulating text files. Using string and array manipulation you should be able to easily split your edit control content for writing to a text file. Here is a page of links to several examples; you'll have to pick and choose which bits you need for your project:
http://www.microsoft.com/technet/scriptcenter/scripts/misc/text/default.mspx
DesktopX and vbscript also have easy file save and browse dialogs. Check out the System.FileSaveDialog() function. I don't know if I gave this link before...I should have:
https://www.stardock.com/products/desktopxenterprise/resources.asp
The Scripting guide in particular is handy, see page 36 for samples of System.FileSaveDialog()
I never miss a chance to plug my own stuff, and this is no exception. My SSMP widget has a script that creates a text file (a playlist). If you import it into DesktopX Builder, right click on the green "Save Playlist" button and examine its script.
The DX ActiveX controls and also the text objects (in my humble out of date opinion) do not consistently accept font attribute settings. I have had luck setting attributes for an ActiveX edit box like this, but really takes experimenting. The key is to set all values as if they were strings--that is in quotes, even when they are integers or bools:
Control.FontSize = "16" Control.FontBold = "False" Control.FontName = "Trebuchet MS" |
hope that helps,
rr
Reply #3 Sunday, July 2, 2006 10:36 PM
http://forums.desktopgadgets.com/index.aspx?ForumID=276&AID=91958
Reply #4 Sunday, July 2, 2006 11:13 PM
I tink i no watt the problemo is. I don't have DesktopX Enterprise version therefore no Doco. Oh well, How much does it cost to upgrade to Enterprise version? If its not too much I might consider it. I have the version where I can make widgets, but not stand-alone widgets?
Reply #5 Sunday, July 2, 2006 11:26 PM
The enterprise edition costs thousands of dollars, I believe, and is for companies who want to make whole executable desktops (for example). But the Pro version is only like $80, and the normal standard version (aounds like what you have) is great too.
So, while that page mentions Enterprise edition, the documentation applies to all versions, for the most part. No upgrade should be needed.
Reply #6 Sunday, July 2, 2006 11:31 PM
Reply #7 Monday, July 3, 2006 12:51 AM
Reply #8 Monday, July 3, 2006 1:13 AM
Here is a link to the widget on a normal gallery page: https://www.wincustomize.com/ViewSkin.aspx?SID=1&SkinID=632&LibID=34&comments=1
BDBF, I only linked to that Enterprise page because that is the only place I am aware of that has documentation links all together. It's been a while sine I tested those links, though. Sorry. I really don't know where the most up to date, version specific documentation might be, or if it exists. The links are to Word documents and Adobe PDFs. You might have bettter luck Right Click-> Save As
Reply #9 Monday, July 3, 2006 3:45 AM
Reply #10 Monday, July 3, 2006 12:50 PM
MSPaint will save as PNG, and I'd wager Paint.Net will also. I haven't used either much, but with my graphics program I create an empty canvas with a "transparent" background. Then I can create my image using varying lavels of transparency via the tools my app provides (Fireworks has all sorts of places one can adjust transparency, I'm sure Paint.Net does too.)
Anyway, experiment with PNG format for easy transparency in DX.
Reply #11 Monday, July 3, 2006 8:15 PM
Please login to comment and/or vote for this skin.
Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:
- Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
- Access to a great community, with a massive database of many, many areas of interest.
- Access to contests & subscription offers like exclusive emails.
- It's simple, and FREE!







Reply #1 Sunday, July 2, 2006 6:26 PM
Do While condition
statements
Loop
My other questions remain open though. Thanks for any help you may have.