示例#1
0
        protected override async Task Run()
        {
            while (!Ct.IsCancellationRequested)
            {
                await Task.Delay(100, Ct).ConfigureAwait(false);

                using (var snapshot = new LaClientSnapshot(_targetWnd))
                {
                    var client = snapshot.Build();
                    var sb     = new StringBuilder();
                    sb.AppendLine($"tHp: {client.TargetHp}%");
                    foreach (var member in client.Party)
                    {
                        sb.AppendLine($"party hp {member.Hp}% mp {member.Mp}");
                    }

                    Status = sb.ToString();
                }
            }
        }
示例#2
0
 public static LaClientModel GetClientModel(IntPtr hWnd)
 {
     using (var s1 = new LaClientSnapshot(hWnd))
         return(s1.Build());
 }