如何通过热字串发送 guid?

How do I send a guid via hotstring?

我正在使用

:*:\guid::
 send_guid() {
    TypeLib := ComObjCreate("Scriptlet.TypeLib")
    NewGUID := TypeLib.Guid
    send, %NewGUID%
}

我知道生成了 guid,因为我可以放入 MsgBox、%NewGUID% 并显示 Guid。

像这样使用{text}模式:

send, {text}%NewGUID%

因为GUID以{开头,在Send命令中有特殊含义。

https://www.autohotkey.com/docs/commands/Send.htm#Text