worker-automate-hub 0.5.699__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.
@@ -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.699
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
@@ -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.699.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
102
- worker_automate_hub-0.5.699.dist-info/METADATA,sha256=lgG6Dhlt503c6ksOzwl-n_aapuFOdPwqm4u8ItShqls,3049
103
- worker_automate_hub-0.5.699.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
104
- worker_automate_hub-0.5.699.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,,