Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to escape # character in AHK?

Tags:

autohotkey

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.

like image 917
Mg Bhadurudeen Avatar asked Oct 19 '25 16:10

Mg Bhadurudeen


1 Answers

  • !, {, }, # 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
    
like image 145
user3419297 Avatar answered Oct 22 '25 05:10

user3419297