Posts: 35
Threads: 16
Joined: Apr 2018
04-28-2021, 12:40 AM
(This post was last modified: 04-28-2021, 12:41 AM by apeso.)
After push a button that gives me text to clipboard, it may takes a variable quantity of seconds (depending of the size text) and need to wait until this process has been finished before to go the next step in the macro.
Greetings.
Posts: 12,092
Threads: 142
Joined: Dec 2002
Posts: 35
Threads: 16
Joined: Apr 2018
04-28-2021, 03:22 PM
(This post was last modified: 04-28-2021, 03:23 PM by apeso.)
I have solved it by waiting for a part the a window, the copy to clipboard button was in a modal and after click, it closes automatically so I waited for a specific area behind the modal.
the code is like
wait 3 S "image:h97BAE402" w 0 1|16|0x400 50; err
mes F"No se encontró botón Copy to Clipboard Only: {_error.description}. Línea: {_error.line}"; end
lef
wait 15 S "image:hF60463E6" w 0 16 50; err
mes F"No se copiaron los elementos al portapapeles a tiempo: {_error.description}. Línea: {_error.line}"; end
Regards.