An open API service indexing awesome lists of open source software.

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.

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