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

Notifications

Announcements

Community site session details

Community site session details

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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard