tdrpa.tdworker 1.2.13.63__py312-none-win_amd64.whl → 1.2.13.64__py312-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,11 +75,11 @@ class PrintToScreen:
75
75
 
76
76
  class Dialog:
77
77
  @staticmethod
78
- def Notify(title: str, message: str) -> None:
78
+ def MsgBox(title: str, message: str) -> None:
79
79
  """
80
- 显示通知弹框
80
+ 消息框
81
81
 
82
- Dialog.Notify('提示', '这是一个消息框')
82
+ Dialog.MsgBox('提示', '这是一个消息框')
83
83
 
84
84
  :param title:[必选参数]弹框标题
85
85
  :param message:[必选参数]弹框内容
@@ -88,9 +88,9 @@ class Dialog:
88
88
  @staticmethod
89
89
  def InputBox(title: str, prompt: str, default: str = '') -> str | None:
90
90
  """
91
- 弹出输入对话框,返回用户在对话框中输入的内容
91
+ 输入对话框
92
92
 
93
- Dialog.InputBox('输入', '请输入内容:', '你好')
93
+ Dialog.InputBox('输入', '请输入内容:', default='你好')
94
94
 
95
95
  :param title:[必选参数]弹框标题
96
96
  :param prompt:[必选参数]弹框内容
@@ -100,7 +100,7 @@ class Dialog:
100
100
  @staticmethod
101
101
  def PasswordBox(title: str, prompt: str) -> str | None:
102
102
  """
103
- 弹出密码输入对话框,返回用户在对话框中输入的内容
103
+ 密码输入对话框
104
104
 
105
105
  Dialog.PasswordBox('密码输入', '请输入密码:')
106
106
 
@@ -109,24 +109,24 @@ class Dialog:
109
109
  :return: 点确定按钮,返回用户输入的密码,点取消或关闭返回None
110
110
  """
111
111
  @staticmethod
112
- def IntBox(title: str, prompt: str, default: str = '', minvalue: int = None, maxvalue: int = None, error_message: str = '请输入一个有效的整数!') -> int | None:
112
+ def NumberBox(title: str, prompt: str, default: str = '', minvalue: int = None, maxvalue: int = None, error_message: str = '请输入一个有效的整数!') -> int | None:
113
113
  """
114
- 弹出整数输入对话框,返回用户在对话框中输入的整数
114
+ 整数输入对话框
115
115
 
116
- Dialog.IntBox('输入', '请输入整数:', '100')
116
+ Dialog.NumberBox('输入', '请输入整数:', default='100', minvalue=10, maxvalue=200, error_message="请输入一个有效的整数!")
117
117
 
118
118
  :param title:[必选参数]弹框标题
119
119
  :param prompt:[必选参数]弹框内容
120
120
  :param default:[可选参数]输入框默认文本
121
121
  :param minvalue:[可选参数]最小值,默认None
122
122
  :param maxvalue:[可选参数]最大值,默认None
123
- :param error_message:[可选参数]输入非整数时提示的消息
123
+ :param error_message:[可选参数]输入非整数时提示的消息,默认"请输入一个有效的整数!"
124
124
  :return: 点确定按钮,返回用户输入的整数,点取消或关闭返回None
125
125
  """
126
126
  @staticmethod
127
127
  def YnBox(title: str, message: str) -> bool:
128
128
  """
129
- 弹出确认对话框,返回用户的确认结果
129
+ 确认对话框
130
130
 
131
131
  Dialog.YnBox('确认', '是否确认?')
132
132
 
@@ -137,7 +137,7 @@ class Dialog:
137
137
  @staticmethod
138
138
  def MultenterBox(title: str, prompts: list) -> dict:
139
139
  """
140
- 弹出多行输入对话框,返回用户在对话框中输入的内容
140
+ 多行输入对话框
141
141
 
142
142
  Dialog.MultenterBox('输入', ['请输入姓名:', '请输入年龄:'])
143
143
 
@@ -148,7 +148,7 @@ class Dialog:
148
148
  @staticmethod
149
149
  def MultchoiceBox(title: str, prompt: str, choices: list) -> list:
