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 Automate
Answered

Send Keys by Position

(0) ShareShare
ReportReport
Posted on by 16

Hi All,

 

I'm unable to use the normal tools to connect with UI elements running on a virtual machine. I've been able to click on links by using the mouse movements to text and image methods, but am unable to send keys using these positions. Is there a way to send keys to those positions? I only see an option to send keys to a UI element. Thanks

I have the same question (0)
  • OkanMTL Profile Picture
    703 Super User 2024 Season 1 on at

    Hi,

     

    What happens when you send a mouse click to a position by text/image and then send your keys?

  • npiros85 Profile Picture
    16 on at

    It doesn't type anything when I try that. I can click into the input box by image/text, and it will show the  cursor in the box, but when I send keys the cursor goes away and nothing gets typed. I've tried swapping between foreground window and window instance/handle and it doesn't make a difference.

  • momlo Profile Picture
    1,527 Super User 2024 Season 1 on at

    Hi @npiros85 

    Did you try to install a power automation agent for virtual machines? This should allow you to use PAD actions for UI automation.

     

    Take a look here:

    https://learn.microsoft.com/en-us/power-automate/desktop-flows/virtual-desktops

     

  • npiros85 Profile Picture
    16 on at

    I added the agent for virtual machines, I just get an error when I try to run it.

     

    npiros85_0-1674167723505.png

     

  • Verified answer
    VJR Profile Picture
    7,635 on at

    In the Sendkeys try making use of these options 

     

    - Increasing delay 

    and/or

    - Enabling hardware keys

     

    VJR_0-1674186588959.png

     

  • momlo Profile Picture
    1,527 Super User 2024 Season 1 on at

    @npiros85  can you write how and where you are connecting?

     

    The agent is meant to work in this way:

     

     

    Machine A - your developer machine or machine used for attended/unattended run - you install full PAD client. This can be a physical or virtual machine.

     

    Machine B - a virtual machine where the application is installed. Must be VM.

     

    Then you developed flow on Machine A.

    And when you launch flow on Machine A via the cloud or local console, it opens a remote connection to Machine B 

     

     

    From the error, it seems you have installed an agent for VM on your machine A, not B, as expected.

     

  • npiros85 Profile Picture
    16 on at

    Thanks VJR. Selecting hardware keys worked. I don't know why I didn't try that.

  • npiros85 Profile Picture
    16 on at

    I did install Power Automate Desktop and the Virtual Machine Agent both to my computer. I'll see if I can get the agent on the virtual machine, but I may not have access. It does sound like that's the problem. Thanks.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 862

#2
Valantis Profile Picture

Valantis 738

#3
Haque Profile Picture

Haque 553

Last 30 days Overall leaderboard