Robotic Process Automation (RPA)

 View Only
  • 1.  How to press Alt key

    Bot Builder
    Posted Mon November 01, 2021 11:05 AM
    Hello everyone,

    Is there a way to make the bot press the Alt key? I couldn't find it in the "Press or release key" command.

    Regards,

    ------------------------------
    Stefan Stefanov
    ------------------------------


  • 2.  RE: How to press Alt key

    Posted Tue November 02, 2021 05:31 AM
    Hi Stefan,

    I had the same problem and the only solution I've found is to use the Send Key command.
    Look at the examples: the % symbol represents the Alt key and what is between braces the key you want to combine it with.

    Alt + A

    sendKeys --keys "%{A}"


    Alt + F4

    sendKeys --keys "%{F4}"


    Regards,


    ------------------------------
    Yon García Nistal
    Skechers Iberia
    ------------------------------



  • 3.  RE: How to press Alt key

    Posted Wed November 03, 2021 07:53 AM
    The key name is LMenu in the Press or release key command. Refer to Keys Enum (System.Windows.Forms) | Microsoft Docs for details.

    ------------------------------
    Gabriel Sanchez
    Gabriel.Sanchez-WDG@ibm.com
    ------------------------------



  • 4.  RE: How to press Alt key

    Bot Builder
    Posted Wed November 03, 2021 08:28 AM
    Thanks everyone!

    The Gabriel's one worked for me. I've tried with the % but it didn't recognize it as the Alt key.

    Regards,

    ------------------------------
    Stefan Stefanov
    ------------------------------