web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to send key n times?
Power Automate
Answered

How to send key n times?

(0) ShareShare
ReportReport
Posted on by 12

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 have the same question (0)
  • ryule Profile Picture
    929 Super User 2024 Season 1 on at

    I'm thinking it would be something along the lines of this:

    ryule_0-1649084886443.png

     

  • gabbsmo Profile Picture
    12 on at

    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.

  • ryule Profile Picture
    929 Super User 2024 Season 1 on at

    Ah gotcha, so maybe more like this (I used N, you would use down arrow)

     

    ryule_0-1649087000498.png

     

  • Verified answer
    MichaelAnnis Profile Picture
    5,727 Moderator on at

    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. 

  • davidfvacca Profile Picture
    2 on at

    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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 223

#2
David_MA Profile Picture

David_MA 195 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 167

Last 30 days Overall leaderboard