Logic Machine Forum
Can I use a script to edit other script? - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Can I use a script to edit other script? (/showthread.php?tid=3448)



Can I use a script to edit other script? - pouralise - 27.06.2021

Can I use aa event-base script to edit other event-base script? If I can, please help me to do that, better with a simple excample. Many thanks


RE: Can I use a script to edit other script? - admin - 28.06.2021

See this: https://forum.logicmachine.net/showthread.php?tid=3421


RE: Can I use a script to edit other script? - pouralise - 28.06.2021

Nice, thank you. But I have a question that if I dont want to edit the script by ID but by object, how can I do it?
For example, in object tab, I click to object 0/0/1 event script to edit script and it's "scada-main/main/editor?object=1" but in scripting tab, it's "scada-main/main/editor?id=15". They are the same but I want to edit the script by knowing it's object address instead of ID.


And how can I add a new script like this: name =1, group address = 10/7/1, active = true like in the screenshot


[Image: hsHKq20.png]


RE: Can I use a script to edit other script? - pouralise - 29.06.2021

I find a solution, thank you