示例#1
0
        protected override async Task Initialize()
        {
            Status     = "Select window to watch and click heal";
            _targetWnd = await MacroModel.GetClientTarget(Ct);

            Status = "Ok";
        }
示例#2
0
        protected override async Task Initialize()
        {
            Status    = "Select where to watch";
            _watchWnd = await MacroModel.GetClientObserve(Ct);

            Status = "Select where to click";
            IntPtr t = default;

            while (!Ct.IsCancellationRequested)
            {
                t = await MacroModel.GetClientTarget(Ct);

                if (t != _watchWnd)
                {
                    break;
                }
            }

            _actWnd = t;
        }
示例#3
0
 protected override async Task Initialize()
 {
     _targetWnd = await MacroModel.GetClientTarget(Ct);
 }