Are we talking about running two seperate processes or one process parsing an autoit-alike script? There are differences. If the former, no to your answer, autoit runtime, once run, will not modify/reflect on it's source, thus you cannot add anything like functions (native), only variables.