コード例 #1
0
ファイル: Form1.cs プロジェクト: daviddhc20120601/UiPath
 private bool FindImage()
 {
     //find image
     uiNode.clippingRegion = null;
     try
     {
         UiRegion imageRegion = uiNode.FindImage(image, GetAccuracy());
         if (imageRegion != null)
         {
             uiNode.clippingRegion = imageRegion;
         }
         return(true);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
         return(false);
     }
 }