That script for Ren is so cool ;-; may I ask how you made it?
Hello, I'm using a translator! I'd be happy to help o( ̄▽ ̄)ブ
If you need a ready-to-use download, please check out this free item; I just listed it.
如果你只是需要一个简单的软件玩一下,你可以直接点击这个免费的进行解压下载!
However, it's an EXE file, so it might only work on Windows systems.
If you'd like to write your own, I'm also happy to share too!
Expand
You'll need to download Python if you haven't tried programming before!(首先你需要下载python的环境)Chinese Version Tutorial (中文版本的教程)English Version Tutorial
Create a new txt folder,Rename the entire file to ren.py创建一个新的txt文件,将它改成ren.py的名字
3. Open it with Notepad,Enter the following content and save.(用记事本打开,输入下面的内容,保存)
start_window.destroy() # 关闭开始按钮的窗口
# Create 100 pop-ups, one every 0.5 seconds.
root.after(300 * i, create_random_window)
def create_random_window():
close_button = tk.Toplevel(root)
# 可以修改弹窗的标题的名字 You can change the name of the pop-up window.
close_button.title("REN_EXE")
close_button.geometry("300x100")
close_button.resizable(False, False)
screen_width = root.winfo_screenwidth()
screen_height = root.winfo_screenheight()
#Random position (ensure the window is completely within the screen)
x = random.randint(0, max(0, screen_width - 300))
y = random.randint(0, max(0, screen_height - 100))
close_button.geometry(f"300x100+{x}+{y}")
# random_bg = get_random_color()
# close_button.configure(bg=random_bg)
for win_info in app.windows:
win_info['window'].destroy()
#这里可以修改成你想要看到任何内容,或者你可以在这里写个随机弹出的列表让他随机弹出对应的话,如果需要,我可以有时间写一下新的scrpit
#This can be changed to whatever content you want to see.
#Alternatively, you could write a list here that pops up randomly, and it would randomly display the corresponding options. If needed, I can write a new script when I have time.
label = tk.Label(close_button, text="I love you, angel^^")
label.pack(pady=10, fill='x', padx=10) # 让Label填充宽度
#这里是结束恐怖的黑客爱意弹窗的按钮,你可以修改对应的字体
#This is the button to end the terrifying hacker-themed love pop-up. You can also change the font.
tk.Button(close_button, text=" 我也爱你 ", command=close_all, width=10).pack(pady=5)
if hasattr(app, 'windows'):
app.windows.append({'window': close_button})
start_window = tk.Toplevel(root)
start_window.geometry("200x100")
start_window.resizable(False, False)
screen_width = root.winfo_screenwidth()
screen_height = root.winfo_screenheight()
x = (screen_width - 200) // 2
y = (screen_height - 100) // 2
start_window.geometry(f"200x100+{x}+{y}")
start_button = tk.Button(start_window, text="开始", command=start_program, width=15, height=2)
start_button.pack(expand=True)
if __name__ == "__main__":
input("程序执行完毕,按回车键退出...")
4. At the beginning of the folder where you have this file, type cmd and press Enter.(在你这个文件存放的文件夹的开头,输入cmd,回车)
d o n e *★,°*:.☆( ̄▽ ̄)/$:*.°★* 。