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
Regards.
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.