Script run - 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: Script run (/showthread.php?tid=4248) |
Script run - alexgleyzer - 19.09.2022 Hi everybody! Is there a command to run a script? I have found only enable/disable commands( RE: Script run - admin - 19.09.2022 What exactly do you want to do? If you have some common code that you need to run from different scripts you can wrap it into a function and place it into Common functions or a User library. RE: Script run - alexgleyzer - 19.09.2022 Lets say I have time based script, which starts every 30 minutes. I need to call it from event based script. RE: Script run - admin - 19.09.2022 Then do as I suggested: wrap your code into a function and place it into Common functions or a User library. Then call this function from both scheduled and event scripts. RE: Script run - alexgleyzer - 21.09.2022 Thank you, will do that. |