Beispiel #1
0
        public bool CheckClientSize(DmAe dmae)
        {
            object width, height;

            dmae.GetClientSize(BaseData.SystemInfo.GameWindowsHwnd, out width, out height);

            if (Convert.ToInt32(width) != 1280 || Convert.ToInt32(height) != 720)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }
Beispiel #2
0
 public static void BindWindowS(DmAe dmae, int B)
 {
     //windowsStat = 0 解锁 = 1 锁定
     if (B == 0)//解锁
     {
         int dmae0 = dmae.BindWindowUnLock();
         if (dmae0 == 1)
         {
             BaseData.SystemInfo.WindowsState = 0;
         }
     }
     if (B == 1)//锁死鼠标
     {
         int dmae0 = dmae.BindWindowLock();
         if (dmae0 == 1)
         {
             BaseData.SystemInfo.WindowsState = 1;
         }
     }
 }