The official site of Four13 Designs offering downloads for DesktopX.
Published on January 4, 2006 By Sranshaft In DesktopX
Is there a difference in the way DesktopX uses VBscript? I've tried the same code using both Wscript (ie, creating a simple .vbs file and running directly through Windows) and the other with DesktopX. While the one used with Windows directly works the way it should - i create an array of available playlists with WMP and call them one item at a time - when used in DesktopX I constantly receive a scripting error of (null) at the line of said code.

Now I can get the code to work in DesktopX if I hard code the item number but I would like to use a variable instead as I do not know how many items will be available at a given time. Can DesktopX not handle variables such as Long? For such a 'powerful' program it really seems to be falling short unless ones making a simple weather object...

I find this very frustrating and there has to be a reason - one though I can not for the life of me figure out. If anyone could help me out it would greatly appreciately.

Comments
on Jan 07, 2006
Does anyone have any answers to this question I've asked or is it too much to ask?
on Jan 07, 2006
Can you actually define the variable type in VBScript? I haven't really tried WScript except for what's implemented in DesktopX, but I thought that you couldn't do that. At least I think I got error when trying to define spesific types. But I could be wrong. I have been busy since last summer with projects so I haven't used DX for a while now. I could be mixing stuff up.

If you send the index value to pass on to the array to a text object, does give you the value you need for it?
on Jan 10, 2006
Thankyou for someone at least responding. The thing is I don't have to define the variable when using Wscript. It runs perfectly just the way it is pulling the type from the array.

If you send the index value to pass on to the array to a text object, does give you the value you need for it?


I'll have to give that a try and I'll let you know what happens. This is the second time DesktopX has fallen short when given something that wasn't a weather object or a clock.
on Jan 10, 2006
This is the second time DesktopX has fallen short when given something that wasn't a weather object or a clock.


This issue isn't restricted to DX, I've experienced similar issues writing Wscript for SysStats (a docklet mechanism for OD+).

So far I haven't found a consistent reason or method of dealing with it.

I'm wondering if it has something to do with the way the host application (i.e DX or SysStats) provides the 'environment' for the script to run in?

Or maybe it's a function of the version of script host between the host application and the PC's installed version? I don't really know enough about this to make any further suggestions... Hopefully a knowledgable person can comment?


Posted via WinCustomize Browser/Stardock Central
on Jan 13, 2006
I'm wondering if it has something to do with the way the host application (i.e DX or SysStats) provides the 'environment' for the script to run in?


That is what I'm wondering as well and it seems to be along the right track from what I can gather. Funny thing is, I was able to pass the information from the array to a text object using the variable as thomassen suggested; so, perhaps it has to do with the way DesktopX goes about creating menus?

Also, on an unrelated topic (and perhaps someone from the DesktopX development team can answer this) will there be any updates to the way DesktopX creates forms? The way it is now is very 'Win98' in its application. I would love to see greater control with the addition of tabs, edit boxes which can hold information and images! Things you can natively do with the Microsoft Forms ActiveX control. I would use these but I haven't been able to find an ActiveX control to create the titlebars (none that are free/royalty-free at least).