Table of contents
Written by Martin Ågren - August 8, 2026
Windows application: AutoHotkey is a desktop application for Windows.
Triggers & actions: Press a keyboard shortcut (hotkey) to trigger action (like pasting predefined text wherever your cursor is).
The Process:
1. AutoHotkey application runs in the background, with your AHK script file loaded, listening for its defined hotkey triggers.
2. User presses a keyboard shortcut (hotkey).
3. The AutoHotkey application detects the hotkey/trigger.
4. Predefined text is pasted wherever your cursor is.
Windows: AutoHotkey is made for the Windows operating system.
Mac: If you use a Mac computer: Check out "Keyboard Maestro" since it is a similar application, but for Mac.
Save time: Prompt faster by typing less, since pressing hotkey can make AutoHotkey paste predefined text into prompt window.
Clear structure: Store hotkeys & text snippets in one place (your AHK file) instead of system prompts in many places.
Improved output quality: You can carefully craft your predefined text in order to improve output quality from LLMs.
Mac/Linux: AutoHotkey only works inside Windows (not Mac or Linux).
Phone: Keyboard shortcuts for AutoHotkey are not available when you use an AI chatbot on your phone.
Conflict: You need to make sure defined hotkeys does not conflict with keyboard shortcuts used by other applications.
Tip: Start every keyboard shortcut (for AutoHotkey) with "---" to minimize the risk of such conflicts.
Uploaded file with Instructions:
In your initial prompt (first prompt in a new chat) you could upload a file with instructions. However, you need to browse for the correct file each time. For me using hotkeys is a faster method.
Custom AI chatbot:
You can store instructions inside a custom AI chatbot. But AutoHotkey is more flexible since instructions in one AHK file can be used for many chatbots.
Python script instead:
You could create your own Python script to perform similar actions. But AutoHotkey is usually simpler to setup.
Visit AutoHotkey.com
Download the application
Install AutoHotkey: Run the EXE installer.
File type: AutoHotkey script files use the AHK file extension.
Inside the file: An AHK file contains hotkey triggers as well as predefined actions (like snippets of text).
One or many files: It is up to you if you only want to use one AHK file, or split automations across several AHK files.
Location of your AHK file: Your AHK file can be stored anywhere on your computer.
Cloud-synced folder: For example, you can store the file in a Dropbox, OneDrive, or similar synced folder.
No extra backup needed: When you store AHK file(s) in a synced cloud folder (e.g. Dropbox folder) no extra backup is needed.
Create a text file: Create a new TXT file anywhere on your computer.
Change file extension: Change the file extension from TXT to AHK.
Add your code: Open AHK file in a text editor (like Notepad) & write/paste your AutoHotkey syntax (see examples below).
Save the file: Save your changes. Your AHK script file is now ready to run.
Run the file: Double-click your AHK file to run the script.
Check for errors: If script contains syntax error, AutoHotkey will show error message & indicate on what line error occurred.
Click "Yes" to start background process:
If there were no syntax errors in the file: Click "Yes" to replace your older version of the script file with your newer version.
Background process needed:
The AutoHotkey application needs to be running in the background, with your AHK script file loaded, listening for hotkey triggers defined in the file.
Startup folder:
Tip: Place a shortcut to your AHK script file in the Windows Startup folder if you want the script to start automatically when you start Windows.
In my examples below, you see placeholders that looks like this: "@@@". You need to replace those with your own text.
:X:---@::SendText(" @@@ ")
; =========================
:X:---@@@::{
A_Clipboard := "
(
@@@
@@@
@@@
)"
ClipWait
Send "^v"
}
; =========================
; =========================
; PROMPT
; =========================
:X:---p::{
A_Clipboard := "
(
RULES FOR YOU TO FOLLOW
Down below are a set of rules for you. Unless otherwise instructed, these are rules that you should follow:
* Em dash = Never use em dash.
* Emojis = Do not include emojis in your output.
* Formatting = Never bold or italicize words. Also, never use markdown headings, like "###".
* Math = When asked to solve a mathematical query, always use Python to calculate.
* Online search = If you searched online: Start your output with "I searched online. " and then give me an extremely short answer.
* Placeholders = If I write "@@@", these are placeholders.
* Questions = Never ask me follow up questions like "Do you want me to...".
* Quotes = If possible: instead of using single quotes: use double quotes.
* Reference text = If you use a reference text that you base your statements on: Quote parts of the text so I can verify accuracy.
* Short answers = The most important rule: Output short answers! Exception: If I ask you to translate several sentences, obviously you should not output only one sentence.
* Solution - List = When you suggest a solution for me: Write me a list, one step per bullet point, easy to follow instructions.
* Solution - One at a time = When presented with a problem: Focus on one solution at a time, to not overwhelm me with instructions.
* Solution - Simple = When suggesting a solution: Prioritize simple, fast, effective, easy to implement solution. Tricky fixes are plan B.
* Telephone format = Write phone numbers in this format: "+46...". Phone numbers should be clickable (so I can click it and call).
Say "OK" now.
)"
ClipWait
Send "^v"
}
; =========================
:X:---ai::SendText("Let us talk about: Artificial Intelligence. ")
:X:---apa::SendText("Let's stick to APA 7 rules regarding formatting and referencing. ")
:X:---az::SendText("Format your output in alphabetical order, starting from the letter A etc. ")
:X:---calc::SendText("Use Python to calculate. ")
:X:---check::SendText("Check the output you just wrote to me. Is there something there that could be improved? Explain what and why. ")
:X:---code::SendText("Show me code, written in code box. ")
:X:---cot::SendText("Use Chain-of-Thought (CoT): Reason step-by-step to increase output quality. Finish your output with final conclusion. ")
:X:---emo::SendText("Give me several emojis, stacked up horizontally, for what I describe, without explaining or commenting your output. ")
:X:---eng::SendText("Translate to English (but do NOT output citation marks): ")
:X:---grammar::SendText("Check grammar. ")
:X:---lang::SendText("Check my language. Is my text well written? Do the sentences sound natural? Is the text well written, etc? ")
:X:---link::SendText("Give me a clickable link. ")
:X:---ok::SendText("Just answer 'OK' now. ")
:X:---phrasing::SendText("Check my phrasing. ")
:X:---q::SendText("Quote, word for word, from the source from which you draw information. ")
:X:---s::SendText("Make a short summary of the text you just wrote to me. Note: In this conversation, only output short answers! ")
:X:---short::SendText("In this conversation, only output short answers! Best it often maximum one short-length sentence! ")
:X:---show::SendText("Just show me what it should look like! Do NOT explain this time! ")
:X:---show2::SendText("Show me the improved text! ")
:X:---spell::SendText("Perform a spell check on text. ")
:X:---swe::SendText("Translate to Swedish (but do NOT output citation marks): ")
:X:---table::SendText("Show me a table in your output. ")
:X:---tel2::SendText("Phone numbers should be written in this format: '+46...' and they should be clickable (so I can click and call). ")
:X:---tell::SendText("Tell me what to change! Do not reprint or change text we are working on. Instruct me instead. ")
:X:---test::SendText("Test succeeded! The AutoHotkey application seems to be working fine! 🙂 ")
:X:---title::SendText("Format heading to Title Case. ")
:X:---ul::SendText("Use an unordered list in your output. ")
:X:---uni::SendText("Show me Unicode symbols that represent what I am describing. ")
:X:---url::SendText("Show me the URL web address. ")
:X:---www::SendText("Search multiple reliable websites for high-quality info. Include a source link in your answer. ")
:X:---x"::SendText("Do NOT print citation marks in your output. ")
:X:---xb::SendText("Never bold text! ")
:X:---xcode::SendText("Do NOT show me code. ")
:X:---xwww::SendText("Do NOT search online before your next output. ")