Screen package의 영역 캡처 action 사용
- 최종 업데이트2022/10/10
Screen package의 영역 캡처 action 사용
Screen package에서 영역 캡처 action을 사용하여 애플리케이션 창 영역의 스크린샷을 캡처합니다.
프로시저
애플리케이션 창의 지정된 영역을 캡처하려면 다음 단계를 수행합니다.
- Actions 팔레트의 Screen package에서 영역 캡처 action을 더블 클릭하거나 드래그합니다.
-
객체를 캡처할 창을 지정합니다.
애플리케이션, 브라우저 또는 변수 탭에서 선택합니다.
옵션 설명 애플리케이션 현재 활성 상태인 창 목록에서 선택합니다. 이 옵션은 Bot Creator 기기에서 열려 있는 모든 애플리케이션 및 브라우저 창의 목록을 표시합니다. 브라우저 지원되는 브라우저 탭 목록에서 선택합니다. 주:- Windows에서 이 옵션은 Google Chrome, Chromium 기반 Microsoft Edge, Internet Explorer 브라우저를 지원합니다. 다른 모든 브라우저에서는 애플리케이션 옵션을 사용합니다.
- macOS에서 이 옵션은 Google Chrome 및 Safari 브라우저를 지원합니다.
변수 기존 창 변수를 선택하여 애플리케이션 창의 제목을 지정합니다. - 옵션:
Insert a wildcard character (*) in the
Window title field to search for window titles that can
change. You can specify one or more wildcards (*) at the start, middle, or end of the
value.
For example, to perform an operation on any window that has Microsoft in the title, use a wildcard to indicate any string by adding it before or after the value: *Microsoft*. The bot first searches for the exact window title (Microsoft), and if it does not find a match, it searches for windows with the term Microsoft anywhere in the title.
You can use a regular expression (regex) to identify a window title. Select the regular expression condition as either String or a Pattern and then enter the value. By default, the Window title field is case-sensitive.
To identify a browser title, you can enable the Case sensitive option to match the letter case, or disable the option to identify a window title where the letter case does not match.주: Ensure that the minimum Bot Agent version installed on your system is the version that was released with Automation 360 v.26. If you have a Bot Agent version released with Automation 360 v.25 or earlier, then by default, the window title will be identified only with matching letter case (case-sensitive).For example, to match all window title names beginning with a word followed by- Notepad, you can enter the String value as * -Notepad, or use Pattern value as ((\w)\s)*document-Notepad for only those window titles that match this pattern.주:- When you use a regular expression of type String with -title as the input value for a window title in any action, the bot might encounter a run time error. To prevent the run time error, ensure that when you add the string input as *-title, the application with the specific title is open. The asterisk (*) is just a character, not a wild card character.
- When you use a regular expression of type Pattern with
-title as the input value for a window title in any
action, the bot might encounter a run time
error because the input value *-title is
incorrect.
Ensure that you use valid regex patterns.
주: 런타임에 Task Bot이 올바른 창을 식별하는지 확인합니다. 그렇지 않으면 다음 절차를 수행하십시오.- 애플리케이션 또는 브라우저 창을 엽니다.
- 창 > 활성 창 제목 가져오기 action을 레코더 > 캡처 action 위로 드래그합니다.
- 문자열 변수를 창 제목을 변수에 지정 필드에 삽입합니다.
- 창 > 제목 설정 action을 창 > 활성 창 제목 가져오기 action 아래로 드래그합니다.
- 창 필드에 레코더 > 캡처 action에 의해 생성된 창 변수를 삽입합니다.
- 새 창 제목 필드에 활성 창 제목 가져오기 action에서 얻은 문자열 변수를 삽입합니다.
- 저장을 클릭합니다.
- 옵션:
창 크기 조정 옵션을 선택하여 창 크기를 지정합니다.
이 옵션으로 더욱 안정적인 bot을 제공합니다. 이는 태스크가 기록된 크기에 맞춰서 창의 크기를 조정하여 대상 객체를 식별하는 bot의 기능을 향상시켜줍니다.
- 태스크를 기록할 때 창이 최대화되어 있으면, 이 옵션은 선택이 취소됩니다.
- 태스크를 기록할 때 창이 최대 크기가 아닌 경우, 이 옵션이 기본적으로 선택되며 너비 및 높이 필드는 창 크기에 맞게 자동으로 채워집니다.
주: 이 옵션은 크기를 조정할 수 있는 창에만 사용할 수 있습니다. 데스크톱 또는 작업 표시줄 옵션에는 이용할 수 없습니다. -
영역 캡처를 클릭합니다.
캡처된 영역의 픽셀 좌표는 X, Y, 너비 및 높이 필드에 표시됩니다. 이러한 값은 수정할 수 있습니다.
-
찾아보기를 통해 이미지 저장을 위한 파일 경로를 선택합니다.
png, bmp, jpeg, tiff, gif 및 wmf 등의 파일 확장자를 지원합니다.
- 기존 파일을 동일한 이름으로 바꾸려면 파일 덮어쓰기를 클릭합니다.
- 저장을 클릭합니다.