【发布时间】:2020-02-27 10:35:47
【问题描述】:
我创建了一个 AutoHotKey 可执行文件来打开启用宏的 excel。我只想将 exe 文件(而不是 excel 文件)分享给我的同行。有可能吗?
【问题讨论】:
标签: excel vba exe autohotkey
我创建了一个 AutoHotKey 可执行文件来打开启用宏的 excel。我只想将 exe 文件(而不是 excel 文件)分享给我的同行。有可能吗?
【问题讨论】:
标签: excel vba exe autohotkey
当然。这太容易了。请参考:
文件安装: 在脚本的编译版本中包含指定文件并将其写入 Dest。
FileInstall, Source, Dest [, Overwrite]
https://www.autohotkey.com/docs/commands/FileInstall.htm
看看这个例子:
FileInstall, C:\My Documents\My File.txt, %A_ProgramFiles%\My Application\Readme.txt, 1
或
FileInstall, Make Dragon Commands - Copy.png, %Me%.png, 0
Gui, Add, Picture, , %Me%.png ; add a graphic
FileDelete, %Me%.png
将图形添加到 gui。
【讨论】: