Ver código fonte

临时提交

陈子杰 1 ano atrás
pai
commit
2bc6d69e56

+ 18 - 4
skoda-scada-daq3.0-master/skoda-scada-daq3.0-master/scada_-daq3.0-master/SCADA_DAQ/Customer/UctFrmKanbanForPressBrakeEquipment.xaml.cs

@@ -46,6 +46,8 @@ namespace SCADA_DAQ.Customer
     public partial class UctFrmKanbanForPressBrakeEquipment : BaseUctFrm
     {
         private static SqlSchema.DIL.DILDB DAL = Env.SqlDAL;
+
+        public int Index { get; set; }
         //private static DIL.DILDB sqliteDAL = Env.DAL;
         public UctFrmKanbanForPressBrakeEquipment()
         {
@@ -53,10 +55,22 @@ namespace SCADA_DAQ.Customer
             {
                 while (true)
                 {
-                    //点击频率  单位秒
-                    System.Threading.Thread.Sleep(3 * 1000);
-                    //方法第一个参数鼠标x的坐标,第二个参数是鼠标y的坐标
-                    MouseFlag.MouseLeftClickEvent(500, 500, 0);
+                    //点击频率  单位豪秒
+                    System.Threading.Thread.Sleep(30 * 1000);
+                    
+                    if (Index == 0)
+                    {
+                        //方法第一个参数鼠标x的坐标,第二个参数是鼠标y的坐标
+                        MouseFlag.MouseLeftClickEvent(500, 500, 0);
+                        Index++;
+                    }
+                    else
+                    {
+                        MouseFlag.MouseLeftClickEvent(800, 500, 0);
+                        Index = 0;  
+                    }
+                    
+                    
 
                 }
             });