Script Extensions: recording multiple actions as a single keyword operation
I'm having resonable success writing script extensions for keyword tests including recording steps as keyword operations. However, I'm encountering an issue trying to capture more than one action in the recording process and creating just one keyword operation from them. The regular expression I'm using in the IsSupported event to interpret the validity of the recorded code works (tested through other means) to include the CrLf between the lines, but TestComplete seems to only pass one line of script code to each IsSupported event. An example is these two recorded actions (as they show up in the Code value of the OnGenerate event):
Call Aliases.MyLookupField.SetText("Smith")
Call Aliases.MyLookupField.Keys("[Tab]")
I'm wanting to capture these two recorded actions and create one Keyword operation. I am able to capture each action separately, but it also creates two separate Keyword operations, when I only want one. Creating one correct keyword operation from both actions is not a problem, but avoiding a second keyword operation is. Is there either:
1) a way to capture both actions (i.e. lines of code) in the IsSupported event?
2) or is there a way to eliminate or abort creation of an unneeded keyword operation in the OnGenerate event?
Thanks for any feedback.