Notifications
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 538 Super User 2025 Season 2
Tomac 405 Moderator
abm abm 252 Most Valuable Professional