Skip to main content

Notifications

Power Automate - Power Automate Desktop
Suggested answer

Send Keys

Posted on 26 Nov 2024 17:00:35 by 2
I want to send key when focus on browser , Ctrl+1 ,

I used {Control}({1}) , but its working .

I want to switch from browser one tab to other . 
Categories:
  • Suggested answer
    WillSG Profile Picture
    WillSG 344 on 26 Nov 2024 at 21:11:52
    Send Keys
    Hi    I hope you are doing well.

    The reason why it is not working is because you are using plain numbers, and you should use the Insert Special Keys numbers defined in PAD.

    For example, instead of 1 you should utilize “NumPad1” and instead of 2, you should use “NumPad2”.



    Here is the snippet code tested to switch from one tab to another.

    MouseAndKeyboard.SendKeys.FocusAndSendKeys TextToSend: $'''{Control}({NumPad1})''' DelayBetweenKeystrokes: 10 SendTextAsHardwareKeys: False
    MouseAndKeyboard.SendKeys.FocusAndSendKeys TextToSend: $'''{Control}({NumPad2})''' DelayBetweenKeystrokes: 10 SendTextAsHardwareKeys: False

    There are also better ways to switch from one tab to another, but for now, that should do the trick.

    Please let me know if it works, happy automating!


    If I have addressed your inquiry successfully, kindly consider marking my response as the preferred solution. If you found my assistance helpful, a 'Thumbs Up' would be greatly appreciated.
     
    Additionally, I offer specialized consultancy and development services leveraging PAD. If you're interested in exploring these services further, feel free to DM me, and we can initiate a discussion.

    Finally, here is my YOUTUBE CHANNEL please subscribe to my channel and connect with me on LinkedIn Profile.

    Kind regards,
     
    Will SG
    Founder & Director
    RAMSolutions
    www.ramscr.com

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,129

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,797

Leaderboard