Advertisement
Savelyev_Vyacheslav

dom

Apr 15th, 2021
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.29 KB | None | 0 0
  1. import pyaudio
  2. import speech_recognition as sr
  3. import os, sys
  4. import pyttsx3
  5. import random
  6. import webbrowser
  7. import time
  8.  
  9. os.system("title TrrainingController")
  10.  
  11. def whatsap():  
  12.     os.startfile("C:/Users/ergon/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/WhatsApp/WhatsApp")
  13.  
  14. def wah():
  15.     whatsap()
  16.     os.startfile("D:/ТШО курсы/helper/WAHm.py")
  17.  
  18. def cse():  
  19.     os.startfile("D:/ТШО курсы/helper/CSEm.py")
  20.  
  21. def sep():  
  22.     os.startfile("D:/ТШО курсы/helper/SEPm.py")
  23.  
  24. def forklift():  
  25.     os.startfile("D:/ТШО курсы/helper/Forklift.py")
  26.  
  27.  
  28. def closeAll():
  29.     os.system("taskkill /f /im winword.exe")
  30.     os.system("taskkill /f /im XLVIEW.EXE")
  31.     os.system("taskkill /f /im excel.exe")
  32.     os.system("taskkill /f /im powerpnt.exe")
  33.     os.system("taskkill /f /im wordpad.exe")
  34.     os.system("taskkill /f /im vlc.exe")
  35.     os.system("taskkill /f /im msedge.exe")
  36.     os.system("taskkill /f /im Microsoft.Photos.exe")
  37.    
  38. def sertify():  
  39.     os.startfile("D:/ТШО курсы/сертифы")
  40.     os.startfile("D:/ТШО курсы/сертифы/Certificate project.xlsm")
  41.     os.startfile("D:/ТШО курсы/сертифы/All Certificate samples .pptx")
  42.  
  43. def webPost():  
  44.     webbrowser.open_new("https://e.mail.ru/templates/")
  45.     webbrowser.open_new("https://e.mail.ru/inbox/")
  46.    
  47.    
  48. def test():  
  49.     os.startfile("D:/ТШО курсы/WAH/Links/02_06_11_Chemi_Use_of_manlift_UC.xlsx")
  50.     print(os.getppid(), '-----------------')
  51.     time.sleep(2)
  52.     os.startfile("D:/ТШО курсы/WAH/Links/3Copy of 17_05_11_Servtech_Scissor_lift.xlsx")
  53.     print(os.getppid(), '-----------------')
  54.     os.get
  55.  
  56. while True:
  57.     choice = int(input("closeAll - 0, wah - 1, cse - 2, sep - 3, forklift - 4, sertify - 5, webPost - 6: "))
  58.     if choice == 0:
  59.         closeAll();print(" +close")
  60.     elif choice == 1:
  61.         wah();print(" +wah")
  62.     elif choice == 2:
  63.         cse();print(" +cse")  
  64.     elif choice == 3:
  65.         sep();print(" +sep")
  66.     elif choice == 4:
  67.         forklift();print(" +forklift")
  68.     elif choice == 5:
  69.         sertify();print(" +sertify")
  70.     elif choice == 6:
  71.         webPost();print(" +webPost")
  72.     elif choice == 13:
  73.         test();print(" +test")
  74.     else:
  75.         print(" - no comand")
  76.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement