Simple Script

Object

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

2,734 views 1 replies
Reply #1 Top

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.