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

pelms

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.

:co:drf::$(document).ready(function(){space}`{`n`});{Left}{Left}{Left}{left}

gives

$(document).ready(function() 
);

rather than

$(document).ready(function() {
});
snitzr

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

{{}

{}}

AutoHotkey help file

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How do I properly escape weird characters in a bash script?

From Java

How do I escape characters in GitHub code search?

From Dev

How do I escape these characters for a DistinguishedName in c#

From Dev

How do I ignore escape characters in command line arguments?

From Dev

How do I escape these characters for a DistinguishedName in c#

From Dev

How do I escape characters in href of anchor tag

From Dev

How do I create a snippet that inserts \{\} using escape characters?

From Dev

How do I properly escape inline Javascript in a <script> tag?

From Dev

How do I properly escape '=' in my string replacement script?

From Dev

How to ignore escape characters in bash script?

From Dev

How do I place the cursor at a certain point after sending an AutoHotkey script?

From Dev

Mermaid CLI - how do you escape characters?

From Dev

How do I create a standalone exe with AutoHotkey?

From Dev

How do I delay send commands in AutoHotKey?

From Dev

How do I create a standalone exe with AutoHotkey?

From Dev

How do I send multilined text in Autohotkey?

From Dev

How do I handle special characters like a bracket in a bash script?

From Dev

How do I escape special characters when using ServiceStack OrmLite with SQLite?

From Dev

How do I keep all escape characters in a SQL string for querying a POSTGRES DB using R?

From Dev

How do I escape special characters when using ServiceStack OrmLite with SQLite?

From Dev

How do I properly create a regex for String.matches() with escape characters?

From Dev

How to use less in a script without getting ESC escape characters?

From Java

What characters do I need to escape in XML documents?

From Dev

escape characters in variables in a batch script

From Dev

escape characters in variables in a batch script

From Dev

How do I escape an escape character with ANTLR 4?

From Dev

How do you escape special characters in SQL Where clause?

From Dev

How do I escape a '@' in a Dapper query?

From Dev

How do I escape a string for HTML?

Related Related

  1. 1

    How do I properly escape weird characters in a bash script?

  2. 2

    How do I escape characters in GitHub code search?

  3. 3

    How do I escape these characters for a DistinguishedName in c#

  4. 4

    How do I ignore escape characters in command line arguments?

  5. 5

    How do I escape these characters for a DistinguishedName in c#

  6. 6

    How do I escape characters in href of anchor tag

  7. 7

    How do I create a snippet that inserts \{\} using escape characters?

  8. 8

    How do I properly escape inline Javascript in a <script> tag?

  9. 9

    How do I properly escape '=' in my string replacement script?

  10. 10

    How to ignore escape characters in bash script?

  11. 11

    How do I place the cursor at a certain point after sending an AutoHotkey script?

  12. 12

    Mermaid CLI - how do you escape characters?

  13. 13

    How do I create a standalone exe with AutoHotkey?

  14. 14

    How do I delay send commands in AutoHotKey?

  15. 15

    How do I create a standalone exe with AutoHotkey?

  16. 16

    How do I send multilined text in Autohotkey?

  17. 17

    How do I handle special characters like a bracket in a bash script?

  18. 18

    How do I escape special characters when using ServiceStack OrmLite with SQLite?

  19. 19

    How do I keep all escape characters in a SQL string for querying a POSTGRES DB using R?

  20. 20

    How do I escape special characters when using ServiceStack OrmLite with SQLite?

  21. 21

    How do I properly create a regex for String.matches() with escape characters?

  22. 22

    How to use less in a script without getting ESC escape characters?

  23. 23

    What characters do I need to escape in XML documents?

  24. 24

    escape characters in variables in a batch script

  25. 25

    escape characters in variables in a batch script

  26. 26

    How do I escape an escape character with ANTLR 4?

  27. 27

    How do you escape special characters in SQL Where clause?

  28. 28

    How do I escape a '@' in a Dapper query?

  29. 29

    How do I escape a string for HTML?

HotTag

Archive