--

Please see my response below to another response... You can run all these scripts using different keyboard shortcuts or make them run at start or run them in background automatically, etc.... These are not limited to VS Code.

-----

You can develop a program containing different combinations of keyboard shortcuts (like ctrl\ or alt? etc.), and then you can use pynput python library to track keyboard keys and once it matches a certain pattern you can execute python programs using OS method.

To make it more efficient you can try running a VBS script that will execute a bat file which will then execute your python code.

Below are my old article for your reference

https://levelup.gitconnected.com/dont-buy-alexa-build-your-own-3967222f2ca8

https://medium.com/p/330be0c288ac

And my github repo for similar code you are looking for https://github.com/Abhayparashar31/karl

These are old articles, repo so don't be mad if u see some errors. 😉

----

--

--

Abhay Parashar

CyberSec 🧑‍💻at FIS | Top Writer | 5M+ Views | Learning and Sharing Knowledge Everyday | Python is ❤️| Editor of The Pythoneers | Boosting Great Tech Stories