Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pyaudio
- import speech_recognition as sr
- import os, sys
- import pyttsx3
- import random
- import webbrowser
- import time
- os.system("title TrrainingController")
- def whatsap():
- os.startfile("C:/Users/ergon/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/WhatsApp/WhatsApp")
- def wah():
- whatsap()
- os.startfile("D:/ТШО курсы/helper/WAHm.py")
- def cse():
- os.startfile("D:/ТШО курсы/helper/CSEm.py")
- def sep():
- os.startfile("D:/ТШО курсы/helper/SEPm.py")
- def forklift():
- os.startfile("D:/ТШО курсы/helper/Forklift.py")
- def closeAll():
- os.system("taskkill /f /im winword.exe")
- os.system("taskkill /f /im XLVIEW.EXE")
- os.system("taskkill /f /im excel.exe")
- os.system("taskkill /f /im powerpnt.exe")
- os.system("taskkill /f /im wordpad.exe")
- os.system("taskkill /f /im vlc.exe")
- os.system("taskkill /f /im msedge.exe")
- os.system("taskkill /f /im Microsoft.Photos.exe")
- def sertify():
- os.startfile("D:/ТШО курсы/сертифы")
- os.startfile("D:/ТШО курсы/сертифы/Certificate project.xlsm")
- os.startfile("D:/ТШО курсы/сертифы/All Certificate samples .pptx")
- def webPost():
- webbrowser.open_new("https://e.mail.ru/templates/")
- webbrowser.open_new("https://e.mail.ru/inbox/")
- def test():
- os.startfile("D:/ТШО курсы/WAH/Links/02_06_11_Chemi_Use_of_manlift_UC.xlsx")
- print(os.getppid(), '-----------------')
- time.sleep(2)
- os.startfile("D:/ТШО курсы/WAH/Links/3Copy of 17_05_11_Servtech_Scissor_lift.xlsx")
- print(os.getppid(), '-----------------')
- os.get
- while True:
- choice = int(input("closeAll - 0, wah - 1, cse - 2, sep - 3, forklift - 4, sertify - 5, webPost - 6: "))
- if choice == 0:
- closeAll();print(" +close")
- elif choice == 1:
- wah();print(" +wah")
- elif choice == 2:
- cse();print(" +cse")
- elif choice == 3:
- sep();print(" +sep")
- elif choice == 4:
- forklift();print(" +forklift")
- elif choice == 5:
- sertify();print(" +sertify")
- elif choice == 6:
- webPost();print(" +webPost")
- elif choice == 13:
- test();print(" +test")
- else:
- print(" - no comand")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement