ms-types 0.0.80 → 0.0.82
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/package.json
CHANGED
package/types/hid.d.ts
CHANGED
|
@@ -45,6 +45,11 @@ declare namespace hid {
|
|
|
45
45
|
*/
|
|
46
46
|
function setJitterValue(value: number): void;
|
|
47
47
|
|
|
48
|
+
/**
|
|
49
|
+
* 重置坐标
|
|
50
|
+
*/
|
|
51
|
+
function resetPosition(): void;
|
|
52
|
+
|
|
48
53
|
/**
|
|
49
54
|
* 点击指定坐标
|
|
50
55
|
* @param x 点击坐标的X轴
|
|
@@ -88,5 +93,5 @@ declare namespace hid {
|
|
|
88
93
|
* @param key 要发送的按键
|
|
89
94
|
* @returns 操作是否成功
|
|
90
95
|
*/
|
|
91
|
-
function sendKey(key: Array<number>): boolean;
|
|
96
|
+
function sendKey(key: Array<number | string>): boolean;
|
|
92
97
|
}
|
|
@@ -47,6 +47,11 @@ declare namespace $HID {
|
|
|
47
47
|
*/
|
|
48
48
|
function 设置抖动值(抖动值: 数字): 无返回值;
|
|
49
49
|
|
|
50
|
+
/**
|
|
51
|
+
* 重置坐标
|
|
52
|
+
*/
|
|
53
|
+
function 重置坐标(): 无返回值;
|
|
54
|
+
|
|
50
55
|
/**
|
|
51
56
|
* 点击指定坐标
|
|
52
57
|
* @param 坐标x 点击坐标的X轴
|
|
@@ -76,4 +81,24 @@ declare namespace $HID {
|
|
|
76
81
|
目标x坐标: 数字,
|
|
77
82
|
目标y坐标: 数字
|
|
78
83
|
): 布尔值;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* 回到主页
|
|
87
|
+
* @returns 操作是否成功
|
|
88
|
+
*/
|
|
89
|
+
function 回到主页(): 布尔值;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* 输入简单键盘数据 只能输入键盘可以输入的键,不支持中文
|
|
93
|
+
* @param 要输入的键盘数据
|
|
94
|
+
* @returns 操作是否成功
|
|
95
|
+
*/
|
|
96
|
+
function 输入简单键盘数据(要输入的键盘数据: 字符串): 布尔值;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* 发送组合按键
|
|
100
|
+
* @param 按键数组 按键数组
|
|
101
|
+
* @returns 操作是否成功
|
|
102
|
+
*/
|
|
103
|
+
function 发送组合按键(按键数组: 数组<任意类型>): 布尔值;
|
|
79
104
|
}
|