worker-automate-hub 0.5.698__py3-none-any.whl → 0.5.700__py3-none-any.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.
@@ -347,8 +347,8 @@ async def extracao_fechamento_contabil(
347
347
 
348
348
  ##### Janela Print #####
349
349
 
350
- app = Application(backend="win32").connect(title="Print")
351
- main_window = app.window(title="Print")
350
+ app = Application(backend="win32").connect(title="Imprimir")
351
+ main_window = app.window(title="Imprimir")
352
352
 
353
353
  # localizar o ComboBox da impressora
354
354
  printer_combo = main_window.child_window(
@@ -138,20 +138,21 @@ class EMSys:
138
138
 
139
139
  try:
140
140
  while index_item_atual < index_ultimo_item:
141
+
141
142
  send_keys("^({HOME})")
142
143
  await worker_sleep(1)
143
144
 
144
145
  if index_item_atual > 0:
145
146
  send_keys("{DOWN " + str(index_item_atual) + "}")
146
-
147
147
  await worker_sleep(2)
148
148
  send_keys("+{F10}")
149
149
  await worker_sleep(1)
150
150
  send_keys("{DOWN 2}")
151
151
  await worker_sleep(1)
152
152
  send_keys("{ENTER}")
153
-
153
+
154
154
  await worker_sleep(2)
155
+
155
156
  app = Application().connect(title="Alteração de Item")
156
157
  main_window = app["Alteração de Item"]
157
158
 
@@ -160,7 +161,25 @@ class EMSys:
160
161
  edit = main_window.child_window(
161
162
  class_name="TDBIEditCode", found_index=0
162
163
  )
163
-
164
+ # Caminho da imagem
165
+ caminho_imagem = r"C:\Users\automatehub\Documents\GitHub\worker-automate-hub\assets\entrada_de_notas_16\ipi_0.png"
166
+ # Verifica se o arquivo existe
167
+ if os.path.exists(caminho_imagem):
168
+ print("Imagem já existe. Clicando em 'Cancelar'...")
169
+
170
+ # Conectando à janela do app
171
+ app = Application().connect(class_name="TFrmAlteraItemNFE", timeout=60)
172
+ janela_cancelar = app["TFrmAlteraItemNFE"]
173
+
174
+ # Encontra o botão pelo texto
175
+ try:
176
+ cancelar_btn = janela_cancelar.child_window(class_name ="TDBIBitBtn", found_index=2)
177
+ cancelar_btn.click_input()
178
+ print("Clicou em 'Cancelar'.")
179
+ index_item_atual += 1
180
+ continue
181
+ except:
182
+ pass
164
183
  #seta IPI 0%
165
184
  ipi_combobox = main_window.child_window(
166
185
  class_name="TDBIComboBox", found_index=4
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: worker-automate-hub
3
- Version: 0.5.698
3
+ Version: 0.5.700
4
4
  Summary: Worker Automate HUB é uma aplicação para automatizar rotinas de RPA nos ambientes Argenta.
5
5
  Author: Joel Paim
6
6
  Requires-Python: >=3.12,<4.0
@@ -68,7 +68,7 @@ worker_automate_hub/tasks/jobs/entrada_de_notas_7139.py,sha256=Y20hsr46YbfkHPaSd
68
68
  worker_automate_hub/tasks/jobs/entrada_de_notas_9.py,sha256=ZYE2YmQJ9954Uuc9fiSykGi0ws_NPXs8ex244y20P44,64642
69
69
  worker_automate_hub/tasks/jobs/entrada_de_notas_9000.py,sha256=cDMzDGcylhg9pwtCPmZ82YItPS05PWcPtfeeC2WGrpA,65507
70
70
  worker_automate_hub/tasks/jobs/exemplo_processo.py,sha256=nV0iLoip2FH2-FhLmhX3nPqsfl_MPufZ3E5Q5krJvdc,3544
71
- worker_automate_hub/tasks/jobs/extracao_fechamento_contabil.py,sha256=HPSB8vHEhbWChXrDcnFQ07MFEq_SOtbnzOSzs_Z4IHQ,19561
71
+ worker_automate_hub/tasks/jobs/extracao_fechamento_contabil.py,sha256=6Kr5DKjKLqtFvGzyiXtt7xrQsuU898l8pQXDq9C6AX8,19567
72
72
  worker_automate_hub/tasks/jobs/extracao_fechamento_emsys.py,sha256=-T2nZUDiFrUGm_KLxJd_4qcrageDxVpWW3KAAniLFC4,21448
73
73
  worker_automate_hub/tasks/jobs/fechar_conexao_rdp.py,sha256=UWAKCS2dbfgDlSQOBdjmVJXfD1MMuUrOi3weDgB0CAc,5718
74
74
  worker_automate_hub/tasks/jobs/fidc_exportacao_docs_portal_b2b.py,sha256=SOs2mORBJqHs089ApbLaPJVRXM7wWhf0e99URXqPlpQ,15020
@@ -96,9 +96,9 @@ worker_automate_hub/utils/logger.py,sha256=FYV9fg0_RAYJF_ZOCJEbqQAiCXlXk2gMpvUU1
96
96
  worker_automate_hub/utils/toast.py,sha256=xPHc5r5uOxB_cZlCzm13Kt2qSKLLFZALncU6Qg3Ft68,1162
97
97
  worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbVlwDl49Y,7972
98
98
  worker_automate_hub/utils/util.py,sha256=xA13nQqZglwkvfAKH18Unv4UoZUyvL58CacSrzUpYTw,206352
99
- worker_automate_hub/utils/utils_nfe_entrada.py,sha256=L_z1Aps6BFWl-6_Ibm45vDid1S4kFDz5O78N2uO1Rq0,36458
99
+ worker_automate_hub/utils/utils_nfe_entrada.py,sha256=Yy4vDY5Wiw0uopy43IRm9jUgF5g1aFXMGVtG-GtH2g4,37524
100
100
  worker_automate_hub/worker.py,sha256=axdrr1xLTjWEyWfcyH3OCSpPTsyzck_fL_0u1DBLjvw,6525
101
- worker_automate_hub-0.5.698.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
102
- worker_automate_hub-0.5.698.dist-info/METADATA,sha256=Zv-yjNY4fT4xELKh-A1_vn8hT1oHdq4SksXQ4S5oeqw,3049
103
- worker_automate_hub-0.5.698.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
104
- worker_automate_hub-0.5.698.dist-info/RECORD,,
101
+ worker_automate_hub-0.5.700.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
102
+ worker_automate_hub-0.5.700.dist-info/METADATA,sha256=NNL3o2Ak-Kt-RoXBZs2NGlHbB-48zuKPyspKnBa7sfY,3049
103
+ worker_automate_hub-0.5.700.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
104
+ worker_automate_hub-0.5.700.dist-info/RECORD,,