user3814004
user3814004

Reputation: 159

pywinauto keyboard.sendkeys(). Send the equivalent of holding down several keys at the same time

How do I use pywinauto keyboard to send {LWIN} {SHIFT} {S} all a the same time keyboard.send_keys('{LWIN}+{S}) types an S into the windows search box. I want to do the equivalent of hold win key hold shift key hold s key all down simultaneously which causes the snip it function to start up. Thank you in advance

Upvotes: 1

Views: 1506

Answers (1)

David Pratmarty
David Pratmarty

Reputation: 716

Try:

keyboard.send_keys("{LWIN down}""{VK_LSHIFT down}""s""{VK_LSHIFT up}""{LWIN up}")

Upvotes: 3

Related Questions