Сама ошибка:
from pymem import process
from tkinter import *
from tkinter import messagebox
root = Tk()
root.geometry('600x400')
root.title('Python Injector')
def inject():
try:
dll_path = dll_path_entry.get()
dll_path_bytes = dll_path.encode('UTF-8')
process_name = process_name_entry.get()
if dll_path != '' and process_name != '':
open_process = process.open_process_by_name(process_name)
open_process.inject_dll(dll_path_bytes)
messagebox.showwarning('INFO', 'INJECTED')
else:
messagebox.showerror('ERROR', 'you wrote anything!')
except Exception as e:
messagebox.showerror('ERROR', str(e))
Label(root, text='Entry path to dll').place(relx=0.5, rely=0.25, anchor=CENTER)
dll_path_entry = Entry(root, width=50)
dll_path_entry.place(relx=0.5, rely=0.3, anchor=CENTER)
Label(root, text='Entry Process name: ').place(relx=0.5, rely=0.45, anchor=CENTER)
process_name_entry = Entry(root)
process_name_entry.place(relx=0.5, rely=0.5, anchor=CENTER)
Button(root, text='Injected!', command=inject).place(relx=0.5, rely=0.7, anchor=CENTER)
root.mainloop()