https://github.com/themaster1127/autohotkey-script-formatter
This AutoHotKey script allows you to quickly format your AutoHotKey code and copy it to the clipboard. It provides a simple graphical user interface (GUI) for pasting AutoHotKey code, formatting it, and copying the formatted code to the clipboard. Additionally, it supports keyboard shortcuts for a more seamless experience.
https://github.com/themaster1127/autohotkey-script-formatter
ahk autohotkey automation formatter
Last synced: 4 months ago
JSON representation
This AutoHotKey script allows you to quickly format your AutoHotKey code and copy it to the clipboard. It provides a simple graphical user interface (GUI) for pasting AutoHotKey code, formatting it, and copying the formatted code to the clipboard. Additionally, it supports keyboard shortcuts for a more seamless experience.
- Host: GitHub
- URL: https://github.com/themaster1127/autohotkey-script-formatter
- Owner: TheMaster1127
- License: mit
- Created: 2023-11-13T08:48:43.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-13T11:11:49.000Z (over 2 years ago)
- Last Synced: 2025-01-26T00:34:04.400Z (over 1 year ago)
- Topics: ahk, autohotkey, automation, formatter
- Language: AutoHotkey
- Homepage:
- Size: 26.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AutoHotKey Script Formatter
## Overview
This AutoHotKey script allows you to quickly format your AutoHotKey code and copy it to the clipboard. It provides a simple graphical user interface (GUI) for pasting AutoHotKey code, formatting it, and copying the formatted code to the clipboard. Additionally, it supports keyboard shortcuts for a more seamless experience.
### Note this only works for AHK v1.1.x NOT v2
## How to Use
Run `Get formated code.ahk`
### Using the GUI
1. **Paste AutoHotKey Code for Formatting:**
- Use (Ctrl+V) to paste your AutoHotKey code into the provided text area.
2. **Format Code:**
- Click the "Format Code" button or use the shortcut (Alt+Ctrl+Shift+F).
- The formatted AutoHotKey code will be displayed in the adjacent text area.
3. **Copy to Clipboard:**
- Click the "Copy to Clipboard" button or use the shortcut (Alt+Ctrl+Shift+C).
- If the AutoHotKey code is already formatted and not in the clipboard, it will be copied.
4. **Exiting the Application:**
- Click the close button on the GUI or use the shortcut (Alt+L) to exit the application.
### Using Keyboard Shortcuts
- **Format Code:**
- If the GUI is open, press (Alt+Ctrl+Shift+F) to format the AutoHotKey code immediately.
- **Copy to Clipboard:**
- If the GUI is open, press (Alt+Ctrl+Shift+C) to copy the formatted AutoHotKey code to the clipboard.
- **Exiting the Application:**
- If the GUI is open, press (Alt+L) to exit the application.
### Advanced Tip
- If the GUI is already open, you can select the AutoHotKey code with (Ctrl+A) and then immediately press (Alt+Ctrl+Shift+F) to format it without interacting with the GUI directly.
## Note
- The script is specifically designed for formatting AutoHotKey scripts.
- Ensure that the formatted AutoHotKey code is already in the clipboard before attempting to copy it again.
## Dependencies
- AutoHotKey v1.1.x