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 / Cannot send Alt+F2 com...
Power Automate
Unanswered

Cannot send Alt+F2 command

(0) ShareShare
ReportReport
Posted on by 10

Hi all, 

 

I need to send Alt+F2 to an application. I am successfully focusing the window then I tried using the "Send Keys" node to send the command. I found this solution on the forum so have tried the following:

 

  1. {Alt}{F2}
  2. {LMenu}{F2}
  3. {Alt}({F2})
  4. {LMenu}({F2})
  5. {F2}({Alt})
  6. {F2}({LMenu})

None of which worked.

I have tried with a large delay on the "Send Keys" node and a 0 delay, and also sending as hardware keys.

 

I recorded my action and the macro recorder showed the combination as {LMenu}(){F2} which also didn't work.

I then tried using a combination of "Press/Release Key" to hold the Alt key and "Send Keys" to send the F2 command

 

PAD.Designer_5r9nAmm1y7.png

 

Each combination I have tried only seems to be sending the F2 command.

 

Other things I have tried: 

  1. Refocusing the window before sending the command
  2. Forcing a release of the Alt key using "Press/Release Key"
  3. Sending the command multiple times with delays

Unfortunately I'm also unable to rebind the key combination, so I've hit a bit of a road block.

 

Thanks in advance,

 

Matt

 

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

    Hey Matt,

     

    You seem to be on the right track.  A shame it's not working.

     

    {Alt}({F2}) would be Hold Alt down while pressing F2

    {Alt}(){F2} would be Press Alt, Then press F2

     

    By default, "Send Text as hardware keys" should be off.  I have never had to turn it on.  But for the sake of troubleshooting have you tried both on and off?

  • MLaverick Profile Picture
    10 on at

    Hi Michael,

     

    Thanks for the quick reply. 

    Yes I have tried with "Send Text as hardware keys" on and off.

    The odd thing is, I have just tried it in a loop and it works once in a while, maybe every 15 tries. Doing it manually works every time so I don't think it's the application

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    That's so weird.  Anything you can do to utilize that, such as set up the loop and before it attempts it again, say, If element exists, Exit Loop.

  • MLaverick Profile Picture
    10 on at

    Yes that's what I am doing currently. I check for an image to see if the UI has loaded then exit the loop. But with the time it takes to check for the image and with success being so infrequent, the task I'm trying to automate would take several hours

  • LucianoGomesBR Profile Picture
    on at

    @MLaverick , I had the same issue sending keys to MS Excel.
    I solved the issue adding Waits before and after the Send Keys.
    I tried to remove one and other and now it is working fine.
    I also tried to use a shorter and a longer "Delay between keystrokes", but adding the Waits solved the issue.

    LucianoGomesBR_0-1641930082304.png

     

  • MLaverick Profile Picture
    10 on at

    Hi @LucianoGomesBR

    Thanks for the reply, unfortunately that didn't work either.

    I have it working if I just loop the command over and over until the menu is recognised so will stick with this for now, but this makes me think that there might be a bug.

    It works a lot quicker outside of the debug mode so it's mostly fine.

  • Benny_1857 Profile Picture
    124 on at

    Would try F12 instead of Alt F2?

  • Benny_1857 Profile Picture
    124 on at

    There might be several solutions for Save As.

    1. Press Alt then F2;

    2. Press F12;

    3. Save As;
    4. Close Save As

    So I guess whether the problem is not in the key you press but the window where you are.

  • MLaverick Profile Picture
    10 on at

    Hi @Benny_1857

    It's actually a shortcut to open an NVidia tool, "Ansel" for taking 360 screenshots.

     

    Thanks for the suggestion. 

     

    Matt

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 976

#2
Valantis Profile Picture

Valantis 863

#3
Haque Profile Picture

Haque 547

Last 30 days Overall leaderboard