Simple Script
Object
Thursday, December 11, 2008 by Automan | Discussion: DesktopX Tutorials
Hi again;
OK, I have a probably stupid question, but I have forgotten How to do this script..
Here goes:
2 Objects One object has a normal system comand right where the setting for layer,etc. There is a small "If state = "Command executed" Then "
activate and run.
Object 2 Just has a script like
DesktopX.object " Object One" .
Object state = "Command executed" ???
I need the first Object to Activate the Second Object and have it run.
The first one tells the second Object to System Restart..
Can anyone help here?
Also one last Question?
Is it possible to Script a program that has already ran a Video to Close and Object One runs on a click?
Thanks
I apologize for making anyone think on this, I have just forgotten how to make another Object run by vbscript...
Automan
Automan
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 Thursday, December 11, 2008 9:06 PM
If I understand your first question correctly, you want to modify an object properties or call some of its script functions from another object.
You can refer to another object by using DesktopX.Object("<name of the object>").<property>. If the object is scripted, you will have to use DesktopX.ScriptObject("<name of the object>").
Keep in mind that if you modify the state, you'll need to implement an Object_OnStateChange(state) callback to be able to react to that event.