Forum Discussion
Dmitry_Nikolaev
Staff
14 years agoHello Dominik,
If you are going to use your wizard for generating DelphiScript code only, I would recommend that you create a script extension that will make use of the CodeEditor object. This object enables you to add any text to a script unit. Also, in the script extension, you can use the aqString object and invoke its Quote and Replace methods to process strings like Sys.Process('Application').VCLObject('MainForm') and make them valid DelphiScript string constants.
BTW, you asked whether anyone had ever done something similar. I remember such a case: Several years ago Robert Leahey created the ODT Declaration Generator plug-in for TestComplete 4 that analyzed a class defined in the ODT panel and generated script code recreating that class programmatically. Here is the link to the blog post.