Exemple #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            ExecuteScriptClient executeScriptClient = new ExecuteScriptClient();

            executeScriptClient.StartPosition = FormStartPosition.Manual;
            executeScriptClient.Location      = new Point(50, 50);
            Application.Run(executeScriptClient);
        }
 ///--------------------------------------------------------------------
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="targetAutomationID">
 /// The AutomationID of the target window.
 /// </param>
 /// <param name="client">
 /// The ExecuteScript client form.
 /// </param>
 /// <remarks>
 /// Initializes components.
 /// </remarks>
 ///--------------------------------------------------------------------
 public ScriptFunctions(
     string targetAutomationID, ExecuteScriptClient client)
 {
     clientApp   = client;
     rootElement = AutomationElement.RootElement;
     rootElement = FindElement(targetAutomationID);
     if (rootElement == null)
     {
         Feedback("Could not find target.");
         return;
     }
     Feedback("Target found.");
 }
Exemple #3
0
 public Script(ExecuteScriptClient clientApp)
 {
 }