appium-novawindows2-driver 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/ISSUE_TEMPLATE/bug_report.yml +97 -0
- package/.github/ISSUE_TEMPLATE/feature_request.yml +33 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +28 -0
- package/.github/workflows/lint-build.yml +30 -0
- package/.github/workflows/release.yml +39 -0
- package/.releaserc +41 -0
- package/CHANGELOG.md +33 -0
- package/LICENSE +202 -0
- package/README.md +557 -0
- package/build/eslint.config.d.mts +3 -0
- package/build/eslint.config.d.mts.map +1 -0
- package/build/eslint.config.mjs +6 -0
- package/build/eslint.config.mjs.map +1 -0
- package/build/lib/commands/actions.d.ts +11 -0
- package/build/lib/commands/actions.d.ts.map +1 -0
- package/build/lib/commands/actions.js +212 -0
- package/build/lib/commands/actions.js.map +1 -0
- package/build/lib/commands/app.d.ts +12 -0
- package/build/lib/commands/app.d.ts.map +1 -0
- package/build/lib/commands/app.js +195 -0
- package/build/lib/commands/app.js.map +1 -0
- package/build/lib/commands/device.d.ts +3 -0
- package/build/lib/commands/device.d.ts.map +1 -0
- package/build/lib/commands/device.js +31 -0
- package/build/lib/commands/device.js.map +1 -0
- package/build/lib/commands/element.d.ts +15 -0
- package/build/lib/commands/element.d.ts.map +1 -0
- package/build/lib/commands/element.js +213 -0
- package/build/lib/commands/element.js.map +1 -0
- package/build/lib/commands/extension.d.ts +87 -0
- package/build/lib/commands/extension.d.ts.map +1 -0
- package/build/lib/commands/extension.js +511 -0
- package/build/lib/commands/extension.js.map +1 -0
- package/build/lib/commands/functions.d.ts +3 -0
- package/build/lib/commands/functions.d.ts.map +1 -0
- package/build/lib/commands/functions.js +194 -0
- package/build/lib/commands/functions.js.map +1 -0
- package/build/lib/commands/index.d.ts +126 -0
- package/build/lib/commands/index.d.ts.map +1 -0
- package/build/lib/commands/index.js +54 -0
- package/build/lib/commands/index.js.map +1 -0
- package/build/lib/commands/powershell.d.ts +6 -0
- package/build/lib/commands/powershell.d.ts.map +1 -0
- package/build/lib/commands/powershell.js +204 -0
- package/build/lib/commands/powershell.js.map +1 -0
- package/build/lib/commands/system.d.ts +4 -0
- package/build/lib/commands/system.d.ts.map +1 -0
- package/build/lib/commands/system.js +8 -0
- package/build/lib/commands/system.js.map +1 -0
- package/build/lib/constants.d.ts +2 -0
- package/build/lib/constants.d.ts.map +1 -0
- package/build/lib/constants.js +5 -0
- package/build/lib/constants.js.map +1 -0
- package/build/lib/constraints.d.ts +40 -0
- package/build/lib/constraints.d.ts.map +1 -0
- package/build/lib/constraints.js +42 -0
- package/build/lib/constraints.js.map +1 -0
- package/build/lib/driver.d.ts +33 -0
- package/build/lib/driver.d.ts.map +1 -0
- package/build/lib/driver.js +181 -0
- package/build/lib/driver.js.map +1 -0
- package/build/lib/enums.d.ts +89 -0
- package/build/lib/enums.d.ts.map +1 -0
- package/build/lib/enums.js +83 -0
- package/build/lib/enums.js.map +1 -0
- package/build/lib/powershell/common.d.ts +39 -0
- package/build/lib/powershell/common.d.ts.map +1 -0
- package/build/lib/powershell/common.js +121 -0
- package/build/lib/powershell/common.js.map +1 -0
- package/build/lib/powershell/conditions.d.ts +24 -0
- package/build/lib/powershell/conditions.d.ts.map +1 -0
- package/build/lib/powershell/conditions.js +131 -0
- package/build/lib/powershell/conditions.js.map +1 -0
- package/build/lib/powershell/converter.d.ts +3 -0
- package/build/lib/powershell/converter.d.ts.map +1 -0
- package/build/lib/powershell/converter.js +273 -0
- package/build/lib/powershell/converter.js.map +1 -0
- package/build/lib/powershell/core.d.ts +8 -0
- package/build/lib/powershell/core.d.ts.map +1 -0
- package/build/lib/powershell/core.js +30 -0
- package/build/lib/powershell/core.js.map +1 -0
- package/build/lib/powershell/elements.d.ts +68 -0
- package/build/lib/powershell/elements.d.ts.map +1 -0
- package/build/lib/powershell/elements.js +515 -0
- package/build/lib/powershell/elements.js.map +1 -0
- package/build/lib/powershell/index.d.ts +8 -0
- package/build/lib/powershell/index.d.ts.map +1 -0
- package/build/lib/powershell/index.js +24 -0
- package/build/lib/powershell/index.js.map +1 -0
- package/build/lib/powershell/regex.d.ts +19 -0
- package/build/lib/powershell/regex.d.ts.map +1 -0
- package/build/lib/powershell/regex.js +68 -0
- package/build/lib/powershell/regex.js.map +1 -0
- package/build/lib/powershell/types.d.ts +155 -0
- package/build/lib/powershell/types.d.ts.map +1 -0
- package/build/lib/powershell/types.js +141 -0
- package/build/lib/powershell/types.js.map +1 -0
- package/build/lib/util.d.ts +10 -0
- package/build/lib/util.d.ts.map +1 -0
- package/build/lib/util.js +51 -0
- package/build/lib/util.js.map +1 -0
- package/build/lib/winapi/types/index.d.ts +8 -0
- package/build/lib/winapi/types/index.d.ts.map +1 -0
- package/build/lib/winapi/types/index.js +24 -0
- package/build/lib/winapi/types/index.js.map +1 -0
- package/build/lib/winapi/types/input.d.ts +11 -0
- package/build/lib/winapi/types/input.d.ts.map +1 -0
- package/build/lib/winapi/types/input.js +12 -0
- package/build/lib/winapi/types/input.js.map +1 -0
- package/build/lib/winapi/types/keyeventf.d.ts +13 -0
- package/build/lib/winapi/types/keyeventf.d.ts.map +1 -0
- package/build/lib/winapi/types/keyeventf.js +14 -0
- package/build/lib/winapi/types/keyeventf.js.map +1 -0
- package/build/lib/winapi/types/mouseeventf.d.ts +34 -0
- package/build/lib/winapi/types/mouseeventf.d.ts.map +1 -0
- package/build/lib/winapi/types/mouseeventf.js +37 -0
- package/build/lib/winapi/types/mouseeventf.js.map +1 -0
- package/build/lib/winapi/types/scancode.d.ts +95 -0
- package/build/lib/winapi/types/scancode.d.ts.map +1 -0
- package/build/lib/winapi/types/scancode.js +96 -0
- package/build/lib/winapi/types/scancode.js.map +1 -0
- package/build/lib/winapi/types/systemmetric.d.ts +214 -0
- package/build/lib/winapi/types/systemmetric.d.ts.map +1 -0
- package/build/lib/winapi/types/systemmetric.js +215 -0
- package/build/lib/winapi/types/systemmetric.js.map +1 -0
- package/build/lib/winapi/types/virtualkey.d.ts +353 -0
- package/build/lib/winapi/types/virtualkey.d.ts.map +1 -0
- package/build/lib/winapi/types/virtualkey.js +354 -0
- package/build/lib/winapi/types/virtualkey.js.map +1 -0
- package/build/lib/winapi/types/xmousebutton.d.ts +7 -0
- package/build/lib/winapi/types/xmousebutton.d.ts.map +1 -0
- package/build/lib/winapi/types/xmousebutton.js +8 -0
- package/build/lib/winapi/types/xmousebutton.js.map +1 -0
- package/build/lib/winapi/user32.d.ts +56 -0
- package/build/lib/winapi/user32.d.ts.map +1 -0
- package/build/lib/winapi/user32.js +591 -0
- package/build/lib/winapi/user32.js.map +1 -0
- package/build/lib/xpath/core.d.ts +8 -0
- package/build/lib/xpath/core.d.ts.map +1 -0
- package/build/lib/xpath/core.js +593 -0
- package/build/lib/xpath/core.js.map +1 -0
- package/build/lib/xpath/functions.d.ts +4 -0
- package/build/lib/xpath/functions.d.ts.map +1 -0
- package/build/lib/xpath/functions.js +271 -0
- package/build/lib/xpath/functions.js.map +1 -0
- package/build/lib/xpath/index.d.ts +3 -0
- package/build/lib/xpath/index.d.ts.map +1 -0
- package/build/lib/xpath/index.js +19 -0
- package/build/lib/xpath/index.js.map +1 -0
- package/eslint.config.mjs +11 -0
- package/examples/C#/CalculatorTest/CalculatorTest/CalculatorSession.cs +44 -0
- package/examples/C#/CalculatorTest/CalculatorTest/CalculatorTest.csproj +24 -0
- package/examples/C#/CalculatorTest/CalculatorTest/ScenarioStandard.cs +121 -0
- package/examples/C#/CalculatorTest/CalculatorTest/ScenarioStandardInvoke.cs +121 -0
- package/examples/C#/CalculatorTest/CalculatorTest.sln +16 -0
- package/lib/commands/actions.ts +229 -0
- package/lib/commands/app.ts +227 -0
- package/lib/commands/device.ts +41 -0
- package/lib/commands/element.ts +242 -0
- package/lib/commands/extension.ts +636 -0
- package/lib/commands/functions.ts +192 -0
- package/lib/commands/index.ts +28 -0
- package/lib/commands/powershell.ts +243 -0
- package/lib/commands/system.ts +7 -0
- package/lib/constants.ts +1 -0
- package/lib/constraints.ts +43 -0
- package/lib/driver.ts +247 -0
- package/lib/enums.ts +96 -0
- package/lib/powershell/common.ts +137 -0
- package/lib/powershell/conditions.ts +169 -0
- package/lib/powershell/converter.ts +373 -0
- package/lib/powershell/core.ts +29 -0
- package/lib/powershell/elements.ts +584 -0
- package/lib/powershell/index.ts +7 -0
- package/lib/powershell/regex.ts +77 -0
- package/lib/powershell/types.ts +208 -0
- package/lib/util.ts +52 -0
- package/lib/winapi/types/index.ts +7 -0
- package/lib/winapi/types/input.ts +12 -0
- package/lib/winapi/types/keyeventf.ts +14 -0
- package/lib/winapi/types/mouseeventf.ts +37 -0
- package/lib/winapi/types/scancode.ts +96 -0
- package/lib/winapi/types/systemmetric.ts +215 -0
- package/lib/winapi/types/virtualkey.ts +354 -0
- package/lib/winapi/types/xmousebutton.ts +8 -0
- package/lib/winapi/user32.ts +842 -0
- package/lib/xpath/core.ts +699 -0
- package/lib/xpath/functions.ts +366 -0
- package/lib/xpath/index.ts +2 -0
- package/package.json +61 -0
- package/tsconfig.json +13 -0
- package/verify_driver.js +96 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const MouseEventFlags: Readonly<{
|
|
2
|
+
/** Movement occurred. */
|
|
3
|
+
readonly MOUSEEVENTF_MOVE: 1;
|
|
4
|
+
/** The left button was pressed. */
|
|
5
|
+
readonly MOUSEEVENTF_LEFTDOWN: 2;
|
|
6
|
+
/** The left button was released. */
|
|
7
|
+
readonly MOUSEEVENTF_LEFTUP: 4;
|
|
8
|
+
/** The right button was pressed. */
|
|
9
|
+
readonly MOUSEEVENTF_RIGHTDOWN: 8;
|
|
10
|
+
/** The right button was released. */
|
|
11
|
+
readonly MOUSEEVENTF_RIGHTUP: 16;
|
|
12
|
+
/** The middle button was pressed. */
|
|
13
|
+
readonly MOUSEEVENTF_MIDDLEDOWN: 32;
|
|
14
|
+
/** The middle button was released. */
|
|
15
|
+
readonly MOUSEEVENTF_MIDDLEUP: 64;
|
|
16
|
+
/** An X button was pressed. */
|
|
17
|
+
readonly MOUSEEVENTF_XDOWN: 128;
|
|
18
|
+
/** An X button was released. */
|
|
19
|
+
readonly MOUSEEVENTF_XUP: 256;
|
|
20
|
+
/** The wheel was moved, if the mouse has a wheel. The amount of movement is specified in mouseData. */
|
|
21
|
+
readonly MOUSEEVENTF_WHEEL: 2048;
|
|
22
|
+
/** The wheel was moved horizontally, if the mouse has a wheel. The amount of movement is specified in mouseData.
|
|
23
|
+
Windows XP/2000: This value is not supported. */
|
|
24
|
+
readonly MOUSEEVENTF_HWHEEL: 4096;
|
|
25
|
+
/** The WM_MOUSEMOVE messages will not be coalesced. The default behavior is to coalesce WM_MOUSEMOVE messages.
|
|
26
|
+
Windows XP/2000: This value is not supported. */
|
|
27
|
+
readonly MOUSEEVENTF_MOVE_NOCOALESCE: 8192;
|
|
28
|
+
/** Maps coordinates to the entire desktop. Must be used with MOUSEEVENTF_ABSOLUTE.*/
|
|
29
|
+
readonly MOUSEEVENTF_VIRTUALDESK: 16384;
|
|
30
|
+
/** The dx and dy members contain normalized absolute coordinates. If the flag is not set, dxand dy contain relative data (the change in position since the last reported position). This flag can be set, or not set, regardless of what kind of mouse or other pointing device, if any, is connected to the system. For further information about relative mouse motion, see the following Remarks section. */
|
|
31
|
+
readonly MOUSEEVENTF_ABSOLUTE: 32768;
|
|
32
|
+
}>;
|
|
33
|
+
export type MouseEventFlags = number;
|
|
34
|
+
//# sourceMappingURL=mouseeventf.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mouseeventf.d.ts","sourceRoot":"","sources":["../../../../lib/winapi/types/mouseeventf.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;IACxB,yBAAyB;;IAEzB,mCAAmC;;IAEnC,oCAAoC;;IAEpC,oCAAoC;;IAEpC,qCAAqC;;IAErC,qCAAqC;;IAErC,sCAAsC;;IAEtC,+BAA+B;;IAE/B,gCAAgC;;IAEhC,uGAAuG;;IAEvG;oDACgD;;IAEhD;oDACgD;;IAEhD,qFAAqF;;IAErF,gZAAgZ;;EAEzY,CAAC;AAEZ,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// import { FlagsEnum } from './enums';
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.MouseEventFlags = void 0;
|
|
5
|
+
exports.MouseEventFlags = Object.freeze({
|
|
6
|
+
/** Movement occurred. */
|
|
7
|
+
MOUSEEVENTF_MOVE: 0x0001,
|
|
8
|
+
/** The left button was pressed. */
|
|
9
|
+
MOUSEEVENTF_LEFTDOWN: 0x0002,
|
|
10
|
+
/** The left button was released. */
|
|
11
|
+
MOUSEEVENTF_LEFTUP: 0x0004,
|
|
12
|
+
/** The right button was pressed. */
|
|
13
|
+
MOUSEEVENTF_RIGHTDOWN: 0x0008,
|
|
14
|
+
/** The right button was released. */
|
|
15
|
+
MOUSEEVENTF_RIGHTUP: 0x0010,
|
|
16
|
+
/** The middle button was pressed. */
|
|
17
|
+
MOUSEEVENTF_MIDDLEDOWN: 0x0020,
|
|
18
|
+
/** The middle button was released. */
|
|
19
|
+
MOUSEEVENTF_MIDDLEUP: 0x0040,
|
|
20
|
+
/** An X button was pressed. */
|
|
21
|
+
MOUSEEVENTF_XDOWN: 0x0080,
|
|
22
|
+
/** An X button was released. */
|
|
23
|
+
MOUSEEVENTF_XUP: 0x0100,
|
|
24
|
+
/** The wheel was moved, if the mouse has a wheel. The amount of movement is specified in mouseData. */
|
|
25
|
+
MOUSEEVENTF_WHEEL: 0x0800,
|
|
26
|
+
/** The wheel was moved horizontally, if the mouse has a wheel. The amount of movement is specified in mouseData.
|
|
27
|
+
Windows XP/2000: This value is not supported. */
|
|
28
|
+
MOUSEEVENTF_HWHEEL: 0x1000,
|
|
29
|
+
/** The WM_MOUSEMOVE messages will not be coalesced. The default behavior is to coalesce WM_MOUSEMOVE messages.
|
|
30
|
+
Windows XP/2000: This value is not supported. */
|
|
31
|
+
MOUSEEVENTF_MOVE_NOCOALESCE: 0x2000,
|
|
32
|
+
/** Maps coordinates to the entire desktop. Must be used with MOUSEEVENTF_ABSOLUTE.*/
|
|
33
|
+
MOUSEEVENTF_VIRTUALDESK: 0x4000,
|
|
34
|
+
/** The dx and dy members contain normalized absolute coordinates. If the flag is not set, dxand dy contain relative data (the change in position since the last reported position). This flag can be set, or not set, regardless of what kind of mouse or other pointing device, if any, is connected to the system. For further information about relative mouse motion, see the following Remarks section. */
|
|
35
|
+
MOUSEEVENTF_ABSOLUTE: 0x8000,
|
|
36
|
+
});
|
|
37
|
+
//# sourceMappingURL=mouseeventf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mouseeventf.js","sourceRoot":"","sources":["../../../../lib/winapi/types/mouseeventf.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAE1B,QAAA,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC;IACzC,yBAAyB;IACzB,gBAAgB,EAAE,MAAM;IACxB,mCAAmC;IACnC,oBAAoB,EAAE,MAAM;IAC5B,oCAAoC;IACpC,kBAAkB,EAAE,MAAM;IAC1B,oCAAoC;IACpC,qBAAqB,EAAE,MAAM;IAC7B,qCAAqC;IACrC,mBAAmB,EAAE,MAAM;IAC3B,qCAAqC;IACrC,sBAAsB,EAAE,MAAM;IAC9B,sCAAsC;IACtC,oBAAoB,EAAE,MAAM;IAC5B,+BAA+B;IAC/B,iBAAiB,EAAE,MAAM;IACzB,gCAAgC;IAChC,eAAe,EAAE,MAAM;IACvB,uGAAuG;IACvG,iBAAiB,EAAE,MAAM;IACzB;oDACgD;IAChD,kBAAkB,EAAE,MAAM;IAC1B;oDACgD;IAChD,2BAA2B,EAAE,MAAM;IACnC,qFAAqF;IACrF,uBAAuB,EAAE,MAAM;IAC/B,gZAAgZ;IAChZ,oBAAoB,EAAE,MAAM;CACtB,CAAC,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { Enum } from '../../enums';
|
|
2
|
+
export declare const ScanCode: Readonly<{
|
|
3
|
+
readonly Esc: 1;
|
|
4
|
+
readonly N1: 2;
|
|
5
|
+
readonly N2: 3;
|
|
6
|
+
readonly N3: 4;
|
|
7
|
+
readonly N4: 5;
|
|
8
|
+
readonly N5: 6;
|
|
9
|
+
readonly N6: 7;
|
|
10
|
+
readonly N7: 8;
|
|
11
|
+
readonly N8: 9;
|
|
12
|
+
readonly N9: 10;
|
|
13
|
+
readonly N0: 11;
|
|
14
|
+
readonly MINUS: 12;
|
|
15
|
+
readonly EQUAL: 13;
|
|
16
|
+
readonly BACKSPACE: 14;
|
|
17
|
+
readonly TAB: 15;
|
|
18
|
+
readonly Q: 16;
|
|
19
|
+
readonly W: 17;
|
|
20
|
+
readonly E: 18;
|
|
21
|
+
readonly R: 19;
|
|
22
|
+
readonly T: 20;
|
|
23
|
+
readonly Y: 21;
|
|
24
|
+
readonly U: 22;
|
|
25
|
+
readonly I: 23;
|
|
26
|
+
readonly O: 24;
|
|
27
|
+
readonly P: 25;
|
|
28
|
+
readonly OPEN_BRACKETS: 26;
|
|
29
|
+
readonly CLOSE_BRACKETS: 27;
|
|
30
|
+
readonly ENTER: 28;
|
|
31
|
+
readonly LCTRL: 29;
|
|
32
|
+
readonly A: 30;
|
|
33
|
+
readonly S: 31;
|
|
34
|
+
readonly D: 32;
|
|
35
|
+
readonly F: 33;
|
|
36
|
+
readonly G: 34;
|
|
37
|
+
readonly H: 35;
|
|
38
|
+
readonly J: 36;
|
|
39
|
+
readonly K: 37;
|
|
40
|
+
readonly L: 38;
|
|
41
|
+
readonly SEMICOLON: 39;
|
|
42
|
+
readonly APOSTROPHE: 40;
|
|
43
|
+
readonly BACKTICK: 41;
|
|
44
|
+
readonly LSHIFT: 42;
|
|
45
|
+
readonly BACKSLASH: 43;
|
|
46
|
+
readonly Z: 44;
|
|
47
|
+
readonly X: 45;
|
|
48
|
+
readonly C: 46;
|
|
49
|
+
readonly V: 47;
|
|
50
|
+
readonly B: 48;
|
|
51
|
+
readonly N: 49;
|
|
52
|
+
readonly M: 50;
|
|
53
|
+
readonly COMMA: 51;
|
|
54
|
+
readonly PERIOD: 52;
|
|
55
|
+
readonly SLASH: 53;
|
|
56
|
+
readonly RSHIFT: 54;
|
|
57
|
+
readonly KEYPAD_ASTERISK: 55;
|
|
58
|
+
readonly LALT: 56;
|
|
59
|
+
readonly SPACE: 57;
|
|
60
|
+
readonly CAPS_LOCK: 58;
|
|
61
|
+
readonly F1: 59;
|
|
62
|
+
readonly F2: 60;
|
|
63
|
+
readonly F3: 61;
|
|
64
|
+
readonly F4: 62;
|
|
65
|
+
readonly F5: 63;
|
|
66
|
+
readonly F6: 64;
|
|
67
|
+
readonly F7: 65;
|
|
68
|
+
readonly F8: 66;
|
|
69
|
+
readonly F9: 67;
|
|
70
|
+
readonly F10: 68;
|
|
71
|
+
readonly NUM_LOCK: 69;
|
|
72
|
+
readonly SCROLL_LOCK: 70;
|
|
73
|
+
readonly KEYPAD7_HOME: 71;
|
|
74
|
+
readonly KEYPAD8_UP: 72;
|
|
75
|
+
readonly KEYPAD9_PG_UP: 73;
|
|
76
|
+
readonly KEYPAD_MINUS: 74;
|
|
77
|
+
readonly KEYPAD4_LEFT: 75;
|
|
78
|
+
readonly KEYPAD5: 76;
|
|
79
|
+
readonly KEYPAD6_RIGHT: 77;
|
|
80
|
+
readonly KEYPAD_PLUS: 78;
|
|
81
|
+
readonly KEYPAD1_END: 79;
|
|
82
|
+
readonly KEYPAD2_DOWN: 80;
|
|
83
|
+
readonly KEYPAD3_PG_DN: 81;
|
|
84
|
+
readonly KEYPAD0_INS: 82;
|
|
85
|
+
readonly KEYPAD_PERIOD_DEL: 83;
|
|
86
|
+
readonly FN: 86;
|
|
87
|
+
readonly F11: 87;
|
|
88
|
+
readonly F12: 88;
|
|
89
|
+
readonly ESCAPE_CODE: 224;
|
|
90
|
+
readonly LWIN: 91;
|
|
91
|
+
readonly RWIN: 92;
|
|
92
|
+
readonly MENU: 93;
|
|
93
|
+
}>;
|
|
94
|
+
export type ScanCode = Enum<typeof ScanCode>;
|
|
95
|
+
//# sourceMappingURL=scancode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scancode.d.ts","sourceRoot":"","sources":["../../../../lib/winapi/types/scancode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2FV,CAAC;AAEZ,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScanCode = void 0;
|
|
4
|
+
exports.ScanCode = Object.freeze({
|
|
5
|
+
Esc: 0x01,
|
|
6
|
+
N1: 0x02,
|
|
7
|
+
N2: 0x03,
|
|
8
|
+
N3: 0x04,
|
|
9
|
+
N4: 0x05,
|
|
10
|
+
N5: 0x06,
|
|
11
|
+
N6: 0x07,
|
|
12
|
+
N7: 0x08,
|
|
13
|
+
N8: 0x09,
|
|
14
|
+
N9: 0x0A,
|
|
15
|
+
N0: 0x0B,
|
|
16
|
+
MINUS: 0x0C,
|
|
17
|
+
EQUAL: 0x0D,
|
|
18
|
+
BACKSPACE: 0x0E,
|
|
19
|
+
TAB: 0x0F,
|
|
20
|
+
Q: 0x10,
|
|
21
|
+
W: 0x11,
|
|
22
|
+
E: 0x12,
|
|
23
|
+
R: 0x13,
|
|
24
|
+
T: 0x14,
|
|
25
|
+
Y: 0x15,
|
|
26
|
+
U: 0x16,
|
|
27
|
+
I: 0x17,
|
|
28
|
+
O: 0x18,
|
|
29
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
|
+
KEYPAD9_PG_UP: 0x49,
|
|
78
|
+
KEYPAD_MINUS: 0x4A,
|
|
79
|
+
KEYPAD4_LEFT: 0x4B,
|
|
80
|
+
KEYPAD5: 0x4C,
|
|
81
|
+
KEYPAD6_RIGHT: 0x4D,
|
|
82
|
+
KEYPAD_PLUS: 0x4E,
|
|
83
|
+
KEYPAD1_END: 0x4F,
|
|
84
|
+
KEYPAD2_DOWN: 0x50,
|
|
85
|
+
KEYPAD3_PG_DN: 0x51,
|
|
86
|
+
KEYPAD0_INS: 0x52,
|
|
87
|
+
KEYPAD_PERIOD_DEL: 0x53,
|
|
88
|
+
FN: 0x56,
|
|
89
|
+
F11: 0x57,
|
|
90
|
+
F12: 0x58,
|
|
91
|
+
ESCAPE_CODE: 0xE0,
|
|
92
|
+
LWIN: 0x5B,
|
|
93
|
+
RWIN: 0x5C,
|
|
94
|
+
MENU: 0x5D,
|
|
95
|
+
});
|
|
96
|
+
//# sourceMappingURL=scancode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scancode.js","sourceRoot":"","sources":["../../../../lib/winapi/types/scancode.ts"],"names":[],"mappings":";;;AAEa,QAAA,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC;IAClC,GAAG,EAAE,IAAI;IACT,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,KAAK,EAAE,IAAI;IACX,KAAK,EAAE,IAAI;IACX,SAAS,EAAE,IAAI;IACf,GAAG,EAAE,IAAI;IACT,CAAC,EAAE,IAAI;IACP,CAAC,EAAE,IAAI;IACP,CAAC,EAAE,IAAI;IACP,CAAC,EAAE,IAAI;IACP,CAAC,EAAE,IAAI;IACP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Y,EAAE,IAAI;IAClB,YAAY,EAAE,IAAI;IAClB,OAAO,EAAE,IAAI;IACb,aAAa,EAAE,IAAI;IACnB,WAAW,EAAE,IAAI;IACjB,WAAW,EAAE,IAAI;IACjB,YAAY,EAAE,IAAI;IAClB,aAAa,EAAE,IAAI;IACnB,WAAW,EAAE,IAAI;IACjB,iBAAiB,EAAE,IAAI;IACvB,EAAE,EAAE,IAAI;IACR,GAAG,EAAE,IAAI;IACT,GAAG,EAAE,IAAI;IACT,WAAW,EAAE,IAAI;IACjB,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI;CACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import { Enum } from '../../enums';
|
|
2
|
+
export declare const SystemMetric: Readonly<{
|
|
3
|
+
/** The flags that specify how the system arranged minimized windows. For more information, see the Remarks section in this topic. */
|
|
4
|
+
SM_ARRANGE: 56;
|
|
5
|
+
/** The value that specifies how the system is started:
|
|
6
|
+
0 Normal boot
|
|
7
|
+
1 Fail-safe boot
|
|
8
|
+
2 Fail-safe with network boot
|
|
9
|
+
A fail-safe boot (also called SafeBoot, Safe Mode, or Clean Boot) bypasses the user startup files. */
|
|
10
|
+
SM_CLEANBOOT: 67;
|
|
11
|
+
/** The number of display monitors on a desktop. For more information, see the Remarks section in this topic. */
|
|
12
|
+
SM_CMONITORS: 80;
|
|
13
|
+
/** The number of buttons on a mouse, or zero if no mouse is installed. */
|
|
14
|
+
SM_CMOUSEBUTTONS: 43;
|
|
15
|
+
/** Reflects the state of the laptop or slate mode, 0 for Slate Mode and non-zero otherwise. When this system metric changes, the system sends a broadcast message via WM_SETTINGCHANGE with "ConvertibleSlateMode" in the LPARAM. Note that this system metric doesn't apply to desktop PCs. In that case, use GetAutoRotationState. */
|
|
16
|
+
SM_CONVERTIBLESLATEMODE: 8195;
|
|
17
|
+
/** The width of a window border, in pixels. This is equivalent to the SM_CXEDGE value for windows with the 3-D look. */
|
|
18
|
+
SM_CXBORDER: 5;
|
|
19
|
+
/** The nominal width of a cursor, in pixels. */
|
|
20
|
+
SM_CXCURSOR: 13;
|
|
21
|
+
/** This value is the same as SM_CXFIXEDFRAME. */
|
|
22
|
+
SM_CXDLGFRAME: 7;
|
|
23
|
+
/** The width of the rectangle around the location of a first click in a double-click sequence, in pixels. The second click must occur within the rectangle that is defined by SM_CXDOUBLECLK and SM_CYDOUBLECLK for the system to consider the two clicks a double-click. The two clicks must also occur within a specified time.
|
|
24
|
+
To set the width of the double-click rectangle, call SystemParametersInfo with SPI_SETDOUBLECLKWIDTH. */
|
|
25
|
+
SM_CXDOUBLECLK: 36;
|
|
26
|
+
/** The number of pixels on either side of a mouse-down point that the mouse pointer can move before a drag operation begins. This allows the user to click and release the mouse button easily without unintentionally starting a drag operation. If this value is negative, it is subtracted from the left of the mouse-down point and added to the right of it. */
|
|
27
|
+
SM_CXDRAG: 68;
|
|
28
|
+
/** The width of a 3-D border, in pixels. This metric is the 3-D counterpart of SM_CXBORDER. */
|
|
29
|
+
SM_CXEDGE: 45;
|
|
30
|
+
/** The thickness of the frame around the perimeter of a window that has a caption but is not sizable, in pixels. SM_CXFIXEDFRAME is the height of the horizontal border, and SM_CYFIXEDFRAME is the width of the vertical border.
|
|
31
|
+
This value is the same as SM_CXDLGFRAME. */
|
|
32
|
+
SM_CXFIXEDFRAME: 7;
|
|
33
|
+
/** The width of the left and right edges of the focus rectangle that the DrawFocusRect draws. This value is in pixels.
|
|
34
|
+
Windows 2000: This value is not supported. */
|
|
35
|
+
SM_CXFOCUSBORDER: 83;
|
|
36
|
+
/** This value is the same as SM_CXSIZEFRAME. */
|
|
37
|
+
SM_CXFRAME: 32;
|
|
38
|
+
/** The width of the client area for a full-screen window on the primary display monitor, in pixels. To get the coordinates of the portion of the screen that is not obscured by the system taskbar or by application desktop toolbars, call the SystemParametersInfo function with the SPI_GETWORKAREA value. */
|
|
39
|
+
SM_CXFULLSCREEN: 16;
|
|
40
|
+
/** The width of the arrow bitmap on a horizontal scroll bar, in pixels. */
|
|
41
|
+
SM_CXHSCROLL: 21;
|
|
42
|
+
/** The width of the thumb box in a horizontal scroll bar, in pixels. */
|
|
43
|
+
SM_CXHTHUMB: 10;
|
|
44
|
+
/** The system large width of an icon, in pixels. The LoadIcon function can load only icons with the dimensions that SM_CXICON and SM_CYICON specifies. See Icon Sizes for more info. */
|
|
45
|
+
SM_CXICON: 11;
|
|
46
|
+
/** The width of a grid cell for items in large icon view, in pixels. Each item fits into a rectangle of size SM_CXICONSPACING by SM_CYICONSPACING when arranged. This value is always greater than or equal to SM_CXICON. */
|
|
47
|
+
SM_CXICONSPACING: 38;
|
|
48
|
+
/** The default width, in pixels, of a maximized top-level window on the primary display monitor. */
|
|
49
|
+
SM_CXMAXIMIZED: 61;
|
|
50
|
+
/** The default maximum width of a window that has a caption and sizing borders, in pixels. This metric refers to the entire desktop. The user cannot drag the window frame to a size larger than these dimensions. A window can override this value by processing the WM_GETMINMAXINFO message. */
|
|
51
|
+
SM_CXMAXTRACK: 59;
|
|
52
|
+
/** The width of the default menu check-mark bitmap, in pixels. */
|
|
53
|
+
SM_CXMENUCHECK: 71;
|
|
54
|
+
/** The width of menu bar buttons, such as the child window close button that is used in the multiple document interface, in pixels. */
|
|
55
|
+
SM_CXMENUSIZE: 54;
|
|
56
|
+
/** The minimum width of a window, in pixels. */
|
|
57
|
+
SM_CXMIN: 28;
|
|
58
|
+
/** The width of a minimized window, in pixels. */
|
|
59
|
+
SM_CXMINIMIZED: 57;
|
|
60
|
+
/** The width of a grid cell for a minimized window, in pixels. Each minimized window fits into a rectangle this size when arranged. This value is always greater than or equal to SM_CXMINIMIZED. */
|
|
61
|
+
SM_CXMINSPACING: 47;
|
|
62
|
+
/** The minimum tracking width of a window, in pixels. The user cannot drag the window frame to a size smaller than these dimensions. A window can override this value by processing the WM_GETMINMAXINFO message. */
|
|
63
|
+
SM_CXMINTRACK: 34;
|
|
64
|
+
/** The amount of border padding for captioned windows, in pixels.
|
|
65
|
+
Windows XP/2000: This value is not supported. */
|
|
66
|
+
SM_CXPADDEDBORDER: 92;
|
|
67
|
+
/** The width of the screen of the primary display monitor, in pixels. This is the same value obtained by calling GetDeviceCaps as follows: GetDeviceCaps( hdcPrimaryMonitor, HORZRES). */
|
|
68
|
+
SM_CXSCREEN: 0;
|
|
69
|
+
/** The width of a button in a window caption or title bar, in pixels. */
|
|
70
|
+
SM_CXSIZE: 30;
|
|
71
|
+
/** The thickness of the sizing border around the perimeter of a window that can be resized, in pixels. SM_CXSIZEFRAME is the width of the horizontal border, and SM_CYSIZEFRAME is the height of the vertical border.
|
|
72
|
+
This value is the same as SM_CXFRAME. */
|
|
73
|
+
SM_CXSIZEFRAME: 32;
|
|
74
|
+
/** The system small width of an icon, in pixels. Small icons typically appear in window captions and in small icon view. See Icon Sizes for more info. */
|
|
75
|
+
SM_CXSMICON: 49;
|
|
76
|
+
/** The width of small caption buttons, in pixels. */
|
|
77
|
+
SM_CXSMSIZE: 52;
|
|
78
|
+
/** The width of the virtual screen, in pixels. The virtual screen is the bounding rectangle of all display monitors. The SM_XVIRTUALSCREEN metric is the coordinates for the left side of the virtual screen. */
|
|
79
|
+
SM_CXVIRTUALSCREEN: 78;
|
|
80
|
+
/** The width of a vertical scroll bar, in pixels. */
|
|
81
|
+
SM_CXVSCROLL: 2;
|
|
82
|
+
/** The height of a window border, in pixels. This is equivalent to the SM_CYEDGE value for windows with the 3-D look. */
|
|
83
|
+
SM_CYBORDER: 6;
|
|
84
|
+
/** The height of a caption area, in pixels. */
|
|
85
|
+
SM_CYCAPTION: 4;
|
|
86
|
+
/** The nominal height of a cursor, in pixels. */
|
|
87
|
+
SM_CYCURSOR: 14;
|
|
88
|
+
/** This value is the same as SM_CYFIXEDFRAME. */
|
|
89
|
+
SM_CYDLGFRAME: 8;
|
|
90
|
+
/** The height of the rectangle around the location of a first click in a double-click sequence, in pixels. The second click must occur within the rectangle defined by SM_CXDOUBLECLK and SM_CYDOUBLECLK for the system to consider the two clicks a double-click. The two clicks must also occur within a specified time.
|
|
91
|
+
To set the height of the double-click rectangle, call SystemParametersInfo with SPI_SETDOUBLECLKHEIGHT. */
|
|
92
|
+
SM_CYDOUBLECLK: 37;
|
|
93
|
+
/** The number of pixels above and below a mouse-down point that the mouse pointer can move before a drag operation begins. This allows the user to click and release the mouse button easily without unintentionally starting a drag operation. If this value is negative, it is subtracted from above the mouse-down point and added below it. */
|
|
94
|
+
SM_CYDRAG: 69;
|
|
95
|
+
/** The height of a 3-D border, in pixels. This is the 3-D counterpart of SM_CYBORDER. */
|
|
96
|
+
SM_CYEDGE: 46;
|
|
97
|
+
/** The thickness of the frame around the perimeter of a window that has a caption but is not sizable, in pixels. SM_CXFIXEDFRAME is the height of the horizontal border, and SM_CYFIXEDFRAME is the width of the vertical border.
|
|
98
|
+
This value is the same as SM_CYDLGFRAME. */
|
|
99
|
+
SM_CYFIXEDFRAME: 8;
|
|
100
|
+
/** The height of the top and bottom edges of the focus rectangle drawn by DrawFocusRect. This value is in pixels.
|
|
101
|
+
Windows 2000: This value is not supported. */
|
|
102
|
+
SM_CYFOCUSBORDER: 84;
|
|
103
|
+
/** This value is the same as SM_CYSIZEFRAME. */
|
|
104
|
+
SM_CYFRAME: 33;
|
|
105
|
+
/** The height of the client area for a full-screen window on the primary display monitor, in pixels. To get the coordinates of the portion of the screen not obscured by the system taskbar or by application desktop toolbars, call the SystemParametersInfo function with the SPI_GETWORKAREA value. */
|
|
106
|
+
SM_CYFULLSCREEN: 17;
|
|
107
|
+
/** The height of a horizontal scroll bar, in pixels. */
|
|
108
|
+
SM_CYHSCROLL: 3;
|
|
109
|
+
/** The system large height of an icon, in pixels. The LoadIcon function can load only icons with the dimensions that SM_CXICON and SM_CYICON specifies. See Icon Sizes for more info. */
|
|
110
|
+
SM_CYICON: 12;
|
|
111
|
+
/** The height of a grid cell for items in large icon view, in pixels. Each item fits into a rectangle of size SM_CXICONSPACING by SM_CYICONSPACING when arranged. This value is always greater than or equal to SM_CYICON. */
|
|
112
|
+
SM_CYICONSPACING: 39;
|
|
113
|
+
/** For double byte character set versions of the system, this is the height of the Kanji window at the bottom of the screen, in pixels. */
|
|
114
|
+
SM_CYKANJIWINDOW: 18;
|
|
115
|
+
/** The default height, in pixels, of a maximized top-level window on the primary display monitor. */
|
|
116
|
+
SM_CYMAXIMIZED: 62;
|
|
117
|
+
/** The default maximum height of a window that has a caption and sizing borders, in pixels. This metric refers to the entire desktop. The user cannot drag the window frame to a size larger than these dimensions. A window can override this value by processing the WM_GETMINMAXINFO message. */
|
|
118
|
+
SM_CYMAXTRACK: 60;
|
|
119
|
+
/** The height of a single-line menu bar, in pixels. */
|
|
120
|
+
SM_CYMENU: 15;
|
|
121
|
+
/** The height of the default menu check-mark bitmap, in pixels. */
|
|
122
|
+
SM_CYMENUCHECK: 72;
|
|
123
|
+
/** The height of menu bar buttons, such as the child window close button that is used in the multiple document interface, in pixels. */
|
|
124
|
+
SM_CYMENUSIZE: 55;
|
|
125
|
+
/** The minimum height of a window, in pixels. */
|
|
126
|
+
SM_CYMIN: 29;
|
|
127
|
+
/** The height of a minimized window, in pixels. */
|
|
128
|
+
SM_CYMINIMIZED: 58;
|
|
129
|
+
/** The height of a grid cell for a minimized window, in pixels. Each minimized window fits into a rectangle this size when arranged. This value is always greater than or equal to SM_CYMINIMIZED. */
|
|
130
|
+
SM_CYMINSPACING: 48;
|
|
131
|
+
/** The minimum tracking height of a window, in pixels. The user cannot drag the window frame to a size smaller than these dimensions. A window can override this value by processing the WM_GETMINMAXINFO message. */
|
|
132
|
+
SM_CYMINTRACK: 35;
|
|
133
|
+
/** The height of the screen of the primary display monitor, in pixels. This is the same value obtained by calling GetDeviceCaps as follows: GetDeviceCaps( hdcPrimaryMonitor, VERTRES). */
|
|
134
|
+
SM_CYSCREEN: 1;
|
|
135
|
+
/** The height of a button in a window caption or title bar, in pixels. */
|
|
136
|
+
SM_CYSIZE: 31;
|
|
137
|
+
/** The thickness of the sizing border around the perimeter of a window that can be resized, in pixels. SM_CXSIZEFRAME is the width of the horizontal border, and SM_CYSIZEFRAME is the height of the vertical border.
|
|
138
|
+
This value is the same as SM_CYFRAME. */
|
|
139
|
+
SM_CYSIZEFRAME: 33;
|
|
140
|
+
/** The height of a small caption, in pixels. */
|
|
141
|
+
SM_CYSMCAPTION: 51;
|
|
142
|
+
/** The system small height of an icon, in pixels. Small icons typically appear in window captions and in small icon view. See Icon Sizes for more info. */
|
|
143
|
+
SM_CYSMICON: 50;
|
|
144
|
+
/** The height of small caption buttons, in pixels. */
|
|
145
|
+
SM_CYSMSIZE: 53;
|
|
146
|
+
/** The height of the virtual screen, in pixels. The virtual screen is the bounding rectangle of all display monitors. The SM_YVIRTUALSCREEN metric is the coordinates for the top of the virtual screen. */
|
|
147
|
+
SM_CYVIRTUALSCREEN: 79;
|
|
148
|
+
/** The height of the arrow bitmap on a vertical scroll bar, in pixels. */
|
|
149
|
+
SM_CYVSCROLL: 20;
|
|
150
|
+
/** The height of the thumb box in a vertical scroll bar, in pixels. */
|
|
151
|
+
SM_CYVTHUMB: 9;
|
|
152
|
+
/** Nonzero if User32.dll supports DBCS; otherwise, 0. */
|
|
153
|
+
SM_DBCSENABLED: 42;
|
|
154
|
+
/** Nonzero if the debug version of User.exe is installed; otherwise, 0. */
|
|
155
|
+
SM_DEBUG: 22;
|
|
156
|
+
/** Nonzero if the current operating system is Windows 7 or Windows Server 2008 R2 and the Tablet PC Input service is started; otherwise, 0. The return value is a bitmask that specifies the type of digitizer input supported by the device. For more information, see Remarks.
|
|
157
|
+
Windows Server 2008, Windows Vista and Windows XP/2000: This value is not supported. */
|
|
158
|
+
SM_DIGITIZER: 94;
|
|
159
|
+
/** Nonzero if Input Method Manager/Input Method Editor features are enabled; otherwise, 0.
|
|
160
|
+
SM_IMMENABLED indicates whether the system is ready to use a Unicode-based IME on a Unicode application. To ensure that a language-dependent IME works, check SM_DBCSENABLED and the system ANSI code page. Otherwise the ANSI-to-Unicode conversion may not be performed correctly, or some components like fonts or registry settings may not be present. */
|
|
161
|
+
SM_IMMENABLED: 82;
|
|
162
|
+
/** Nonzero if there are digitizers in the system; otherwise, 0.
|
|
163
|
+
SM_MAXIMUMTOUCHES returns the aggregate maximum of the maximum number of contacts supported by every digitizer in the system. If the system has only single-touch digitizers, the return value is 1. If the system has multi-touch digitizers, the return value is the number of simultaneous contacts the hardware can provide.
|
|
164
|
+
Windows Server 2008, Windows Vista and Windows XP/2000: This value is not supported. */
|
|
165
|
+
SM_MAXIMUMTOUCHES: 95;
|
|
166
|
+
/** Nonzero if the current operating system is the Windows XP, Media Center Edition, 0 if not. */
|
|
167
|
+
SM_MEDIACENTER: 87;
|
|
168
|
+
/** Nonzero if drop-down menus are right-aligned with the corresponding menu-bar item; 0 if the menus are left-aligned. */
|
|
169
|
+
SM_MENUDROPALIGNMENT: 40;
|
|
170
|
+
/** Nonzero if the system is enabled for Hebrew and Arabic languages, 0 if not. */
|
|
171
|
+
SM_MIDEASTENABLED: 74;
|
|
172
|
+
/** Nonzero if a mouse is installed; otherwise, 0. This value is rarely zero, because of support for virtual mice and because some systems detect the presence of the port instead of the presence of a mouse. */
|
|
173
|
+
SM_MOUSEPRESENT: 19;
|
|
174
|
+
/** Nonzero if a mouse with a horizontal scroll wheel is installed; otherwise 0. */
|
|
175
|
+
SM_MOUSEHORIZONTALWHEELPRESENT: 91;
|
|
176
|
+
/** Nonzero if a mouse with a vertical scroll wheel is installed; otherwise 0. */
|
|
177
|
+
SM_MOUSEWHEELPRESENT: 75;
|
|
178
|
+
/** The least significant bit is set if a network is present; otherwise, it is cleared. The other bits are reserved for future use. */
|
|
179
|
+
SM_NETWORK: 63;
|
|
180
|
+
/** Nonzero if the Microsoft Windows for Pen computing extensions are installed; zero otherwise. */
|
|
181
|
+
SM_PENWINDOWS: 41;
|
|
182
|
+
/** This system metric is used in a Terminal Services environment to determine if the current Terminal Server session is being remotely controlled. Its value is nonzero if the current session is remotely controlled; otherwise, 0.
|
|
183
|
+
You can use terminal services management tools such as Terminal Services Manager (tsadmin.msc) and shadow.exe to control a remote session. When a session is being remotely controlled, another user can view the contents of that session and potentially interact with it. */
|
|
184
|
+
SM_REMOTECONTROL: 8193;
|
|
185
|
+
/** This system metric is used in a Terminal Services environment. If the calling process is associated with a Terminal Services client session, the return value is nonzero. If the calling process is associated with the Terminal Services console session, the return value is 0. Windows Server 2003 and Windows XP: The console session is not necessarily the physical console. For more information, see WTSGetActiveConsoleSessionId. */
|
|
186
|
+
SM_REMOTESESSION: 4096;
|
|
187
|
+
/** Nonzero if all the display monitors have the same color format, otherwise, 0. Two displays can have the same bit depth, but different color formats. For example, the red, green, and blue pixels can be encoded with different numbers of bits, or those bits can be located in different places in a pixel color value. */
|
|
188
|
+
SM_SAMEDISPLAYFORMAT: 81;
|
|
189
|
+
/** This system metric should be ignored; it always returns 0. */
|
|
190
|
+
SM_SECURE: 44;
|
|
191
|
+
/** The build number if the system is Windows Server 2003 R2; otherwise, 0. */
|
|
192
|
+
SM_SERVERR2: 89;
|
|
193
|
+
/** Nonzero if the user requires an application to present information visually in situations where it would otherwise present the information only in audible form; otherwise, 0. */
|
|
194
|
+
SM_SHOWSOUNDS: 70;
|
|
195
|
+
/** Nonzero if the current session is shutting down; otherwise, 0.
|
|
196
|
+
Windows 2000: This value is not supported. */
|
|
197
|
+
SM_SHUTTINGDOWN: 8192;
|
|
198
|
+
/** Nonzero if the computer has a low-end (slow) processor; otherwise, 0. */
|
|
199
|
+
SM_SLOWMACHINE: 73;
|
|
200
|
+
/** Nonzero if the current operating system is Windows 7 Starter Edition, Windows Vista Starter, or Windows XP Starter Edition; otherwise, 0. */
|
|
201
|
+
SM_STARTER: 88;
|
|
202
|
+
/** Nonzero if the meanings of the left and right mouse buttons are swapped; otherwise, 0. */
|
|
203
|
+
SM_SWAPBUTTON: 23;
|
|
204
|
+
/** Reflects the state of the docking mode, 0 for Undocked Mode and non-zero otherwise. When this system metric changes, the system sends a broadcast message via WM_SETTINGCHANGE with "SystemDockMode" in the LPARAM. */
|
|
205
|
+
SM_SYSTEMDOCKED: 8196;
|
|
206
|
+
/** Nonzero if the current operating system is the Windows XP Tablet PC edition or if the current operating system is Windows Vista or Windows 7 and the Tablet PC Input service is started; otherwise, 0. The SM_DIGITIZER setting indicates the type of digitizer input supported by a device running Windows 7 or Windows Server 2008 R2. For more information, see Remarks. */
|
|
207
|
+
SM_TABLETPC: 86;
|
|
208
|
+
/** The coordinates for the left side of the virtual screen. The virtual screen is the bounding rectangle of all display monitors. The SM_CXVIRTUALSCREEN metric is the width of the virtual screen. */
|
|
209
|
+
SM_XVIRTUALSCREEN: 76;
|
|
210
|
+
/** The coordinates for the top of the virtual screen. The virtual screen is the bounding rectangle of all display monitors. The SM_CYVIRTUALSCREEN metric is the height of the virtual screen. */
|
|
211
|
+
SM_YVIRTUALSCREEN: 77;
|
|
212
|
+
}>;
|
|
213
|
+
export type SystemMetric = Enum<typeof SystemMetric>;
|
|
214
|
+
//# sourceMappingURL=systemmetric.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"systemmetric.d.ts","sourceRoot":"","sources":["../../../../lib/winapi/types/systemmetric.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnC,eAAO,MAAM,YAAY;IACzB,qIAAqI;;IAErI;;;;0GAIsG;;IAEtG,gHAAgH;;IAEhH,0EAA0E;;IAE1E,wUAAwU;;IAExU,wHAAwH;;IAExH,gDAAgD;;IAEhD,iDAAiD;;IAEjD;6GACyG;;IAEzG,qWAAqW;;IAErW,+FAA+F;;IAE/F;gDAC4C;;IAE5C;mDAC+C;;IAE/C,gDAAgD;;IAEhD,iTAAiT;;IAEjT,2EAA2E;;IAE3E,wEAAwE;;IAExE,wLAAwL;;IAExL,6NAA6N;;IAE7N,oGAAoG;;IAEpG,mSAAmS;;IAEnS,kEAAkE;;IAElE,uIAAuI;;IAEvI,gDAAgD;;IAEhD,kDAAkD;;IAElD,qMAAq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