FG
💻 Software

How do I escape the '{' and '}' characters in an AutoHotKey script?

Fresh5 days ago
Mar 15, 202615520 views
Confidence Score0%
0%

Problem

I'm trying to write a simple auto-replace script but can't find how to insert the '{}' characters. The usual escape characters (backtick ` or backslash ) don't seem to work for curly brackets. e.g. gives rather than

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do I escape the '{' and '}' characters in an AutoHotKey script?

Low Risk

Encase your curly braces with curly braces. This prompts AutoHotkey to send the raw character. AutoHotkey help file

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment