Ejemplo n.º 1
0
        // 如果活动返回值,则从 CodeActivity<TResult>
        // 派生并从 Execute 方法返回该值。
        protected override void Execute(CodeActivityContext context)
        {
            var ts = context.GetValue(操作间隔延迟时间);

            if (ts <= 0)
            {
                ts = 50;
            }
            Client处理函数.模拟鼠标移动(context.GetValue(X坐标), context.GetValue(Y坐标));
            Thread.Sleep(ts);
            Client处理函数.模拟鼠标左键按下(context.GetValue(X坐标), context.GetValue(Y坐标));
            Thread.Sleep(ts);
            Client处理函数.模拟鼠标左键抬起(context.GetValue(X坐标), context.GetValue(Y坐标));
        }
Ejemplo n.º 2
0
 // 如果活动返回值,则从 CodeActivity<TResult>
 // 派生并从 Execute 方法返回该值。
 protected override void Execute(CodeActivityContext context)
 {
     Client处理函数.模拟鼠标左键按下(context.GetValue(X坐标), context.GetValue(Y坐标));
 }