ms-types 0.7.3 → 0.7.5

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ms-types",
3
- "version": "0.7.3",
3
+ "version": "0.7.5",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
package/types/hid.d.ts CHANGED
@@ -81,6 +81,16 @@ declare namespace hid {
81
81
  * @returns 设备 MAC 字符串
82
82
  */
83
83
  function getDeviceMac(): string;
84
+ /**
85
+ * 获取设备型号
86
+ * @returns 设备型号
87
+ */
88
+ function getDeviceModel(): string;
89
+ /**
90
+ * 获取设备版本
91
+ * @returns 设备版本
92
+ */
93
+ function getDeviceVersion(): string;
84
94
 
85
95
  /**
86
96
  * 复位坐标到左上角 只有相对鼠标需要
@@ -122,6 +132,16 @@ declare namespace hid {
122
132
  duration?: number,
123
133
  jitter?: boolean,
124
134
  ): boolean;
135
+ /**
136
+ * 按下鼠标左键
137
+ * @returns 操作是否成功
138
+ */
139
+ function mouseDown(): boolean;
140
+ /**
141
+ * 抬起鼠标左键
142
+ * @returns 操作是否成功
143
+ */
144
+ function mouseUp(): boolean;
125
145
  /**
126
146
  * 随机点击
127
147
  * @param x1 区域左上角x坐标
@@ -83,6 +83,16 @@ declare namespace $HID {
83
83
  * @returns 设备 MAC 字符串
84
84
  */
85
85
  function 获取设备Mac(): 字符串;
86
+ /**
87
+ * 获取设备型号
88
+ * @returns 设备型号
89
+ */
90
+ function 获取设备型号(): 字符串;
91
+ /**
92
+ * 获取设备版本
93
+ * @returns 设备版本
94
+ */
95
+ function 获取设备版本(): 字符串;
86
96
 
87
97
  /**
88
98
  * 复位坐标到左上角 只有相对鼠标需要
@@ -124,6 +134,16 @@ declare namespace $HID {
124
134
  按下持续时间?: 数字,
125
135
  抖动?: 布尔值,
126
136
  ): 布尔值;
137
+ /**
138
+ * 按下鼠标左键
139
+ * @returns 操作是否成功
140
+ */
141
+ function 鼠标按下(): 布尔值;
142
+ /**
143
+ * 抬起鼠标左键
144
+ * @returns 操作是否成功
145
+ */
146
+ function 鼠标抬起(): 布尔值;
127
147
 
128
148
  /**
129
149
  * 随机点击