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

https://github.com/psygo/autohotkeys

My autohotkeys
https://github.com/psygo/autohotkeys

autohotkey keyboard shortcut

Last synced: 5 months ago
JSON representation

My autohotkeys

Awesome Lists containing this project

README

          

# AutoHotKey

A nice place to start is [this][tutorial_send].

[tutorial_send]: https://www.autohotkey.com/docs/Tutorial.htm#Send

## 1. First script

### 1.1. Simple Hotkey

```autohotkey
#j::
Send, nuclear launch codes
return
```

The `#` means the Windows key. The `^` would mean the Ctrl key. So, in the example above, we would have Windows + j *typing* the text *nuclear launch test codes*. The `return` on the third line is necessary to avoid syntactical problems in general.

### 1.2. Simple Hotstring

When you press a hotkey combination, after the release, something will happen. The difference to a hotstring is that something will happen after you type the string, which might even get completely transformed into another string.

```autohotkey
::ftw::Free the whales
```

For example, the code code above will transform the hotstring *ftw* into *Free the whales* after you type it.

## 2. Making it work

To make it work, after having AutoHotKey installed in your machine:

1. Create a new file, either with:
- right-click + New + AutoHotKey Script
- Simply create a new text file and have its extension as `.ahk`.
1. Type your code inside it.
1. Double click your `.ahk` file to run it.

Now, everything should be working.