找回密码
 加入
搜索
查看: 2800|回复: 4

[AU3基础] 编译出错,如何解决?

[复制链接]
发表于 2014-7-30 09:25:16 | 显示全部楼层 |阅读模式
运行环境:win7 64位,管理员权限
FileInstall (@DesktopDir&"\LOGO.JPG", @TempDir&"\KLU3K.JPG",1)

复制代码 高亮切换

按F5运行正常,但按F7编译时出现:
---------------------------
Aut2Exe Error
---------------------------
Invalid FileInstall() function:
---------------------------
确定   
---------------------------
论坛上有人遇到过样的问题,后来解决了,但没有将解决方案发出来,郁闷 ,请高手赐教,在线等
 楼主| 发表于 2014-7-30 11:39:46 | 显示全部楼层
没人吗?急啊
发表于 2014-7-30 13:01:11 | 显示全部楼层
FileInstall 第一个参数不能使用变量,只能用相对或绝对路径
 楼主| 发表于 2014-7-30 13:17:09 | 显示全部楼层
Local $bFileInstall = False ; Change to True and ammend the file paths accordingly.

; This will install the file C:\Test.bmp to the script location.
If $bFileInstall Then FileInstall("C:\Test.bmp", @ScriptDir & "\Test.bmp")

内容如上,请帮看下怎么修改?这是BUG吗还是我在安装的过程中没有注意什么细节?
发表于 2014-7-30 13:44:55 | 显示全部楼层
这样是对的
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-4-20 18:20 , Processed in 0.080176 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表