找回密码
 加入
搜索
查看: 1949|回复: 2

[AU3基础] autoit代码运行报错Illegal text at the end of statement

[复制链接]
发表于 2013-1-17 22:36:18 | 显示全部楼层 |阅读模式
本帖最后由 aosaopm 于 2013-1-17 22:39 编辑

"Illegal text at the end of statement (one statement per line).:"

不知道是问题出在哪里,光看代码找不出啥问题,下面是程序跑到出错的地方,请各位高手帮忙看看是啥问题,多谢了

Run(@ComSpec & " /c " & 'GraphicsManager -page=28 -PerfCounterConfig='& $im_AGM_Config_File, "C:\Program Files\Graphics Manager", @SW_HIDE)
                If WinWait("Performance Counter Monitor","",5) <> 0 Then
                        If FileExists($GM_Log_Dir)=0 Then
                                DirCreate($GM_Log_Dir)
                        EndIf
                        SplashTextOn("Warning", "WRONG GM ini file found" & @CRLF & @CRLF & "Test will continue without GM", 350, 120, @DesktopWidth - 360, @DesktopHeight - 192, 6, "Comic Sans MS", 9, 400)
                        Sleep(1000)
                        _FileWriteLog($GM_Log, "Fail to load .ini config file: mismatch!")
                        Sleep(1000)
.......
第一行的Run函数会不会报这个错呢? Graphics Manager是一个程序,我所调用的,-page和-PerfCounterConfig为其后缀参数
 楼主| 发表于 2013-1-18 10:26:18 | 显示全部楼层
顶一下,等高手来做解答
 楼主| 发表于 2013-1-18 10:46:34 | 显示全部楼层
找到问题了,多了一个括号而已。。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-20 03:25 , Processed in 0.079824 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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