Log In
Sign Up and Get Started Blogging!
JoeUser is completely free to use! By Signing Up on JoeUser, you can create your own blog and participate on the blogs of others!
Four13 Designs
The official site of Four13 Designs offering downloads for DesktopX.
Scripting Error Problem
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.
Article Tags
desktopx
Popular Articles in this Category
Keep an Eye Out!
Popular Articles from Sranshaft
[Release] MSNstatus Beta
Comments
1
Sranshaft
on Jan 07, 2006
Does anyone have any answers to this question I've asked or is it too much to ask?
2
thomassen
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?
3
Sranshaft
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.
4
Chris TH
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?
5
Sranshaft
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).
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.
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!
Sign Up Now!
Meta
Views
» 4301
Comments
»
5
Category
»
DesktopX
Comment
Recent Article Comments
LightStar Design Windowblind...
Let's start a New Jammin Thr...
A day in the Life of Odditie...
Safe and free software downl...
Veterans Day
A new and more functional PC...
Post your joy
Let's see your political mem...
AI Art Thread: 2022
WD Black Internal and Extern...
Sponsored Links