Keyboard Script V2 Site
After months of daily driving my first custom build (the "Script v1"), I found myself wanting a more compact form factor with a sharper sound profile. Thus, the Script v2 project began.
Keyboard Script v2 is available for download starting today.
We can’t wait to see what you automate next. Happy scripting!
Script:
::btw::by the way
::addr::123 Main Street, Anytown, USA
Type btw followed by space or enter → auto-replaced.
(If you want, I can generate the JSON/YAML schema, example config file, or a prototype macro-engine design next.) keyboard script v2
The keyword "keyboard script v2" primarily refers to the latest major version of AutoHotkey (v2), a free and open-source custom scripting language for Microsoft Windows designed for automating repetitive tasks and creating complex keyboard shortcuts. What is Keyboard Script v2?
AutoHotkey v2 (AHK v2) is the successor to the long-standing version 1.1. It represents a significant overhaul of the language, moving toward a more consistent, expression-based syntax that is easier for modern developers to use. While version 1.1 is now deprecated, version 2 is the current standard for users looking to:
Simulate Keystrokes & Mouse Clicks: Automate actions that are otherwise difficult or tedious to perform manually.
Create Hotkeys: Remap keys (e.g., changing Win + Tab to the legacy Alt + Tab menu) or disable accidental presses like the Insert key.
Expand Text (Hotstrings): Automatically replace short abbreviations with full sentences or the current date. After months of daily driving my first custom
Automate Applications: Launch programs, search the Start Menu, or manage window transparency and positions. Core Features of v2 Scripts
Version 2 introduces several "game-changing" improvements over its predecessor:
Expression-Based Syntax: Unlike v1, which mixed literal text and expressions, v2 uses consistent expression syntax for all function calls and assignments.
Enhanced Error Handling: The script engine now provides clearer error messages, making it easier for beginners to troubleshoot broken code.
Modular Reusability: Scripts can be more easily organized into functions and objects, allowing for more professional software development practices. We can’t wait to see what you automate next
Device Independence: Advanced scripts can even distinguish between inputs from different connected keyboards, allowing you to use a secondary numpad as a dedicated macro pad. Getting Started: Your First v2 Script
To begin using "keyboard script v2," you must first download the installer from the official AutoHotkey website.
Installation: Run the AutoHotkey_*_setup.exe and select the v2 option.
Create a File: Right-click your desktop, select New > AutoHotkey Script, and name it (e.g., MyScript.ahk).
Edit the Code: Right-click the file and select Edit Script. A basic v2 "Hello World" hotkey looks like this: autohotkey ^j:: Send "My First Script" Use code with caution.
This script types "My First Script" whenever you press Ctrl + J.
Run the Script: Double-click the .ahk file. A green "H" icon will appear in your system tray, indicating it is active. Popular Use Cases for v2