Run script (event) of other shape

Find and share HowTos to various installations / configurations!
4 posts • Page 1 of 1
vladimir
Posts:25
Joined: Thu Jan 23, 2014 1:34 pm

Run script (event) of other shape

Post by vladimir »

Hello!

Is it possible to run a script of another object directly? Name of the object known. For example - run MouseHover event script.

Will I use this?
getValue( string shape, "script", string name, string &source);
evalScript(....);

Thanks.

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Run script (event) of other shape

Post by leoknipp »

Hello,

it is not possible to call a event of a shape from another script.
The QT events are only called when the user is interacting with the UI.

If a script shall be started based on another event normally the dpConnect() function is used. The work-function for the dpConnect() is called when one of the dp-elements defined at the dpConnect() are set.

If you need further information please descirbe exactly what you want to do.

Best Regards
Leopold Knipp
Senior Support Specialist

Gertjan van Schijndel
Posts:634
Joined: Mon Aug 02, 2010 10:37 am

Re: Run script (event) of other shape

Post by Gertjan van Schijndel »

Your question seems similiar to the question in this [url]topic: Event Execution[/url].

vladimir
Posts:25
Joined: Thu Jan 23, 2014 1:34 pm

Re: Run script (event) of other shape

Post by vladimir »

Thanks all.

4 posts • Page 1 of 1