Created
June 12, 2021 13:34
-
-
Save KaushikShresth07/7e9f2c6f05631c8f58f6761dd189a4b4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import webbrowser | |
from time import sleep | |
import keyboard | |
def StartApp(Path): | |
os.startfile(str(Path)) | |
def CloseApp(Name): | |
os.system(f"TASKKILL /F /im {Name}.exe") | |
def StartWeb(Name): | |
htt = f"https://www.{Name}.com" | |
webbrowser.open(htt) | |
def CloseWeb(): | |
keyboard.press_and_release("ctrl + w") | |
def SearchSystem(Name): | |
keyboard.press_and_release("windows + s") | |
sleep(2) | |
keyboard.write(Name) | |
sleep(1) | |
keyboard.press('enter') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment