Hi, your system is correct. Another method is to modify the Templates using the code.
If you have noticed the Template files are text files where in the first lines you find the gates used inside. With a simple routine that reads and writes from files you can replace the gates.
To answer your questions:
- There is no limit to the size of the code.
- The only thing you need to remember is to put at least one sleep in the loops (eg While (WindowIsOpen ()) because the code is executed with high priority and therefore cpu must be left for the interface as well.
Best Regards