Hi everyone
please tell me can I run the Nasal script using a property?
for example:
I have the autostart property modifiable by UDP, if the property has 1 then run the Autostart script.
setlistener("/incoming/property/from/UDP/event", func (node) {
if (node.getValue()) {
nasal_autostart_command();
}
}, 1, 0);
var global_system_loop = func {
if (getprop("/incoming/property/from/UDP/event") ==1)
nasal_autostart_command();
}
}
Users browsing this forum: No registered users and 6 guests