Advertisement
Savelyev_Vyacheslav

TrrainingController

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