The page contains a few decompiled code examples
To see another example you need to refresh the page
import tkinter
import win32gui
import win32con
import keyboard
keyboard.block_key('windows')
keyboard.block_key('left windows')
keyboard.block_key('right windows')
keyboard.block_key('alt')
keyboard.block_key('tab')
keyboard.block_key('ctrl')
keyboard.block_key('esc')
def hide_taskbar():
hwnd_taskbar = win32gui.FindWindow('Shell_TrayWnd',None)
win32gui.ShowWindow(hwnd_taskbar,win32con.SW_HIDE)
return None
def show_taskbar():
hwnd_taskbar = win32gui.FindWindow('Shell_TrayWnd',None)
win32gui.ShowWindow(hwnd_taskbar,win32con.SW_SHOW)
return None
def set_always_on_top(hwnd):
win32gui.SetWindowPos(hwnd,win32con.HWND_TOPMOST,0,0,0,0,win32con.SWP_NOMOVE|win32con.SWP_NOSIZE)
return None
def check_password(event=None):
if entry.get() == '942069':
show_taskbar()
root.destroy()
return None
else:
entry.delete(0,tk.END)
error_label.config(text='c p9s le bon code')
return None
def go_to_page(page):
for p in (page_code,page_info,page_fav):
p.pack_forget()
continue
page.pack(fill='both',expand=True)
return None
root = tk.Tk()
root.attributes('-fullscreen',True)
root.attributes('-topmost',True)
root.configure(bg='black')
root.overrideredirect(True)
page_code = tk.Frame(root,bg='black')
entry = tk.Entry(page_code,font=('Arial', 32),show='*',justify='center')
entry.pack(pady=20)
entry.focus_set()
entry.bind('<Return>',check_password)
error_label = tk.Label(page_code,text='',font=('Arial', 24),fg='red',bg='black')
error_label.pack()
arrow_right_1 = tk.Button(page_code,text='➡',font=('Arial', 40),bg='black',fg='white',bd=0,command=lambda : go_to_page(page_info))
arrow_right_1.pack(side='right',padx=50)
page_info = tk.Frame(root,bg='black')
label_info = tk.Label(page_info,text='la weed a un nombre.',font=('Arial', 30),fg='white',bg='black')
label_info.pack(pady=50)
arrow_left_2 = tk.Button(page_info,text='⬅',font=('Arial', 40),bg='black',fg='white',bd=0,command=lambda : go_to_page(page_code))
arrow_left_2.pack(side='left',padx=50)
arrow_right_2 = tk.Button(page_info,text='➡',font=('Arial', 40),bg='black',fg='white',bd=0,command=lambda : go_to_page(page_fav))
arrow_right_2.pack(side='right',padx=50)
page_fav = tk.Frame(root,bg='black')
label_fav = tk.Label(page_fav,text='ton nombre préféré.',font=('Arial', 30),fg='white',bg='black')
label_fav.pack(pady=50)
arrow_left_3 = tk.Button(page_fav,text='⬅',font=('Arial', 40),bg='black',fg='white',bd=0,command=lambda : go_to_page(page_info))
arrow_left_3.pack(side='left',padx=50)
page_code.pack(fill='both',expand=True)
root.update()
hide_taskbar()
hwnd = win32gui.FindWindow(None,root.title())
set_always_on_top(hwnd)
root.mainloop()