About Keysharp

Keysharp is a cross-platform C# implementation of the AutoHotkey v2 language. It compiles scripts to .NET assemblies; see How a Script Executes.

Compatibility target: AutoHotkey v2.1-alpha.33.

Project Status

The project began as a fork and continuation of the abandoned IronAHK project, itself a C# reimplementation of AutoHotkey. It is in alpha testing and is not recommended for production systems.

See Platform Support for shared backend and permission requirements, How to Install Keysharp for setup, and Changes from AutoHotkey to Keysharp for behavior which differs from AutoHotkey.

The 0.0.0.17 changelog lists new features, fixes and migration notes for scripts written for earlier releases.

Script Files

Keysharp runs .ahk and .ks source scripts. It also runs .cks compiled assemblies produced by Keysharp. AutoHotkey-compatible names such as A_AhkVersion and #Requires AutoHotkey are retained.

How to Read These Docs

This reference is derived from the AutoHotkey v2 documentation. Platform qualifications are stated at the parameter, return value, error, remark or example they affect; general platform remarks are under Windows, Linux or macOS headings, and a note near the syntax marks an API which is unavailable on a supported platform. The absence of a platform qualification does not prove support on every platform.

Independence and Provenance

Keysharp is an independent project. It is not affiliated with, sponsored by, or endorsed by the AutoHotkey project. KeysharpDocs is derived from AutoHotkeyDocs with permission. See Licensing and Documentation Provenance for details.