화면 해상도, 다중-모니터 정보, 시스템 객체의 크기, 그리고 기타 시스템 특성을 열람합니다.
SysGet, OutputVar, SubCommand , Value
The OutputVar parameter is the name of the output variable in which to store the result. SubCommand와 Value 매개변수는 서로 의존합니다. 그 사용법은 아래에 기술합니다.
For SubCommand, specify one of the following:
모니터의 총 개수를 열람합니다.
SysGet, OutputVar, MonitorCount
Unlike SM_CMONITORS mentioned in the table below, this sub-command includes all monitors, even those not being used as part of the desktop.
기본 모니터의 번호를 열람합니다.
SysGet, OutputVar, MonitorPrimary
In a single-monitor system, this will be always 1.
N번 모니터의 둘레 좌표를 열람합니다.
SysGet, OutputVar, Monitor , N
N을 생략하면, 기본 모니터가 사용됩니다. 정보는 네 개의 변수 안에 저장됩니다. 네 변수의 이름은 모두 OutputVar로 시작합니다. N이 너무 크거나 정보를 열람하는 데 문제가 있으면, 이 네 변수는 모두 비워집니다. 예를 들어:
SysGet, Mon2, Monitor, 2 MsgBox, Left: %Mon2Left% -- Top: %Mon2Top% -- Right: %Mon2Right% -- Bottom %Mon2Bottom%.
함수 안에서, 지역 변수가 아닌 전역 변수의 집합을 만들려면, 이 명령어를 사용하기 전에 먼저 Mon2를 전역 변수로 선언 하십시오 (전역-간주 함수에 대하여 그 반대도 마찬가지입니다). 그렇지만, 흔한 혼란의 근원 때문에, 종종 각 변수를 집합 안에 선언하는 것이 필요하기도 합니다.
Retrieves the working area's bounding coordinates of monitor number N.
SysGet, OutputVar, MonitorWorkArea , N
Same as the Monitor sub-command above except the area is reduced to exclude the area occupied by the taskbar and other registered desktop toolbars.
Retrieves the operating system's name of monitor number N.
SysGet, OutputVar, MonitorName , N
N을 생략하면, 기본 모니터가 사용됩니다.
SubCommand에 아래 테이블에 있는 숫자 중 하나를 지정하면 상응하는 값을 열람할 수 있습니다.
SysGet, OutputVar, N
다음 예제는 마우스 버튼의 개수를 이름이 "MouseButtonCount"인 변수에 저장합니다: SysGet, MouseButtonCount, 43.
SysGet, MouseButtonCount, 43
SM_CLEANBOOT: 시스템이 어떻게 시작할지를 지정합니다:
SM_IMMENABLED: 다국어 입력이 가능하면 0이 아닌 값; 그렇지 않으면 0.
SM_IMMENABLED는 시스템이 유니코드 어플리케이션에서 유니코드 기반의 IME를 사용할 준비가 되어 있는지 알려 줍니다. 언어-종속적 IME가 작동하는지 확인하려면, SM_DBCSENABLED와 시스템 ANSI 코드 페이지를 점검하십시오. 그렇지 않으면 ANSI-to-Unicode 변환이 올바르게 수행되지 않을 수 있습니다. 아니면 글꼴이나 레지스트리 설정과 같은 구성요소가 존재하지 않을 수 있습니다.
내장 변수 A_ScreenWidth와 A_ScreenHeight에 픽셀 단위로 기본 모니터의 크기가 들어 있습니다.
DllCall(), WinGet
Retrieves the number of mouse buttons and stores it in MouseButtonCount.
Retrieves the width and height of the virtual screen and stores them in VirtualScreenWidth and VirtualScreenHeight.
SysGet, VirtualScreenWidth, 78 SysGet, VirtualScreenHeight, 79
각 모니터의 정보를 보여줍니다.
SysGet, MonitorCount, MonitorCount SysGet, MonitorPrimary, MonitorPrimary MsgBox, Monitor Count:`t%MonitorCount%`nPrimary Monitor:`t%MonitorPrimary% Loop, %MonitorCount% { SysGet, MonitorName, MonitorName, %A_Index% SysGet, Monitor, Monitor, %A_Index% SysGet, MonitorWorkArea, MonitorWorkArea, %A_Index% MsgBox, Monitor:`t#%A_Index%`nName:`t%MonitorName%`nLeft:`t%MonitorLeft% (%MonitorWorkAreaLeft% work)`nTop:`t%MonitorTop% (%MonitorWorkAreaTop% work)`nRight:`t%MonitorRight% (%MonitorWorkAreaRight% work)`nBottom:`t%MonitorBottom% (%MonitorWorkAreaBottom% work) }