public void ClickThreadFunc(object obj)
 {
     try
     {
         string[] arr  = (string[])obj;
         string   num  = arr[0];
         string   type = arr[1];
         while (true)
         {
             if (IsStart)
             {
                 if (getisClick(num, int.Parse(type)))
                 {
                     LinkStr = ControlInterfaceMethod.getLinkByTypeAndNum(int.Parse(type), num);
                     TypeStr = int.Parse(type);
                     IsStart = false;
                 }
             }
             Thread.Sleep(ThreadTimeClick);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemple #2
0
 public void ClickThreadFunc(object obj)
 {
     try
     {
         while (true)
         {
             if (IsStart)
             {
                 uint result_type;
                 uint result_Num;
                 ComTCPLib.GetInputAsUINT(handle, Click_Type_index, out result_type);
                 Thread.Sleep(200);
                 if (result_type > 0)
                 {
                     ComTCPLib.GetInputAsUINT(handle, Click_Num_index, out result_Num);
                     LinkStr = ControlInterfaceMethod.getLinkByTypeAndNum((int)result_type, result_Num.ToString());
                     TypeStr = (int)result_type;
                     IsStart = false;
                 }
             }
             Thread.Sleep(ThreadTimeClick);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }