Announcements
In a loop I wish to press the down key n + 1 number of times, where n is the CurrentIndex variable of the loop. What is the idiomatic way to do this?
I'm thinking it would be something along the lines of this:
Won't this send the n key once per iteration in the loop? What I want to do is to send a specific key (Down arrow) LoopIndex + 1 times. So send down key once on the first iteration, twice on the second etc.
Ah gotcha, so maybe more like this (I used N, you would use down arrow)
Try this:
Send Keys {Down:%LoopIndex +1%}
SendKeys {Down:3} would send it 3 times, so this should get you what you need.
good luck.
I have the same issue. I use the flow "sent keys" to type over a website.
No matter if I use {Return:1} or {Return} it does 3 times.
Any thoughts about it?.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 223
David_MA 195 Super User 2026 Season 1
Haque 167