Skip to content

Latest commit

Β 

History

History
103 lines (72 loc) Β· 2.36 KB

File metadata and controls

103 lines (72 loc) Β· 2.36 KB

πŸͺŸ Windows MessageBox Generator

A fully featured GUI MessageBox builder for Windows built with Tkinter + ctypes.
Design native Win32 message boxes, preview them, export configs, and generate .bat scripts automatically.


✨ Features

  • πŸ–₯️ Native Windows MessageBox (via ctypes)
  • 🎨 Multiple UI themes (Light, Dark, Neon, Pink, Anime Night)
  • πŸ–ΌοΈ Wallpaper system (Anime Night mode)
  • 🧍 Random mascot support (assets/mascot_*.png)
  • πŸ“œ History logging
  • πŸ’Ύ Export / Import JSON configs
  • πŸ“‹ Copy ready-to-use Python snippet
  • πŸ“¦ Generate full .bat script (PowerShell-backed)
  • πŸ” Optional TopMost flag
  • 🧠 Preset message templates

πŸ“ Project Structure

Windows_MessageBox_Generator/
β”œβ”€β”€ assets/
β”‚   └── backgrounds/
β”œβ”€β”€ configs/
β”œβ”€β”€ main.py
β”œβ”€β”€ ui.py
β”œβ”€β”€ themes.py
β”œβ”€β”€ winbox.py
└── CREDITS.txt

πŸš€ How To Run

Requirements

  • Python 3.10+
  • Windows OS (required for native MessageBox)
  • Pillow

Install dependencies:

pip install pillow

Run:

python main.py

πŸ“¦ Batch Script Generator

Generates a fully self-contained .bat file using PowerShell +
System.Windows.Forms.MessageBox.

  • Proper newline handling
  • Proper escaping for CMD
  • Returns correct exit codes
  • Supports TopMost owner window

🎨 Themes

Included themes:

  • Light
  • Dark
  • Neon
  • Pink
  • Anime Night (with dynamic wallpapers)

Anime Night loads wallpapers from:

assets/backgrounds/anime_bg_*.png

πŸ’Ύ JSON Config Export Example

{
  "title": "Access denied",
  "message": "You do not have permission to perform this action.",
  "buttons": "OK",
  "icon": "Error (X)",
  "topmost": false,
  "theme": "Dark",
  "preset": "Permission denied"
}

πŸ§‘β€πŸ’» Author

Built by Kieran