'whenever I run my python code it should close running application [closed]
I am working on an project which is using opencv. this closes any opened application when an specific hand gesture is given. So what I want is to close any application whenever I run my python code. This code will be running in background so whatever application is running at that time that should be closed when a specific hand gesture is shown
Solution 1:[1]
Just use pyautogui library in python and use this following command first it will close your your ide but if your code is running in background same as mine it will do the work.
- pyautogui.hotkey('alt','f4')
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Partha Biswas |