I want to be able to send the key combination SHIFT + CTRL + . (dot) using the following code:
import win32com.client as comclt
wsh= comclt.Dispatch("WScript.Shell")
wsh.SendKeys()
So far I was able to send CTRL + . (dot) like this :
wsh.SendKeys(^.)
How do I add the SHIFT key there ?
Thanks to anyone who answers :)
This method also allows us to press a key while holding another key, for example, ctrl+c to copy. To do this we will need to press ctrl, press and release c and then release ctrl.
For Shift use +
Complete list is available here: SendKeys
... To specify that a combination of SHIFT, CTRL, and ALT should be held down while several other keys are pressed, create a compound string argument with the modified keystrokes enclosed in parentheses. For example, to send the keystroke combination that specifies that the SHIFT key is held down while:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With