示例#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);
        }
示例#2
0
 ///--------------------------------------------------------------------
 /// <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.");
 }
示例#3
0
 public Script(ExecuteScriptClient clientApp)
 {
 }