tdrpa.tdworker 1.2.13.63__py39-none-win_amd64.whl → 1.2.13.65__py39-none-win_amd64.whl

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.
tdrpa/tdworker/_other.pyi CHANGED
@@ -45,7 +45,7 @@ class Clipboard:
45
45
  """
46
46
  设置剪贴板文本
47
47
 
48
- Clipboard.SetText(\'\')
48
+ Clipboard.SetText('')
49
49
 
50
50
  :param content:[必选参数]新的剪贴板文本内容,默认""
51
51
  :return:成功返回True,失败返回False
@@ -57,7 +57,7 @@ class PrintToScreen:
57
57
  """
58
58
  绘制屏幕中央正上方显示的红字
59
59
 
60
- PrintToScreen.DrawText(\'开始工作\', showSec=0)
60
+ PrintToScreen.DrawText('开始工作', showSec=0)
61
61
 
62
62
  :param msg:[可选参数]文字内容,默认为""
63
63
  :param showSec:[可选参数]显示秒数。0:一直显示到程序结束,大于0:显示的时间,单位是秒
@@ -75,85 +75,91 @@ class PrintToScreen:
75
75
 
76
76
  class Dialog:
77
77
  @staticmethod
78
- def Notify(title: str, message: str) -> None:
78
+ def MsgBox(title: str, prompt: str) -> None:
79
79
  """
80
- 显示通知弹框
80
+ 消息框
81
81
 
82
- Dialog.Notify('提示', '这是一个消息框')
82
+ Dialog.MsgBox('提示', '这是一个消息框')
83
83
 
84
84
  :param title:[必选参数]弹框标题
85
- :param message:[必选参数]弹框内容
85
+ :param prompt:[必选参数]弹框提示内容
86
86
  :return: 无
87
87
  """
88
+
88
89
  @staticmethod
89
90
  def InputBox(title: str, prompt: str, default: str = '') -> str | None:
90
91
  """
91
- 弹出输入对话框,返回用户在对话框中输入的内容
92
+ 输入对话框
92
93
 
93
- Dialog.InputBox('输入', '请输入内容:', '你好')
94
+ Dialog.InputBox('输入对话框标题', '请输入内容:', default='请在这输入文本')
94
95
 
95
96
  :param title:[必选参数]弹框标题
96
- :param prompt:[必选参数]弹框内容
97
- :param default:[可选参数]输入框默认文本
98
- :return: 点确定按钮,返回用户输入的内容,点取消或关闭返回None
97
+ :param prompt:[必选参数]弹框提示内容
98
+ :param default:[可选参数]输入框默认文本,默认''
99
+ :return: 点确定按钮,返回用户输入的内容(字符串),点取消或关闭返回None
99
100
  """
101
+
100
102
  @staticmethod
101
103
  def PasswordBox(title: str, prompt: str) -> str | None:
102
104
  """
103
- 弹出密码输入对话框,返回用户在对话框中输入的内容
105
+ 密码输入对话框
104
106
 
105
- Dialog.PasswordBox('密码输入', '请输入密码:')
107
+ Dialog.PasswordBox('密码输入对话框标题', '请输入密码:')
106
108
 
107
109
  :param title:[必选参数]弹框标题
108
- :param prompt:[必选参数]弹框内容
109
- :return: 点确定按钮,返回用户输入的密码,点取消或关闭返回None
110
+ :param prompt:[必选参数]弹框提示内容
111
+ :return: 点确定按钮,返回用户输入的密码(字符串),点取消或关闭返回None
110
112
  """
113
+
111
114
  @staticmethod
112
- def IntBox(title: str, prompt: str, default: str = '', minvalue: int = None, maxvalue: int = None, error_message: str = '请输入一个有效的整数!') -> int | None:
113
- """
114
- 弹出整数输入对话框,返回用户在对话框中输入的整数
115
+ def NumberBox(title: str, prompt: str, default: str = '', minvalue: int = None, maxvalue: int = None, error_message: str = '请输入一个有效的整数!') -> int | None:
116
+ '''
117
+ 整数输入对话框
115
118
 
116
- Dialog.IntBox('输入', '请输入整数:', '100')
119
+ Dialog.NumberBox(\'整数对话框标题\', \'请输入整数:\', default=\'100\', minvalue=10, maxvalue=200, error_message="请输入一个有效的整数!")
117
120
 
118
121
  :param title:[必选参数]弹框标题
119
- :param prompt:[必选参数]弹框内容
120
- :param default:[可选参数]输入框默认文本
122
+ :param prompt:[必选参数]弹框提示内容
123
+ :param default:[可选参数]输入框默认文本,默认\'\'
121
124
  :param minvalue:[可选参数]最小值,默认None
122
125
  :param maxvalue:[可选参数]最大值,默认None
123
- :param error_message:[可选参数]输入非整数时提示的消息
124
- :return: 点确定按钮,返回用户输入的整数,点取消或关闭返回None
125
- """
126
+ :param error_message:[可选参数]输入非整数时的弹框提示语,默认"请输入一个有效的整数!"
127
+ :return: 点确定按钮,返回用户输入的整数(int类型),点取消或关闭返回None
128
+ '''
129
+
126
130
  @staticmethod
127
- def YnBox(title: str, message: str) -> bool:
131
+ def YnBox(title: str, prompt: str) -> bool:
128
132
  """
129
- 弹出确认对话框,返回用户的确认结果
133
+ 确认对话框
130
134
 
131
- Dialog.YnBox('确认', '是否确认?')
135
+ Dialog.YnBox('确认对话框标题', '是否确认?')
132
136
 
133
137
  :param title:[必选参数]弹框标题
134
- :param message:[必选参数]弹框内容
138
+ :param prompt:[必选参数]弹框提示内容
135
139
  :return: 点是返回True,点否或关闭返回False
136
140
  """
141
+
137
142
  @staticmethod
138
143
  def MultenterBox(title: str, prompts: list) -> dict:
139
144
  """
140
- 弹出多行输入对话框,返回用户在对话框中输入的内容
145
+ 多行输入对话框
141
146
 
142
- Dialog.MultenterBox('输入', ['请输入姓名:', '请输入年龄:'])
147
+ Dialog.MultenterBox('多行输入对话框标题', ['请输入姓名:', '请输入年龄:'])
143
148
 
144
149
  :param title:[必选参数]弹框标题
145
- :param prompts:[必选参数]弹框内容,例如['请输入姓名:', '请输入年龄:']
150
+ :param prompts:[必选参数]弹框多行的字段内容,例如['请输入姓名:', '请输入年龄:']
146
151
  :return: 点确定按钮,返回用户输入的内容,格式为字典,键为字段内容,值为用户输入的内容,关闭返回{}
147
152
  """
153
+
148
154
  @staticmethod
149
155
  def MultchoiceBox(title: str, prompt: str, choices: list) -> list:
150
156
  """
151
- 弹出多选框,返回用户选择的内容
157
+ 多选框
152
158
 
153
159
  Dialog.MultchoiceBox('选择', '请选择:', ['选项1', '选项2'])
154
160
 
155
161
  :param title:[必选参数]弹框标题
156
- :param prompt:[必选参数]弹框内容
162
+ :param prompt:[必选参数]弹框提示内容
157
163
  :param choices:[必选参数]选项内容,例如['选项1', '选项2']
158
164
  :return: 点确定按钮,返回用户选择的内容,格式为列表,关闭返回[]
159
165
  """
@@ -164,7 +170,7 @@ class INI:
164
170
  """
165
171
  读键值
166
172
 
167
- value = INI.Read(\'D:\\conf.ini\',\'section1\', \'key1\', defaultValue=\'\', encoding=\'GBK\')
173
+ value = INI.Read('D:\\conf.ini','section1', 'key1', defaultValue='', encoding='GBK')
168
174
 
169
175
  :param iniPath:[必选参数]INI 配置文件所在路径
170
176
  :param sectionName:[必选参数]要访问 INI 配置文件的小节名字
@@ -178,7 +184,7 @@ class INI:
178
184
  """
179
185
  写键值
180
186
 
181
- INI.Write(\'D:\\conf.ini\',\'section1\', \'key1\', \'value1\', encoding=\'GBK\')
187
+ INI.Write('D:\\conf.ini','section1', 'key1', 'value1', encoding='GBK')
182
188
 
183
189
  :param iniPath:[必选参数]INI 配置文件所在路径
184
190
  :param sectionName:[必选参数]要访问 INI 配置文件的小节名字
@@ -192,7 +198,7 @@ class INI:
192
198
  """
193
199
  枚举小节
194
200
 
195
- sections = INI.EnumSection(\'D:\\conf.ini\', encoding=\'GBK\')
201
+ sections = INI.EnumSection('D:\\conf.ini', encoding='GBK')
196
202
 
197
203
  :param iniPath:[必选参数]INI 配置文件所在路径
198
204
  :param encoding:[可选参数]文件编码,常用"GBK", "UTF8"等。默认 GBK
@@ -203,7 +209,7 @@ class INI:
203
209
  """
204
210
  枚举键
205
211
 
206
- keys = INI.EnumKey(\'D:\\conf.ini\', \'section1\', encoding=\'GBK\')
212
+ keys = INI.EnumKey('D:\\conf.ini', 'section1', encoding='GBK')
207
213
 
208
214
  :param iniPath:[必选参数]INI 配置文件所在路径
209
215
  :param sectionName:[必选参数]要访问 INI 配置文件的小节名字
@@ -215,7 +221,7 @@ class INI:
215
221
  """
216
222
  删除小节
217
223
 
218
- INI.DeleteSection(\'D:\\conf.ini\',\'section1\', encoding=\'GBK\')
224
+ INI.DeleteSection('D:\\conf.ini','section1', encoding='GBK')
219
225
 
220
226
  :param iniPath:[必选参数]INI 配置文件所在路径
221
227
  :param sectionName:[必选参数]要访问 INI 配置文件的小节名字
@@ -227,7 +233,7 @@ class INI:
227
233
  """
228
234
  删除键
229
235
 
230
- INI.DeleteKey(\'D:\\conf.ini\',\'section1\', \'key1\', encoding=\'GBK\')
236
+ INI.DeleteKey('D:\\conf.ini','section1', 'key1', encoding='GBK')
231
237
 
232
238
  :param iniPath:[必选参数]INI 配置文件所在路径
233
239
  :param sectionName:[必选参数]要访问 INI 配置文件的小节名字
@@ -276,7 +282,7 @@ class App:
276
282
  """
277
283
  等待应用启动或关闭
278
284
 
279
- App.WaitProcess(\'chrome.exe\', waitType=\'open\', delayTime=30000)
285
+ App.WaitProcess('chrome.exe', waitType='open', delayTime=30000)
280
286
 
281
287
  :param processName:[必选参数]进程名称,忽略大小写字母。如:"chrome.exe"
282
288
  :param waitType:[可选参数]期望应用状态。open:等待应用打开 close:等待应用关闭
@@ -290,7 +296,7 @@ class Image:
290
296
  """
291
297
  判断图像是否存在
292
298
 
293
- Image.Exists(\'d:\\test.jpg\', target, anchorsElement=None, rect=None, accuracy=0.9, searchDelay=10000, continueOnError=False, delayAfter=0, delayBefore=100, setForeground=True, matchType=\'GrayMatch\', backgroundPic=False)
299
+ Image.Exists('d:\\test.jpg', target, anchorsElement=None, rect=None, accuracy=0.9, searchDelay=10000, continueOnError=False, delayAfter=0, delayBefore=100, setForeground=True, matchType='GrayMatch', backgroundPic=False)
294
300
 
295
301
  :param imagePath:[必选参数]要查找的图片路径
296
302
  :param target:[必选参数]tdRPA拾取器获取的目标元素特征字符串或uia目标元素对象
@@ -302,7 +308,7 @@ class Image:
302
308
  :param delayAfter:[可选参数]执行后延时(毫秒)。默认0
303
309
  :param delayBefore:[可选参数]执行前延时(毫秒)。默认100
304
310
  :param setForeground:[可选参数]激活窗口。默认True
305
- :param matchType:[可选参数]指定查找图像的匹配方式,\'GrayMatch\':“灰度匹配”速度快,但在极端情况下可能会匹配失败,\'ColorMatch\':“彩色匹配”相对“灰度匹配”更精准但匹配速度稍慢。默认\'GrayMatch\'
311
+ :param matchType:[可选参数]指定查找图像的匹配方式,'GrayMatch':“灰度匹配”速度快,但在极端情况下可能会匹配失败,'ColorMatch':“彩色匹配”相对“灰度匹配”更精准但匹配速度稍慢。默认'GrayMatch'
306
312
  :param backgroundPic:[可选参数]是否后台识图片(图片需与查找范围在同一窗口)。True为后台识别图片,False为前台识别图片。默认False。
307
313
  :return:存在返回True,不存在返回False
308
314
  """
@@ -311,7 +317,7 @@ class Image:
311
317
  """
312
318
  查找图像
313
319
 
314
- Image.FindPic(\'d:\\test.jpg\', target, anchorsElement=None, rect=None, accuracy=0.9, searchDelay=10000, continueOnError=False, delayAfter=0, delayBefore=100, setForeground=True, matchType=\'GrayMatch\', backgroundPic=False, iSerialNo=0, returnPosition="center")
320
+ Image.FindPic('d:\\test.jpg', target, anchorsElement=None, rect=None, accuracy=0.9, searchDelay=10000, continueOnError=False, delayAfter=0, delayBefore=100, setForeground=True, matchType='GrayMatch', backgroundPic=False, iSerialNo=0, returnPosition="center")
315
321
 
316
322
  :param imagePath:[必选参数]要查找的图片路径
317
323
  :param target:[必选参数]tdRPA拾取器获取的目标元素特征字符串或uia目标元素对象
@@ -323,19 +329,19 @@ class Image:
323
329
  :param delayAfter:[可选参数]执行后延时(毫秒)。默认0
324
330
  :param delayBefore:[可选参数]执行前延时(毫秒)。默认100
325
331
  :param setForeground:[可选参数]激活窗口。默认True
326
- :param matchType:[可选参数]指定查找图像的匹配方式,\'GrayMatch\':“灰度匹配”速度快,但在极端情况下可能会匹配失败,\'ColorMatch\':“彩色匹配”相对“灰度匹配”更精准但匹配速度稍慢。默认\'GrayMatch\'
332
+ :param matchType:[可选参数]指定查找图像的匹配方式,'GrayMatch':“灰度匹配”速度快,但在极端情况下可能会匹配失败,'ColorMatch':“彩色匹配”相对“灰度匹配”更精准但匹配速度稍慢。默认'GrayMatch'
327
333
  :param backgroundPic:[可选参数]是否后台识图片(图片需与查找范围在同一窗口)。True为后台识别图片,False为前台识别图片。默认False。
328
334
  :param iSerialNo:[可选参数]指定图像匹配到多个目标时的序号,序号为从1开始的正整数,在屏幕上从左到右从上到下依次递增,匹配到最靠近屏幕左上角的目标序号为1,如果是0,返回所有匹配图像的坐标。默认为0
329
- :param returnPosition:[可选参数]\'center\':返回图片中心坐标,\'topLeft\':返回图片左上角坐标,\'topRight\':返回图片右上角坐标,\'bottomLeft\':返回图片左下角坐标,\'bottomRight\':返回图片右下角坐标。默认\'center\'
330
- :return:返回图像的坐标,iSerialNo为0时,返回list,如[{\'x\':100, \'y\':100}, {\'x\':300,\'y\':300}],iSerialNo大于0时,返回dict,如{\'x\':100, \'y\':100},匹配不到时返回None
335
+ :param returnPosition:[可选参数]'center':返回图片中心坐标,'topLeft':返回图片左上角坐标,'topRight':返回图片右上角坐标,'bottomLeft':返回图片左下角坐标,'bottomRight':返回图片右下角坐标。默认'center'
336
+ :return:返回图像的坐标,iSerialNo为0时,返回list,如[{'x':100, 'y':100}, {'x':300,'y':300}],iSerialNo大于0时,返回dict,如{'x':100, 'y':100},匹配不到时返回None
331
337
  """
332
338
  @staticmethod
333
339
  def Click(imagePath: str, target: str | uia.Control, anchorsElement: uia.Control | None = None, rect: dict | None = None, accuracy: float = 0.9, button: str = 'left', clickType: str = 'click', searchDelay: int = 10000, continueOnError: bool = False, delayAfter: int = 100, delayBefore: int = 100, setForeground: bool = True, cursorPosition: str = 'center', cursorOffsetX: int = 0, cursorOffsetY: int = 0, keyModifiers: list = None, simulateType: str = 'simulate', moveSmoothly: bool = False, matchType: str = 'GrayMatch', backgroundPic: bool = False, iSerialNo: int = 1) -> None:
334
340
  """
335
341
  点击图像
336
342
 
337
- Image.Click(\'d:\\test.jpg\', target, anchorsElement=None, rect=None, accuracy=0.9, button=\'left\', clickType=\'click\', searchDelay=10000, continueOnError=False, delayAfter=100, delayBefore=100,
338
- setForeground=True, cursorPosition=\'center\', cursorOffsetX=0, cursorOffsetY=0, keyModifiers=None, simulateType=\'simulate\', moveSmoothly=False, matchType=\'GrayMatch\', backgroundPic=False, iSerialNo=1)
343
+ Image.Click('d:\\test.jpg', target, anchorsElement=None, rect=None, accuracy=0.9, button='left', clickType='click', searchDelay=10000, continueOnError=False, delayAfter=100, delayBefore=100,
344
+ setForeground=True, cursorPosition='center', cursorOffsetX=0, cursorOffsetY=0, keyModifiers=None, simulateType='simulate', moveSmoothly=False, matchType='GrayMatch', backgroundPic=False, iSerialNo=1)
339
345
 
340
346
  :param imagePath:[必选参数]要查找的图片路径
341
347
  :param target:[必选参数]tdRPA拾取器获取的目标元素特征字符串或uia目标元素对象
@@ -355,7 +361,7 @@ class Image:
355
361
  :param keyModifiers:[可选参数]辅助按键["Alt","Ctrl","Shift","Win"]可多选。默认None
356
362
  :param simulateType:[可选参数]操作类型。模拟操作:"simulate" 消息操作:"message"。默认"simulate"
357
363
  :param moveSmoothly:[可选参数]是否平滑移动鼠标。默认False
358
- :param matchType:[可选参数]指定查找图像的匹配方式,\'GrayMatch\':“灰度匹配”速度快,但在极端情况下可能会匹配失败,\'ColorMatch\':“彩色匹配”相对“灰度匹配”更精准但匹配速度稍慢。默认\'GrayMatch\'
364
+ :param matchType:[可选参数]指定查找图像的匹配方式,'GrayMatch':“灰度匹配”速度快,但在极端情况下可能会匹配失败,'ColorMatch':“彩色匹配”相对“灰度匹配”更精准但匹配速度稍慢。默认'GrayMatch'
359
365
  :param backgroundPic:[可选参数]是否后台识图片(图片需与查找范围在同一窗口)。True为后台识别图片,False为前台识别图片。默认False。注意:当simulateType为message时,该字段设置为True才会生效
360
366
  :param iSerialNo:[可选参数]指定图像匹配到多个目标时的序号,序号为从1开始的正整数,在屏幕上从左到右从上到下依次递增,匹配到最靠近屏幕左上角的目标序号为1,如果是0,匹配所有图片(即点击所有匹配到的图片)。默认为1
361
367
  :return:None
@@ -365,8 +371,8 @@ class Image:
365
371
  """
366
372
  鼠标移动到图像上
367
373
 
368
- Image.Hover(\'d:\\test.jpg\', target, anchorsElement=None, rect=None, accuracy=0.9, searchDelay=10000, continueOnError=False, delayAfter=100, delayBefore=100,
369
- setForeground=True, cursorPosition=\'center\', cursorOffsetX=0, cursorOffsetY=0, keyModifiers=None, moveSmoothly=False, matchType=\'GrayMatch\', backgroundPic=False, iSerialNo=1)
374
+ Image.Hover('d:\\test.jpg', target, anchorsElement=None, rect=None, accuracy=0.9, searchDelay=10000, continueOnError=False, delayAfter=100, delayBefore=100,
375
+ setForeground=True, cursorPosition='center', cursorOffsetX=0, cursorOffsetY=0, keyModifiers=None, moveSmoothly=False, matchType='GrayMatch', backgroundPic=False, iSerialNo=1)
370
376
 
371
377
  :param imagePath:[必选参数]要查找的图片路径
372
378
  :param target:[必选参数]tdRPA拾取器获取的目标元素特征字符串或uia目标元素对象
@@ -383,7 +389,7 @@ class Image:
383
389
  :param cursorOffsetY:[可选参数]纵坐标偏移。默认0
384
390
  :param keyModifiers:[可选参数]辅助按键["Alt","Ctrl","Shift","Win"]可多选。默认None
385
391
  :param moveSmoothly:[可选参数]是否平滑移动鼠标。默认False
386
- :param matchType:[可选参数]指定查找图像的匹配方式,\'GrayMatch\':“灰度匹配”速度快,但在极端情况下可能会匹配失败,\'ColorMatch\':“彩色匹配”相对“灰度匹配”更精准但匹配速度稍慢。默认\'GrayMatch\'
392
+ :param matchType:[可选参数]指定查找图像的匹配方式,'GrayMatch':“灰度匹配”速度快,但在极端情况下可能会匹配失败,'ColorMatch':“彩色匹配”相对“灰度匹配”更精准但匹配速度稍慢。默认'GrayMatch'
387
393
  :param backgroundPic:[可选参数]是否后台识图片(图片需与查找范围在同一窗口)。True为后台识别图片,False为前台识别图片。默认False。
388
394
  :param iSerialNo:[可选参数]指定图像匹配到多个目标时的序号,序号为从1开始的正整数,在屏幕上从左到右从上到下依次递增,匹配到最靠近屏幕左上角的目标序号为1,如果是0,匹配所有图片(即鼠标将移动经过所有匹配到的图片)。默认为1
389
395
  :return:None
@@ -393,7 +399,7 @@ class Image:
393
399
  """
394
400
  等待图像显示或消失
395
401
 
396
- Image.Wait(\'d:\\test.jpg\', target, anchorsElement=None, rect=None, accuracy=0.9, waitType="show", searchDelay=10000, continueOnError=False, delayAfter=0, delayBefore=100, setForeground=True, matchType=\'GrayMatch\', backgroundPic=False)
402
+ Image.Wait('d:\\test.jpg', target, anchorsElement=None, rect=None, accuracy=0.9, waitType="show", searchDelay=10000, continueOnError=False, delayAfter=0, delayBefore=100, setForeground=True, matchType='GrayMatch', backgroundPic=False)
397
403
 
398
404
  :param imagePath:[必选参数]要查找的图片路径
399
405
  :param target:[必选参数]tdRPA拾取器获取的目标元素特征字符串或uia目标元素对象
@@ -406,7 +412,7 @@ class Image:
406
412
  :param delayAfter:[可选参数]执行后延时(毫秒)。默认0
407
413
  :param delayBefore:[可选参数]执行前延时(毫秒)。默认100
408
414
  :param setForeground:[可选参数]激活窗口。默认True
409
- :param matchType:[可选参数]指定查找图像的匹配方式,\'GrayMatch\':“灰度匹配”速度快,但在极端情况下可能会匹配失败,\'ColorMatch\':“彩色匹配”相对“灰度匹配”更精准但匹配速度稍慢。默认\'GrayMatch\'
415
+ :param matchType:[可选参数]指定查找图像的匹配方式,'GrayMatch':“灰度匹配”速度快,但在极端情况下可能会匹配失败,'ColorMatch':“彩色匹配”相对“灰度匹配”更精准但匹配速度稍慢。默认'GrayMatch'
410
416
  :param backgroundPic:[可选参数]是否后台识图片(图片需与查找范围在同一窗口)。True为后台识别图片,False为前台识别图片。默认False。
411
417
  :return:None
412
418
  """
@@ -415,7 +421,7 @@ class Image:
415
421
  """
416
422
  目标内指定位置比色
417
423
 
418
- Image.ComColor(\'FF0000\', target, anchorsElement=None, searchDelay=10000, continueOnError=False, delayAfter=0, delayBefore=100, setForeground=True, beginPosition=\'center\', positionOffsetX=0, positionOffsetY=0, backgroundPic=False)
424
+ Image.ComColor('FF0000', target, anchorsElement=None, searchDelay=10000, continueOnError=False, delayAfter=0, delayBefore=100, setForeground=True, beginPosition='center', positionOffsetX=0, positionOffsetY=0, backgroundPic=False)
419
425
 
420
426
  :param color:[必选参数]指定位置是否为此颜色,十六进制颜色,RGB色值,例如:"FF0000",支持偏色,如"FF0000-101010"
421
427
  :param target:[必选参数]tdRPA拾取器获取的目标元素特征字符串或uia目标元素对象
@@ -436,7 +442,7 @@ class Image:
436
442
  """
437
443
  获取目标指定位置的颜色值(16进制RGB字符)
438
444
 
439
- Image.GetColor(target, anchorsElement=None, searchDelay=10000, continueOnError=False, delayAfter=0, delayBefore=100, setForeground=True, beginPosition=\'center\', positionOffsetX=0, positionOffsetY=0, backgroundPic=False)
445
+ Image.GetColor(target, anchorsElement=None, searchDelay=10000, continueOnError=False, delayAfter=0, delayBefore=100, setForeground=True, beginPosition='center', positionOffsetX=0, positionOffsetY=0, backgroundPic=False)
440
446
 
441
447
  :param target:[必选参数]tdRPA拾取器获取的目标元素特征字符串或uia目标元素对象
442
448
  :param anchorsElement:[可选参数]从哪个元素开始找,不传则从桌面顶级元素开始找(有值可提高查找速度)。默认None
@@ -456,7 +462,7 @@ class Image:
456
462
  """
457
463
  查找颜色
458
464
 
459
- Image.FindColor(\'FF0000\', target, anchorsElement=None, rect=None, searchDelay=10000, continueOnError=False, delayAfter=0, delayBefore=100, setForeground=True, backgroundPic=False, searchOrder=\'topLeft\', relativeType=\'screen\')
465
+ Image.FindColor('FF0000', target, anchorsElement=None, rect=None, searchDelay=10000, continueOnError=False, delayAfter=0, delayBefore=100, setForeground=True, backgroundPic=False, searchOrder='topLeft', relativeType='screen')
460
466
 
461
467
  :param colors: [必选参数]需要查找的颜色值字符串,十六进制颜色,支持偏色,支持同时多个颜色,例如 "FF0000" 或 "FF0000-101010" 或 "FF0000-101010|0000FF-101010"
462
468
  :param target:[必选参数]tdRPA拾取器获取的目标元素特征字符串或uia目标元素对象
@@ -467,7 +473,7 @@ class Image:
467
473
  :param delayAfter:[可选参数]执行后延时(毫秒)。默认0
468
474
  :param delayBefore:[可选参数]执行前延时(毫秒)。默认100
469
475
  :param setForeground:[可选参数]激活窗口。默认True
470
- :param backgroundPic:[可选参数]是否后台识图片(颜色需与查找范围在同一窗口)。True为后台识别图片,False为前台识别图片。默认False。
476
+ :param backgroundPic:[可选参数]是否后台识图片(颜色需与查找范围在同一窗口)。True为后台识别图片,False为前台识别图片。默认False。
471
477
  :param searchOrder:[可选参数]搜索顺序,除“all”以外,其余方式返回首个匹配的颜色坐标,可组合使用,返回多个匹配坐标。
472
478
  topLeft:从上到下由左至右,leftTop:从左到右由上至下,topRight:从上到下由右至左,rightTop:从右到左由上至下,
473
479
  bottomLeft:从下到上由左至右,leftBottom:从左到右由下至上,bottomRight:从下到上由右至左,rightBottom:从右到左由下至上,
@@ -480,7 +486,7 @@ class Image:
480
486
  """
481
487
  多点找色
482
488
 
483
- Image.FindMultColor(colorDes, target, anchorsElement=None, rect=None, accuracy=1.0, searchDelay=10000, continueOnError=False, delayAfter=0, delayBefore=100, setForeground=True, backgroundPic=False, relativeType=\'screen\')
489
+ Image.FindMultColor(colorDes, target, anchorsElement=None, rect=None, accuracy=1.0, searchDelay=10000, continueOnError=False, delayAfter=0, delayBefore=100, setForeground=True, backgroundPic=False, relativeType='screen')
484
490
 
485
491
  :param colorDes:[必选参数]多点颜色描述,如"40b7ff-101010,-16|-14|58c0ff-101010,-17|5|4ebbff-101010,17|-3|26adff-101010,17|15|42b7ff-101010", 解释:以40b7ff-101010颜色为锚点,符合向左偏移16像素,向上偏移14像素,且颜色符合58c0ff-101010,向...向...且颜色符合...等等。推荐使用<大漠综合工具>获取颜色描述
486
492
  :param target:[必选参数]tdRPA拾取器获取的目标元素特征字符串或uia目标元素对象
@@ -517,7 +523,7 @@ class Mail:
517
523
  """
518
524
  发送邮件
519
525
 
520
- Mail.SendMail(user=\'\', pwd=\'\', sender=\'\', title=\'\', content=\'\', to=\'\', cc=None, attr=None, server="smtp.qq.com", port=465, ssl=True, timeout=10, continueOnError=False)
526
+ Mail.SendMail(user='', pwd='', sender='', title='', content='', to='', cc=None, attr=None, server="smtp.qq.com", port=465, ssl=True, timeout=10, continueOnError=False)
521
527
 
522
528
  :param user: [必选参数]邮箱登录帐号,比如普通QQ邮箱的登录帐号与邮箱地址相同
523
529
  :param pwd: [必选参数]登录密码
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tdrpa.tdworker
3
- Version: 1.2.13.63
3
+ Version: 1.2.13.65
4
4
  Summary: tdworker for tdrpa developers. supports python3.8+, windows x64
5
5
  Home-page: https://gitee.com/tdworker/command/wikis
6
6
  Author: vx:RPA_CREATOR
@@ -1,4 +1,4 @@
1
- tdrpa/tdworker.cp39-win_amd64.pyd,sha256=teACZy161n3_qDlcRRpTDEZpuJ5VwGOq2C234k6Nqkc,4736000
1
+ tdrpa/tdworker.cp39-win_amd64.pyd,sha256=FcTGvhIeqOoFtctUPEcwlxbY-ZPfus-T1T6m7yZCcNs,4736512
2
2
  tdrpa/_tdxlwings/__init__.py,sha256=mxmqGWQ7xFb6e1GqkKEBfMQtZ8YyO4kAcPOvcJnD_2k,4424
3
3
  tdrpa/_tdxlwings/_win32patch.py,sha256=_IxTfvj663osTXh8b1S-A_N4PthS9gEWFLjpY4V0iUA,3443
4
4
  tdrpa/_tdxlwings/_xlmac.py,sha256=23OusKchbqglFi1s909tbB9fIwoFj6Yny4GiYrsnx5s,68521
@@ -84,10 +84,10 @@ tdrpa/_tdxlwings/rest/api.py,sha256=yfv1VkTpjQOzxLh4aMnZQsh8wTRHg34KkyipKDa_w4g,
84
84
  tdrpa/_tdxlwings/rest/serializers.py,sha256=ztMzL_EgbhAb3rSbfWFE2A9uyOykoZbkSoDHPeKXzGg,2885
85
85
  tdrpa/tdworker/__init__.pyi,sha256=WN0PZBusMdAWbN8tAW5tQrxR-DgOL1US1no2Yjx4D-U,370
86
86
  tdrpa/tdworker/_excel.pyi,sha256=ZTtS3A4bW-vlZEGRZm3FtvG9zRU-n_aWRj1W1xLoBbM,67332
87
- tdrpa/tdworker/_other.pyi,sha256=IzmaAOBJavdLrzNmxwSfeKxJvUTYrhxLczN32wKLoSk,43535
87
+ tdrpa/tdworker/_other.pyi,sha256=yWUAm33p2uXKFcdhMqavbRuj1hPMxXqD9wjT6TnpyFA,43455
88
88
  tdrpa/tdworker/_web.pyi,sha256=8NDI7COti61cdJSnUjJpogZazKw9dfuc3J923k4KX0k,69739
89
89
  tdrpa/tdworker/_win.pyi,sha256=bNF_mMn0Cc8tA1nMAX555EtL0f5HCy08AEHsRM1TAP8,36049
90
- tdrpa_tdworker-1.2.13.63.dist-info/METADATA,sha256=gylL0-GOI_zI3g0t7N9kmpFsfB7YmRmobX9TFU404fQ,1164
91
- tdrpa_tdworker-1.2.13.63.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
92
- tdrpa_tdworker-1.2.13.63.dist-info/top_level.txt,sha256=S9UoqmC_cyGqKbGsBkLQPEeQLbDrWD0SRwbxPpQpyyU,6
93
- tdrpa_tdworker-1.2.13.63.dist-info/RECORD,,
90
+ tdrpa_tdworker-1.2.13.65.dist-info/METADATA,sha256=wEN9o7Muscp4Q_XqsQrcc1UCo1SyabGJWXS744coKhE,1164
91
+ tdrpa_tdworker-1.2.13.65.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
92
+ tdrpa_tdworker-1.2.13.65.dist-info/top_level.txt,sha256=S9UoqmC_cyGqKbGsBkLQPEeQLbDrWD0SRwbxPpQpyyU,6
93
+ tdrpa_tdworker-1.2.13.65.dist-info/RECORD,,