コード例 #1
0
ファイル: HealMacro.cs プロジェクト: hoggins/LaAuto
        protected override async Task Initialize()
        {
            Status     = "Select window to watch and click heal";
            _targetWnd = await MacroModel.GetClientTarget(Ct);

            Status = "Ok";
        }
コード例 #2
0
ファイル: AssistMacro.cs プロジェクト: hoggins/LaAuto
        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);
 }