Using a loop

Hey guys I really need some help. I have an issue where I have to send a hot key 1, 2 , or 3 times. I used a a while loop with a hotkey activity and then a element exits but still cant get it to work. Can anyone please help me?

I would suggest using a Retry Scope instead for this, just because you can avoid infinite loops where the element is always True but fails to click it.

Also, can you identify which part is not working, like is it not clicking; are there any errors? Do you have Simulate Click disabled, cause that can cause some issues sometimes.


Hi @seanp92

I can’t see a hotkey activity in your image. is there more of the workflow? What are you trying to achieve by sending hot key 1,2,3 times?

sure here you go with a sample xaml
i tried to execute it with a sample process that will click on the refresh button three times in a browser
we can choose different element in your process based on the requirement

hope this would help you
kindly try this and let know for any queries or clarification (10.3 KB)

Cheers @seanp92