ListVars

스크립트의 변수들을 보여줍니다: 이름과 현재 내용.

ListVars

논평

이 명령어는 메인 창에서 "View->Variables" 메뉴 항목을 선택한 것과 동등합니다. 스크립트를 디버그할 때 도움이 됩니다.

For each variable in the list, the variable's name and contents are shown, along with other information depending on what the variable contains. Each item is terminated with a carriage return and newline (`r`n), but may span multiple lines if the variable contains `r`n.

List items may take the following forms (where words in italics are placeholders):

VarName[Length of Capacity]: String
; [v1.1.26+]
VarName: TypeName object {Info}
; Prior to [v1.1.26]:
VarName[Object]: Address
VarName[Object]: Address <= ComObject(VarType, Value)

Capacity is the variable's current capacity measured in characters, not bytes.

String is the first 60 characters of the variable's contents.

Info depends on the type of object, but is currently very limited.

이 명령어가 함수 안에 사용되면, 그 함수의 지역 변수들이 (스크립트의 전역 변수들보다) 먼저 화면에 보여집니다.

알려진 한계: 함수에 (또는 전역 변수 리스트에) 10,000개가 넘게 변수가 들어 있다면, 이 명령어는 정확하게 알파벳 순서로 보여주지 못할 수 있습니다; 즉, 어떤 것은 빼고 보여줄 가능성이 있습니다.

KeyHistory, ListHotkeys, ListLines

The DebugVars script can be used to inspect and change the contents of variables and objects.

예제

Displays information about the script's variables.

ListVars