Skip to content

Instantly share code, notes, and snippets.

@KaushikShresth07
Created June 12, 2021 13:34
Show Gist options
  • Save KaushikShresth07/7e9f2c6f05631c8f58f6761dd189a4b4 to your computer and use it in GitHub Desktop.
Save KaushikShresth07/7e9f2c6f05631c8f58f6761dd189a4b4 to your computer and use it in GitHub Desktop.
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