protected override async Task Initialize() { Status = "Select window to watch and click heal"; _targetWnd = await MacroModel.GetClientTarget(Ct); Status = "Ok"; }
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; }
protected override async Task Initialize() { _targetWnd = await MacroModel.GetClientTarget(Ct); }