Mg Bhadurudeen
Mg Bhadurudeen

Reputation: 1434

How to escape # character in AHK?

I am trying to output some text with hot string. All work well except when using the # character. It produces unexpected results.

:*:.ef::C# Entity framework{Space}

I tried to escape it with ` char, with no success.

Upvotes: 4

Views: 2861

Answers (1)

Relax
Relax

Reputation: 10568

  • !, {, }, # etc, are special keys that must be enclosed in braces to be sent:

    :*:.ef::C{#} Entity framework{Space}
    

or

  • If you have AHK v1.1.27+ use the T option for the hotstring:

    :*T:.ef::C# Entity framework ` ; to send a space at the end add an ` char after it
    

Upvotes: 6

Related Questions