150
150
  """
151
- 弹出多选框,返回用户选择的内容
151
+ 多选框
152
152
 
153
153
  Dialog.MultchoiceBox('选择', '请选择:', ['选项1', '选项2'])
154
154
 
@@ -164,7 +164,7 @@ class INI:
164
164
  """
165
165
  读键值
166
166
 
167
- value = INI.Read(\'D:\\conf.ini\',\'section1\', \'key1\', defaultValue=\'\', encoding=\'GBK\')
167
+ value = INI.Read('D:\\conf.ini','section1', 'key1', defaultValue='', encoding='GBK')
168
168
 
169
169
  :param iniPath:[必选参数]INI 配置文件所在路径
170
170
  :param sectionName:[必选参数]要访问 INI 配置文件的小节名字
@@ -178,7 +178,7 @@ class INI:
178
178
  """
179
179
  写键值
180
180
 
181
- INI.Write(\'D:\\conf.ini\',\'section1\', \'key1\', \'value1\', encoding=\'GBK\')
181
+ INI.Write('D:\\conf.ini','section1', 'key1', 'value1', encoding='GBK')
182
182
 
183
183
  :param iniPath:[必选参数]INI 配置文件所在路径
184
184
  :param sectionName:[必选参数]要访问 INI 配置文件的小节名字
@@ -192,7 +192,7 @@ class INI:
192
192
  """
193
193
  枚举小节
194
194
 
195
- sections = INI.EnumSection(\'D:\\conf.ini\', encoding=\'GBK\')
195
+ sections = INI.EnumSection('D:\\conf.ini', encoding='GBK')
196
196
 
197
197
  :param iniPath:[必选参数]INI 配置文件所在路径
198
198
  :param encoding:[可选参数]文件编码,常用"GBK", "UTF8"等。默认 GBK
@@ -203,7 +203,7 @@ class INI:
203
203
  """
204
204
  枚举键
205
205
 
206
- keys = INI.EnumKey(\'D:\\conf.ini\', \'section1\', encoding=\'GBK\')
206
+ keys = INI.EnumKey('D:\\conf.ini', 'section1', encoding='GBK')
207
207
 
208
208
  :param iniPath:[必选参数]INI 配置文件所在路径
209
209
  :param sectionName:[必选参数]要访问 INI 配置文件的小节名字
@@ -215,7 +215,7 @@ class INI:
215
215
  """
216
216
  删除小节
217
217
 
218
- INI.DeleteSection(\'D:\\conf.ini\',\'section1\', encoding=\'GBK\')
218
+ INI.DeleteSection('D:\\conf.ini','section1', encoding='GBK')
219
219
 
220
220
  :param iniPath:[必选参数]INI 配置文件所在路径
221
221
  :param sectionName:[必选参数]要访问 INI 配置文件的小节名字
@@ -227,7 +227,7 @@ class INI:
227
227
  """
228
228
  删除键
229
229
 
230
- INI.DeleteKey(\'D:\\conf.ini\',\'section1\', \'key1\', encoding=\'GBK\')
230
+ INI.DeleteKey('D:\\conf.ini','section1', 'key1', encoding='GBK')
231
231
 
232
232
  :param iniPath:[必选参数]INI 配置文件所在路径
233
233
  :param sectionName:[必选参数]要访问 INI 配置文件的小节名字
@@ -276,7 +276,7 @@ class App:
276
276
  """
277
277
  等待应用启动或关闭
278
278
 
279
- App.WaitProcess(\'chrome.exe\', waitType=\'open\', delayTime=30000)
279
+ App.WaitProcess('chrome.exe', waitType='open', delayTime=30000)
280
280
 
281
281
  :param processName:[必选参数]进程名称,忽略大小写字母。如:"chrome.exe"
282
282
  :param waitType:[可选参数]期望应用状态。open:等待应用打开 close:等待应用关闭
@@ -290,7 +290,7 @@ class Image:
290
290
  """
291
291
  判断图像是否存在
292
292
 
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)
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)
294
294
 
295
295
  :param imagePath:[必选参数]要查找的图片路径
296
296
  :param target:[必选参数]tdRPA拾取器获取的目标元素特征字符串或uia目标元素对象
@@ -302,7 +302,7 @@ class Image:
302
302
  :param delayAfter:[可选参数]执行后延时(毫秒)。默认0
303
303
  :param delayBefore:[可选参数]执行前延时(毫秒)。默认100
304
304
  :param setForeground:[可选参数]激活窗口。默认True
305
- :param matchType:[可选参数]指定查找图像的匹配方式,\'GrayMatch\':“灰度匹配”速度快,但在极端情况下可能会匹配失败,\'ColorMatch\':“彩色匹配”相对“灰度匹配”更精准但匹配速度稍慢。默认\'GrayMatch\'
305
+ :param matchType:[可选参数]指定查找图像的匹配方式,'GrayMatch':“灰度匹配”速度快,但在极端情况下可能会匹配失败,'ColorMatch':“彩色匹配”相对“灰度匹配”更精准但匹配速度稍慢。默认'GrayMatch'
306
306
  :param backgroundPic:[可选参数]是否后台识图片(图片需与查找范围在同一窗口)。True为后台识别图片,False为前台识别图片。默认False。
307
307
  :return:存在返回True,不存在返回False
308
308
  """
@@ -311,7 +311,7 @@ class Image:
311
311
  """
312
312
  查找图像
313
313
 
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")
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")
315
315
 
316
316
  :param imagePath:[必选参数]要查找的图片路径
317
317
  :param target:[必选参数]tdRPA拾取器获取的目标元素特征字符串或uia目标元素对象
@@ -323,19 +323,19 @@ class Image:
323
323
  :param delayAfter:[可选参数]执行后延时(毫秒)。默认0
324
324
  :param delayBefore:[可选参数]执行前延时(毫秒)。默认100
325
325
  :param setForeground:[可选参数]激活窗口。默认True
326
- :param matchType:[可选参数]指定查找图像的匹配方式,\'GrayMatch\':“灰度匹配”速度快,但在极端情况下可能会匹配失败,\'ColorMatch\':“彩色匹配”相对“灰度匹配”更精准但匹配速度稍慢。默认\'GrayMatch\'
326
+ :param matchType:[可选参数]指定查找图像的匹配方式,'GrayMatch':“灰度匹配”速度快,但在极端情况下可能会匹配失败,'ColorMatch':“彩色匹配”相对“灰度匹配”更精准但匹配速度稍慢。默认'GrayMatch'
327
327
  :param backgroundPic:[可选参数]是否后台识图片(图片需与查找范围在同一窗口)。True为后台识别图片,False为前台识别图片。默认False。
328
328
  :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
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
331
331
  """
332
332
  @staticmethod
333
333
  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
334
  """
335
335
  点击图像
336
336
 
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)
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)
339
339
 
340
340
  :param imagePath:[必选参数]要查找的图片路径
341
341
  :param target:[必选参数]tdRPA拾取器获取的目标元素特征字符串或uia目标元素对象
@@ -355,7 +355,7 @@ class Image:
355
355
  :param keyModifiers:[可选参数]辅助按键["Alt","Ctrl","Shift","Win"]可多选。默认None
356
356
  :param simulateType:[可选参数]操作类型。模拟操作:"simulate" 消息操作:"message"。默认"simulate"
357
357
  :param moveSmoothly:[可选参数]是否平滑移动鼠标。默认False
358
- :param matchType:[可选参数]指定查找图像的匹配方式,\'GrayMatch\':“灰度匹配”速度快,但在极端情况下可能会匹配失败,\'ColorMatch\':“彩色匹配”相对“灰度匹配”更精准但匹配速度稍慢。默认\'GrayMatch\'
358
+ :param matchType:[可选参数]指定查找图像的匹配方式,'GrayMatch':“灰度匹配”速度快,但在极端情况下可能会匹配失败,'ColorMatch':“彩色匹配”相对“灰度匹配”更精准但匹配速度稍慢。默认'GrayMatch'
359
359
  :param backgroundPic:[可选参数]是否后台识图片(图片需与查找范围在同一窗口)。True为后台识别图片,False为前台识别图片。默认False。注意:当simulateType为message时,该字段设置为True才会生效
360
360
  :param iSerialNo:[可选参数]指定图像匹配到多个目标时的序号,序号为从1开始的正整数,在屏幕上从左到右从上到下依次递增,匹配到最靠近屏幕左上角的目标序号为1,如果是0,匹配所有图片(即点击所有匹配到的图片)。默认为1
361
361
  :return:None
@@ -365,8 +365,8 @@ class Image:
365
365
  """
366
366
  鼠标移动到图像上
367
367
 
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)
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)
370
370
 
371
371
  :param imagePath:[必选参数]要查找的图片路径
372
372
  :param target:[必选参数]tdRPA拾取器获取的目标元素特征字符串或uia目标元素对象
@@ -383,7 +383,7 @@ class Image:
383
383
  :param cursorOffsetY:[可选参数]纵坐标偏移。默认0
384
384
  :param keyModifiers:[可选参数]辅助按键["Alt","Ctrl","Shift","Win"]可多选。默认None
385
385
  :param moveSmoothly:[可选参数]是否平滑移动鼠标。默认False
386
- :param matchType:[可选参数]指定查找图像的匹配方式,\'GrayMatch\':“灰度匹配”速度快,但在极端情况下可能会匹配失败,\'ColorMatch\':“彩色匹配”相对“灰度匹配”更精准但匹配速度稍慢。默认\'GrayMatch\'
386
+ :param matchType:[可选参数]指定查找图像的匹配方式,'GrayMatch':“灰度匹配”速度快,但在极端情况下可能会匹配失败,'ColorMatch':“彩色匹配”相对“灰度匹配”更精准但匹配速度稍慢。默认'GrayMatch'
387
387
  :param backgroundPic:[可选参数]是否后台识图片(图片需与查找范围在同一窗口)。True为后台识别图片,False为前台识别图片。默认False。
388
388
  :param iSerialNo:[可选参数]指定图像匹配到多个目标时的序号,序号为从1开始的正整数,在屏幕上从左到右从上到下依次递增,匹配到最靠近屏幕左上角的目标序号为1,如果是0,匹配所有图片(即鼠标将移动经过所有匹配到的图片)。默认为1
389
389
  :return:None
@@ -393,7 +393,7 @@ class Image:
393
393
  """
394
394
  等待图像显示或消失
395
395
 
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)
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)
397
397
 
398
398
  :param imagePath:[必选参数]要查找的图片路径
399
399
  :param target:[必选参数]tdRPA拾取器获取的目标元素特征字符串或uia目标元素对象
@@ -406,7 +406,7 @@ class Image:
406
406
  :param delayAfter:[可选参数]执行后延时(毫秒)。默认0
407
407
  :param delayBefore:[可选参数]执行前延时(毫秒)。默认100
408
408
  :param setForeground:[可选参数]激活窗口。默认True
409
- :param matchType:[可选参数]指定查找图像的匹配方式,\'GrayMatch\':“灰度匹配”速度快,但在极端情况下可能会匹配失败,\'ColorMatch\':“彩色匹配”相对“灰度匹配”更精准但匹配速度稍慢。默认\'GrayMatch\'
409
+ :param matchType:[可选参数]指定查找图像的匹配方式,'GrayMatch':“灰度匹配”速度快,但在极端情况下可能会匹配失败,'ColorMatch':“彩色匹配”相对“灰度匹配”更精准但匹配速度稍慢。默认'GrayMatch'
410
410
  :param backgroundPic:[可选参数]是否后台识图片(图片需与查找范围在同一窗口)。True为后台识别图片,False为前台识别图片。默认False。
411
411
  :return:None
412
412
  """
@@ -415,7 +415,7 @@ class Image:
415
415
  """
416
416
  目标内指定位置比色
417
417
 
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)
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)
419
419
 
420
420
  :param color:[必选参数]指定位置是否为此颜色,十六进制颜色,RGB色值,例如:"FF0000",支持偏色,如"FF0000-101010"
421
421
  :param target:[必选参数]tdRPA拾取器获取的目标元素特征字符串或uia目标元素对象
@@ -436,7 +436,7 @@ class Image:
436
436
  """
437
437
  获取目标指定位置的颜色值(16进制RGB字符)
438
438
 
439
- Image.GetColor(target, anchorsElement=None, searchDelay=10000, continueOnError=False, delayAfter=0, delayBefore=100, setForeground=True, beginPosition=\'center\', positionOffsetX=0, positionOffsetY=0, backgroundPic=False)
439
+ Image.GetColor(target, anchorsElement=None, searchDelay=10000, continueOnError=False, delayAfter=0, delayBefore=100, setForeground=True, beginPosition='center', positionOffsetX=0, positionOffsetY=0, backgroundPic=False)
440
440
 
441
441
  :param target:[必选参数]tdRPA拾取器获取的目标元素特征字符串或uia目标元素对象
442
442
  :param anchorsElement:[可选参数]从哪个元素开始找,不传则从桌面顶级元素开始找(有值可提高查找速度)。默认None
@@ -456,7 +456,7 @@ class Image:
456
456
  """
457
457
  查找颜色
458
458
 
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\')
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')
460
460
 
461
461
  :param colors: [必选参数]需要查找的颜色值字符串,十六进制颜色,支持偏色,支持同时多个颜色,例如 "FF0000" 或 "FF0000-101010" 或 "FF0000-101010|0000FF-101010"
462
462
  :param target:[必选参数]tdRPA拾取器获取的目标元素特征字符串或uia目标元素对象
@@ -467,7 +467,7 @@ class Image:
467
467
  :param delayAfter:[可选参数]执行后延时(毫秒)。默认0
468
468
  :param delayBefore:[可选参数]执行前延时(毫秒)。默认100
469
469
  :param setForeground:[可选参数]激活窗口。默认True
470
- :param backgroundPic:[可选参数]是否后台识图片(颜色需与查找范围在同一窗口)。True为后台识别图片,False为前台识别图片。默认False。
470
+ :param backgroundPic:[可选参数]是否后台识图片(颜色需与查找范围在同一窗口)。True为后台识别图片,False为前台识别图片。默认False。
471
471
  :param searchOrder:[可选参数]搜索顺序,除“all”以外,其余方式返回首个匹配的颜色坐标,可组合使用,返回多个匹配坐标。
472
472
  topLeft:从上到下由左至右,leftTop:从左到右由上至下,topRight:从上到下由右至左,rightTop:从右到左由上至下,
473
473
  bottomLeft:从下到上由左至右,leftBottom:从左到右由下至上,bottomRight:从下到上由右至左,rightBottom:从右到左由下至上,
@@ -480,7 +480,7 @@ class Image:
480
480
  """
481
481
  多点找色
482
482
 
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\')
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')
484
484
 
485
485
  :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
486
  :param target:[必选参数]tdRPA拾取器获取的目标元素特征字符串或uia目标元素对象
@@ -517,7 +517,7 @@ class Mail:
517
517
  """
518
518
  发送邮件
519
519
 
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)
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)
521
521
 
522
522
  :param user: [必选参数]邮箱登录帐号,比如普通QQ邮箱的登录帐号与邮箱地址相同
523
523
  :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.64
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.cp312-win_amd64.pyd,sha256=oAddKX-hcGul39-N-mPGi7BvwbZw563RMfRS4KJZxJc,4643840
1
+ tdrpa/tdworker.cp312-win_amd64.pyd,sha256=7_DwdY1Gk8EEiguoyrNky54cDMu9-BPnscgi-pNf1AU,4644352
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=NQnlIlMGE22DVyP4dRVrrg4AshXIyl60s7qCo9m6s8U,43224
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.64.dist-info/METADATA,sha256=PQ0Zx0N3JphA8ju2z7dT1vxhToaTFmOEaRd02fqQg94,1164
91
+ tdrpa_tdworker-1.2.13.64.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
92
+ tdrpa_tdworker-1.2.13.64.dist-info/top_level.txt,sha256=S9UoqmC_cyGqKbGsBkLQPEeQLbDrWD0SRwbxPpQpyyU,6
93
+ tdrpa_tdworker-1.2.13.64.dist-info/RECORD,,