What does # (hash) mean when it doesn't mean Windows key?

ADT*_*DTC 3 autohotkey

Not sure where to search or how to define the keywords. What is the difference between the following?

#IfWinActive, Some Window Title
Run Code Online (Sandbox Code Playgroud)
IfWinActive, Some Window Title
Run Code Online (Sandbox Code Playgroud)

What is the # doing there? I know that in shortcuts, # stands for Windows key, but surely this has to mean something else.

I had been trying to make up a script and the If-else blocks did not work at all. Finally I figured out that it's because I added the # symbol. But I don't find any documentation regarding this kind of use of the # symbol.

bgm*_*der 5

哈希是一个完全不同的命令.如果您在autohotkey文档中搜索索引,您将找到两个IfWinActive和的条目#IfWinActive.

[哈希...]创建上下文相关的热键和热字符串.这些热键根据活动或存在的窗口类型执行不同的操作(或根本不执行).

#IfWin指令是位置的:它们会影响脚本中物理下的所有热键和热字符串.它们也是相互排斥的; 也就是说,只有最新的一个才有效.

#当您将其用作热键分配名称时,仅表示Windows键.在AutoHotkey中,只要#在命令开头看到它,就会与AutoHotkey指令有关.

结论:

如果你只是想要常规if- elsestatemens而不需要影响热键的上下文,那就不要使用了#.