Overview
This prompt guides programmers in replicating button styles and behaviors between AutoHotkey scripts. Developers working on GUI design will benefit from this structured approach.
Prompt Overview
Purpose: This task aims to replicate button styles and behaviors from one AutoHotkey script to another.
Audience: The intended audience includes programmers familiar with AutoHotkey and GUI design principles.
Distinctive Feature: The project emphasizes consistent styling and functionality across all buttons in the modified script.
Outcome: The final script will feature 20 buttons with uniform styles and proper window dimensions for usability.
Quick Specs
- Media: Text
- Use case: Generation
- Industry: Content & Media Creation, Productivity & Workflow
- Techniques: Decomposition, Plan-Then-Solve, Structured Output
- Models: Claude 3.5 Sonnet, Gemini 2.0 Flash, GPT-4o, Llama 3.1 70B
- Estimated time: 5-10 minutes
- Skill level: Beginner
Variables to Fill
- [The detailed prompt as shown above] – The Detailed Prompt As Shown Above
- ["AutoHotkey","Button Style","GUI","Skinning"] – "autohotkey","button Style","gui","skinning"
Example Variables Block
- [The detailed prompt as shown above]: Example The Detailed Prompt As Shown Above
The Prompt
{“prompt”:”You will be given the content of two AutoHotkey script files: nn- “Disk Defragmenter.ahk” n- “Sunday-Holy-Mass-Design-System-Helper.ahk” nnYour task is to:nn1. **Analyze the button style** used in “Disk Defragmenter.ahk”. This includes:n – Visual appearancen – Fontsn – Colorsn – Bordersn – Any additional styling attributesn – Extract the details defining the button style.nn2. **Replace the existing button styles** in “Sunday-Holy-Mass-Design-System-Helper.ahk” using the extracted button style from step 1. Ensure:n – All buttons adopt the style from “Disk Defragmenter.ahk”.n – Continue using the “Inter” font as the primary font for all buttons.nn3. **Ensure the new script** of “Sunday-Holy-Mass-Design-System-Helper.ahk” contains a total of 20 buttons. To achieve this:n – Add a new row of 4 buttons below the current GUI buttons.nn4. **Exhibit the same press behavior** as in “Disk Defragmenter.ahk” for the new buttons.nn5. **Resize the window dimensions** appropriately to fit the increased number of buttons without clipping or overlap.nnFocus on accurately replicating the button styling and behavior from “Disk Defragmenter.ahk”, applying it consistently across all buttons in “Sunday-Holy-Mass-Design-System-Helper.ahk”, including the new ones.nn# Stepsnn- Parse “Disk Defragmenter.ahk” to extract button style attributes and press behavior.n- Review the existing GUI layout and buttons in “Sunday-Holy-Mass-Design-System-Helper.ahk”.n- Define the button style in “Sunday-Holy-Mass-Design-System-Helper.ahk” to match the extracted style from “Disk Defragmenter.ahk”, keeping the font as Inter.n- Add a fourth row of 4 new buttons under the existing buttons to total 20 buttons.n- Implement the button press behavior from “Disk Defragmenter.ahk” to all buttons.n- Adjust the GUI window size dynamically to accommodate all buttons.nn# Output FormatnnProvide the complete modified AutoHotkey script content for “Sunday-Holy-Mass-Design-System-Helper.ahk” that meets all the specified criteria.nnThe script should be ready to run without errors and demonstrate the updated button styles, behavior, and the new buttons arranged properly in the GUI.nn# Notesnn- Maintain the Inter font as the main font used in buttons.n- The button press behavior includes any visual or functional effects when a button is clicked.n- The window resize should prevent any buttons from being clipped or overlapping; ensure neat alignment and spacing.nn# Response Formatsnn## promptnn{“prompt”:”[The detailed prompt as shown above]”,”name”:”AHK Button Style Refactor”,”short_description”:”Replicate button style and behavior from one AHK script into another and add new buttons.”,”icon”:”CodeBracketIcon”,”category”:”programming”,”tags”:[“AutoHotkey”,”Button Style”,”GUI”,”Skinning”],”should_index”:true}”}
Screenshot Examples
How to Use This Prompt
- [button_style]: Attributes defining button appearance.
- [font]: Primary font used for buttons.
- [colors]: Color scheme for button design.
- [borders]: Styling for button edges and outlines.
- [press_behavior]: Actions triggered on button clicks.
- [window_dimensions]: Size of the GUI window.
- [button_count]: Total number of buttons in GUI.
- [layout]: Arrangement of buttons in the interface.
Tips for Best Results
- Extract Button Style: Analyze the visual attributes of buttons in the first script to gather details like fonts, colors, and borders.
- Update Button Styles: Apply the extracted styles to all buttons in the second script while maintaining the “Inter” font.
- Add New Buttons: Increase the total button count to 20 by adding a new row of 4 buttons beneath the existing ones.
- Adjust GUI Layout: Resize the window to ensure all buttons fit properly without overlap or clipping.
FAQ
- What is AutoHotkey used for?
AutoHotkey is a scripting language for automating tasks in Windows, including keyboard shortcuts and GUI creation. - How do you change button styles in AutoHotkey?
You can change button styles by modifying attributes like font, color, and borders in the script. - What font should be used for buttons?
The 'Inter' font should be used as the primary font for all buttons in the script. - How many buttons should the final GUI have?
The final GUI should contain a total of 20 buttons, including newly added ones.
Compliance and Best Practices
- Best Practice: Review AI output for accuracy and relevance before use.
- Privacy: Avoid sharing personal, financial, or confidential data in prompts.
- Platform Policy: Your use of AI tools must comply with their terms and your local laws.
Revision History
- Version 1.0 (February 2026): Initial release.


