Beispiel #1
0
 private void Tim_Exec_Tick(object sender, EventArgs e)
 {
     count++;
     try {
         if (count >= plist.Count)
         {
             Tim_Exec.Stop();
             Text  = "OK";
             count = 1;
             plist.Clear();
             return;
         }
         Output("{" + plist[count].X + "," + plist[count].Y + "}");
         SetCursorPos(plist[count].X, plist[count].Y);
     } catch (Exception ex) {
         Output("exception:" + ex);
         Tim_Exec.Stop();
     }
 }
Beispiel #2
0
 private void btn_start_Click(object sender, EventArgs e)
 {
     if (Tim_Watch.Enabled)
     {
         btn_exec.Enabled = true;
         txt.Clear();
         btn_start.Text = "Start";
         Tim_Watch.Stop();
     }
     else
     {
         btn_exec.Enabled = false;
         txt.Clear();
         plist.Clear();
         btn_start.Text = "Stop";
         Tim_Watch.Start();
         Tim_Exec.Stop();
     }
 }