///-------------------------------------------------------------------- /// <summary> /// Constructor. /// </summary> /// <param name="client">The client application.</param> /// <param name="target">The target application.</param> /// <remarks> /// Initializes components. /// </remarks> ///-------------------------------------------------------------------- public UiaWorker(ScriptGeneratorClient client, AutomationElement target) { // Initialize member variables. clientApp = client; targetApp = target; elementQueue = new Queue <UiaEventRecord>(); }
static void Main() { System.Windows.Forms.Application.EnableVisualStyles(); System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(false); ScriptGeneratorClient scriptGeneratorClient = new ScriptGeneratorClient(); scriptGeneratorClient.StartPosition = FormStartPosition.Manual; scriptGeneratorClient.Location = new System.Drawing.Point(50, 50); System.Windows.Forms.Application.Run(scriptGeneratorClient); }