Esempio n. 1
0
        public static WindowInfo GetWindowInfo(this Lwsoft3 lw, int hwnd)
        {
            var info = new WindowInfo
            {
                ClassName = lw.GetWindowClass(hwnd),
                Title     = lw.GetWindowTitle(hwnd)
            };

            lw.GetWindowSize(hwnd);
            info.WindowRect = new Rect(new Point(0, 0), new Point(lw.X(), lw.Y()));
            return(info);
        }
Esempio n. 2
0
 public static int FindWindow(this Lwsoft3 lw, List <WindowInfo> infos, int parent = 0)
 {
     foreach (var info in infos)
     {
         var intptr = lw.FindWindow(info.Title, info.ClassName, null, 0, parent);
         if (intptr <= 0)
         {
             return(0);
         }
         parent = intptr;
     }
     return(parent);
 }
Esempio n. 3
0
 public FindPicExt(Lwsoft3 lwsoft3, Rect rect, string bmp) : this(lwsoft3)
 {
     _rect = rect;
     _bmp  = bmp;
 }
Esempio n. 4
0
 public FindPicExt(Lwsoft3 lwsoft3, Rect rect) : this(lwsoft3)
 {
     _rect = rect;
 }
Esempio n. 5
0
 public FindPicExt(Lwsoft3 lwsoft3)
 {
     Reset();
     _lw = lwsoft3;
 }
Esempio n. 6
0
 public BindingDisposable(Lwsoft3 lw)
 {
     _lw = lw;
 }
Esempio n. 7
0
 public static Lwsoft3 MoveR(this Lwsoft3 lw, Point point)
 {
     lw.MoveR((int)point.X, (int)point.Y);
     return(lw);
 }
Esempio n. 8
0
 public static Lwsoft3 ClickDouble(this Lwsoft3 lw, Point point)
 {
     return(ClickDouble(lw, (int)point.X, (int)point.Y));
 }
Esempio n. 9
0
 public static Lwsoft3 ClickDouble(this Lwsoft3 lw, int x, int y)
 {
     ClickOnce(lw, x, y);
     lw.LeftClick();
     return(lw);
 }
Esempio n. 10
0
 public static Lwsoft3 ClickOnce(this Lwsoft3 lw, int x, int y)
 {
     lw.MoveTo(x, y);
     lw.LeftClick();
     return(lw);
 }
Esempio n. 11
0
 public static IDisposable BindWindow(this Lwsoft3 lw, int hwnd,
                                      DisplayBindKey display, MouseBindKey mouse, KeypadBindKey keypad, int added)
 {
     lw.BindWindow(hwnd, display, mouse, keypad, added, 0);
     return(new BindingDisposable(lw));
 }