AHK_File_Create
Create AutoHotkey v2 scripts with automatic directory creation, overwrite protection, and preview options for safe file management.
Instructions
Create a new AutoHotkey v2 script on disk with full path interception support.
• Validates .ahk extension (case-insensitive) • Automatically creates parent directories (configurable) • Prevents accidental overwrite unless explicitly allowed • Supports dry-run previews and active file management
📎 Active File: Not set. Use AHK_File_Active to select a target.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute or relative path to the new AutoHotkey file | |
| content | No | Initial content to write into the file | |
| overwrite | No | Allow overwriting an existing file | |
| createDirectories | No | Create parent directories if they are missing | |
| dryRun | No | Preview the operation without writing to disk | |
| setActive | No | Set the newly created file as the active file |