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 / Send keys ( with loop ...
Power Automate
Unanswered

Send keys ( with loop index ) help

(0) ShareShare
ReportReport
Posted on by

Hi All,

 

As per, cant get this to trigger....

Also what happens when the index is lets say 99, cant send NumPad 99 ?

 

Thanks

 

 

Screenshot 2022-02-13 185556.png

I have the same question (0)
  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    If %LoopIndex% > 9

        Get subtext %LoopIndex% start to 1 (left 1) to %LoopIndexTens%

        Get subtext %LoopIndex% start 1 to end (right 1) to %LoopIndexOnes%

    End (IF)

    Send keys number pad %LoopIndexTens%
    send keys number pad %LoopIndexOnes%

     

     

        

     

  • UK_Mike Profile Picture
    on at

    Would you believe it works with just %LoopIndex%  😂

    The current pdf has max 9 pages but I set the loop index to 99-101 just to see and it does send 99,100, 101.

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Haha.  Any particular reason you need it to be the number pad?  Just curious.

  • UK_Mike Profile Picture
    on at

    Just thought I would need the Numpad so send keys would know what im trying to do, as I said I didnt realise I could just input %LoopIndex% .

    Its getting the Edge browser to open a pdf, top left is where I input the pdf page numbers.

    Page 1, if text found do this, if not page 2 and so on.

    I get the pdf page count,  set loop index 1 to last page, send keys is the current %LoopIndex%

    Loads of fun 🤣

    No particular reason for using Edge over Adobe, just seeing if I can really...

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Sorry. Would have told you that if I understood the concept. When I saw you have {NumPad} in the send keys I thought it had to be the Number Pad, like using the number keys on the regular keyboard would work.

     

    glad you found it. 

  • UK_Mike Profile Picture
    on at

    That was my logic, thinking I "had" to use NumPad.

    No worries 😂

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
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard