Sets the active region of the screen with the [[#regionid-| RegionId]] number for use in the [[#capturemode-| CaptureMode]]=2 (or 512-520) viewport in subsequent commands. The area is specified by two points [[#reference1-| Reference1]] and [[#reference2-| Reference2]] relative to [[#bitmap1-| Bitmap1]] and [[#bitmap2-| Bitmap2]]. To search for reference bitmaps, the maximum waiting time can be set using [[#wait-|Wait]], to skip multiple occurrences using [[#skip1-|Skip1]] or [[#skip2-|Skip2]], and to mask the search by using [[#maskmode1-|MaskMode1]], [[#bitmapmaskcolor1-|BitmapMaskColor1]] and [[#screenmaskcolor1-|ScreenMaskColor1]] or [[#maskmode2-|MaskMode2]], [[#bitmapmaskcolor2-|BitmapMaskColor2]] and [[#screenmaskcolor2-|ScreenMaskColor2]]. Search areas are specified by the values of [[#capturemode1-|CaptureMode1]] and [[#capturemode2-|CaptureMode2]]. If any of the bitmaps is not found, the command ends in error.
+
Sets the active region of the screen with the [[#regionid-| RegionId]] number for use in the [[#capturemode-| CaptureMode]]=2 (or 512-520) viewport in subsequent commands. The area is specified by two points [[#reference1-| Reference1]] and [[#reference2-| Reference2]] relative to [[#bitmap1-| Bitmap1]] and [[#bitmap2-| Bitmap2]]. To search for reference bitmaps, timeout can be set using [[#wait-|Wait]], to skip multiple occurrences using [[#skip1-|Skip1]] or [[#skip2-|Skip2]], and to mask the search by using [[#maskmode1-|MaskMode1]], [[#bitmapmaskcolor1-|BitmapMaskColor1]] and [[#screenmaskcolor1-|ScreenMaskColor1]] or [[#maskmode2-|MaskMode2]], [[#bitmapmaskcolor2-|BitmapMaskColor2]] and [[#screenmaskcolor2-|ScreenMaskColor2]]. Search areas are specified by the values of [[#capturemode1-|CaptureMode1]] and [[#capturemode2-|CaptureMode2]]. If any of the bitmaps is not found, the command ends in error.