2024-07-29 12:43:14 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
|
|
|
|
|
namespace WelsonJS.Service
|
|
|
|
|
{
|
|
|
|
|
public class ScreenMatchResult
|
|
|
|
|
{
|
|
|
|
|
public string FileName { get; set; }
|
|
|
|
|
public int ScreenNumber { get; set; }
|
|
|
|
|
public IntPtr WindowHandle { get; set; }
|
|
|
|
|
public string WindowTitle { get; set; }
|
2024-08-24 13:24:26 +00:00
|
|
|
|
public string ProcessName { get; set; }
|
|
|
|
|
public Point WindowPosition { get; set; }
|
|
|
|
|
public Point Position { get; set; }
|
2024-09-02 05:17:06 +00:00
|
|
|
|
public string Text { get; set; }
|
2024-07-29 12:43:14 +00:00
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return $"Template: {FileName}, Screen Number: {ScreenNumber}, Window Title: {WindowTitle}, " +
|
2024-08-24 13:24:26 +00:00
|
|
|
|
$"Process Name: {ProcessName}, Window Position: (x: {WindowPosition.X}, y: {WindowPosition.Y}), " +
|
2024-09-18 05:33:15 +00:00
|
|
|
|
$"Location: (x: {Position.X}, y: {Position.Y})";
|
2024-07-29 12:43:14 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|