private void StartRecordingMethod(TranscriptCmdletBase cmdlet) { // UiaHelper.ProcessingTranscript(cmdlet); Global.GTranscript = true; int counter = 0; cmdlet.OddRootElement = // 20131109 //System.Windows.Automation.AutomationElement.RootElement; UiElement.RootElement; cmdlet.StartDate = DateTime.Now; do { //Application.DoEvents(); // 20131107 counter++; // bool res = // 20131114 //UiaHelper.ProcessingTranscriptOnce(cmdlet, counter); UiaHelper.ProcessingTranscriptOnce(cmdlet, counter, System.Windows.Forms.Cursor.Position); if (!res) { break; } } while (Global.GTranscript); }