Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import
- import tkinter as tk
- from tkinter import ttk
- from subprocess import call
- import os
- import time
- import webbrowser
- #start up
- print("Welcome to Emils machine")
- time.sleep(1)
- print("Please leave feedback on what you want me to add!")
- time.sleep(1)
- print("Do 'help' if you want a few commands you can do!'")
- time.sleep(1)
- print("Login [L]")
- print("Register [R]")
- start = input("")
- while True:
- if start == 'R':
- RegUSER = input("Create Username: ")
- RegPASS = input("Create Password: ")
- RegPassFile = open("Pass.txt","a")
- RegUserFile = open("Users.txt","a")
- RegUserFile.write("" + RegUSER + "" + RegPASS + "\n")
- RegUserFile.close()
- RegPassFile.close()
- print("You have now created an account")
- print("Your username is " "'" + RegUSER + "'" " Your password is " "'" + RegPASS + "'" "")
- break
- elif start == 'L':
- LoginUSER = input("Input Username: ")
- LoginPASS = input("Input Password: ")
- print("you have been logged in as " "'" + LoginUSER + "'")
- break
- else:
- print("try that again!")
- print("Login [L]")
- print("Register [R]")
- start = input("")
- if start == 'R':
- RegUSER = input("Create Username: ")
- RegPASS = input("Create Password: ")
- RegPassFile = open("Pass.txt","a")
- RegUserFile = open("Users.txt","a")
- RegUserFile.write("" + RegUSER + "" + RegPASS + "\n")
- RegUserFile.close()
- RegPassFile.close()
- print("You have now created an account")
- print("Your username is " "'" + RegUSER + "'" " Your password is " "'" + RegPASS + "'" "")
- elif start == 'L':
- LoginUSER = input("Input Username: ")
- LoginPASS = input("Input Password: ")
- print("you have been logged in as " "'" + LoginUSER + "'")
- #define into variable
- def google():
- time.sleep(1)
- print("opening google")
- time.sleep(2)
- google = input("Google Search: ")
- webbrowser.open_new_tab('http://www.google.com/search?btnG=1&q=%s' % google)
- def hcmd():
- print("Commands You Can Use: ")
- time.sleep(1)
- print("open google")
- print("open paint")
- print("open cmd")
- print("help")
- print("feedback")
- def ocmd():
- call(["cmd.exe"])
- def paint():
- call(["mspaint.exe"])
- def feedback():
- print("Thanks for your feedback!")
- def admin():
- AdminPASS = input("Type the administrator password here: ")
- print("You now have permission for everything")
- time.sleep(1)
- print("e.g. Currency, balance...")
- #commands
- while True:
- cmd = input("cmd: ")
- if cmd == "open google":
- google()
- elif cmd == "help":
- hcmd()
- elif cmd == "open cmd":
- ocmd()
- elif cmd == "open paint":
- paint()
- elif cmd == "feedback":
- Feedback = input("Write what you think I should add: ")
- feedback()
- FeedFile = open("feedback.txt","a")
- FeedFile.write("Feedback: " + Feedback + "\n")
- FeedFile.close()
- elif cmd == "admin":
- admin()
- else:
- print("Invalid Command")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement