AU3源码,出现错误提示
本帖最后由 wlsj 于 2009-8-6 23:33 编辑在网上下载的AU3源码,运行时总是提示类是如下图的错误提示:
用来声明变量的命令有哪些,我是个菜鸟,不会AU3的编程,有没有解决的办法,哪位大虾指点一下 晕,我真是领教了,你这是第四个相同内容的帖子了,而且前面几个都已经解释清楚了。。。
http://www.autoitx.com/forum.php?mod=viewthread&tid=8866&page=1&fromuid=7644923#pid75097
http://www.autoitx.com/forum.php?mod=viewthread&tid=8864&page=1&fromuid=7644923#pid75061 本帖最后由 wlsj 于 2009-8-6 23:42 编辑
我在源码开头声明了一个变量,例如:#include <StaticConstants.au3>,可是在同一源码中又不断出现类似提示,应该怎么解决呢、 看它的错误提示。
如果方便就把你的代码发上来,别人也好一次就帮你弄清楚~ 从网上下载的AU3源码,运行时总是出现些错误提示,哪位大虾帮着修正一下
#include <StaticConstants.au3>
#Region ;**** 参数创建于 AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_icon=D:\图标\VISTA的DLL图标.DLL_17.ico
#AutoIt3Wrapper_UseAnsi=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <GUIConstants.au3>
#NoTrayIcon
#Region ### START Koda GUI section ### Form=d:\personal\my documents\form1.kxf\form1.kxf
$Form1_1 = GUICreate("红苹果工作室会员参与封装工具", 425, 559, -1, -1)
$Pic1 = GUICtrlCreatePic("logo.jpg", 0, 0, 423, 100, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Tab1 = GUICtrlCreateTab(8, 112, 410, 409)
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)
$TabSheet1 = GUICtrlCreateTabItem("主要封装选项")
$Group1 = GUICtrlCreateGroup("主要的封装选项", 16, 136, 385, 377)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF0000)
$Group3 = GUICtrlCreateGroup("主封装选项", 24, 160, 369, 145)
$Checkbox1 = GUICtrlCreateCheckbox("显示Sysprep窗口,手动选择封装选项", 56, 192, 313, 17)
$Checkbox2 = GUICtrlCreateCheckbox("更改Hal(电源模式)为Standard PC", 57, 225, 281, 17)
$Checkbox3 = GUICtrlCreateCheckbox("更改IDE控制器为标准IDE控制器", 57, 257, 265, 17)
$Checkbox4 = GUICtrlCreateCheckbox("自动卸载所有设备驱动", 57, 281, 233, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group4 = GUICtrlCreateGroup("附加选项", 24, 325, 369, 177)
$Checkbox5 = GUICtrlCreateCheckbox("去除个人设置对话框", 32, 349, 169, 17)
$Checkbox6 = GUICtrlCreateCheckbox("集成DllcacheManager", 33, 382, 177, 17)
$Checkbox7 = GUICtrlCreateCheckbox("删除Media Player快捷方式", 33, 414, 185, 17)
$Checkbox8 = GUICtrlCreateCheckbox("桌面上显示宽带连接", 33, 438, 177, 17)
$Checkbox9 = GUICtrlCreateCheckbox("集成驱动程序验证", 209, 385, 169, 17)
$Checkbox10 = GUICtrlCreateCheckbox("不提示搜索驱动", 208, 352, 177, 17)
$Checkbox11 = GUICtrlCreateCheckbox("清理系统临时文件", 209, 417, 185, 17)
$Checkbox12 = GUICtrlCreateCheckbox("清理系统垃圾文件", 209, 441, 177, 17)
$Input1 = GUICtrlCreateInput("请选择安装时的分辨率", 40, 472, 137, 24)
$Input2 = GUICtrlCreateInput("请输入注册表优化", 219, 472, 121, 24)
$Button20 = GUICtrlCreateButton("...", 344, 472, 41, 17, 0)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$TabSheet2 = GUICtrlCreateTabItem("驱动选择配制")
$Group2 = GUICtrlCreateGroup("配制文件的写入", 24, 176, 377, 321)
$Label1 = GUICtrlCreateLabel("驱动解压内部LOGO的路径", 32, 432, 142, 17)
$Input3 = GUICtrlCreateInput("Input3", 192, 428, 137, 21)
$Button6 = GUICtrlCreateButton("...", 336, 432, 49, 17, 0)
$Group5 = GUICtrlCreateGroup("台式电脑驱动", 32, 200, 353, 97)
$Checkbox14 = GUICtrlCreateCheckbox("主板芯片组", 40, 225, 89, 17)
$Checkbox15 = GUICtrlCreateCheckbox("声卡驱动", 41, 261, 81, 17)
$Checkbox16 = GUICtrlCreateCheckbox("显卡驱动", 163, 225, 89, 17)
$Checkbox17 = GUICtrlCreateCheckbox("网卡驱动", 164, 261, 81, 17)
$Checkbox18 = GUICtrlCreateCheckbox("集成显卡驱动", 285, 225, 89, 17)
$Checkbox19 = GUICtrlCreateCheckbox("摄像头驱动", 286, 261, 81, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group6 = GUICtrlCreateGroup("笔记本电脑驱动", 32, 312, 361, 57)
$Checkbox20 = GUICtrlCreateCheckbox("调制解调器", 291, 337, 81, 17)
$Checkbox21 = GUICtrlCreateCheckbox("无线网卡", 169, 337, 81, 17)
$Checkbox22 = GUICtrlCreateCheckbox("设备驱动", 46, 337, 81, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button7 = GUICtrlCreateButton("...", 336, 401, 49, 17, 0)
$Input4 = GUICtrlCreateInput("Input3", 192, 397, 137, 21)
$Label2 = GUICtrlCreateLabel("驱动解压程序时背景图片", 32, 401, 136, 17)
$Button8 = GUICtrlCreateButton("...", 338, 463, 49, 17, 0)
$Input5 = GUICtrlCreateInput("Input3", 194, 459, 137, 21)
$Label3 = GUICtrlCreateLabel("请输入驱动文件解压的路径", 34, 463, 148, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Checkbox13 = GUICtrlCreateCheckbox("是否启用驱动选择解压扩展接口", 32, 152, 257, 17)
GUICtrlCreateTabItem("")
$Button1 = GUICtrlCreateButton("设备管理器", 8, 524, 73, 25, 0)
$Button2 = GUICtrlCreateButton("区域语言", 94, 524, 73, 25, 0)
$Button3 = GUICtrlCreateButton("系统属性", 180, 524, 73, 25, 0)
$Button4 = GUICtrlCreateButton("检查", 275, 524, 60, 25, 0)
$Button5 = GUICtrlCreateButton("封装", 350, 524, 60, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd #include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ;**** 参数创建于 AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=D:\图标\VISTA的DLL图标.DLL_17.ico
#AutoIt3Wrapper_UseAnsi=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <GUIConstants.au3>
#NoTrayIcon
#Region ### START Koda GUI section ### Form=d:\personal\my documents\form1.kxf\form1.kxf
$Form1_1 = GUICreate("红苹果工作室会员参与封装工具", 425, 559, -1, -1)
$Pic1 = GUICtrlCreatePic("logo.jpg", 0, 0, 423, 100, BitOR($SS_NOTIFY, $WS_GROUP, $WS_CLIPSIBLINGS))
$Tab1 = GUICtrlCreateTab(8, 112, 410, 409)
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH + $GUI_DOCKHEIGHT)
$TabSheet1 = GUICtrlCreateTabItem("主要封装选项")
$Group1 = GUICtrlCreateGroup("主要的封装选项", 16, 136, 385, 377)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF0000)
$Group3 = GUICtrlCreateGroup("主封装选项", 24, 160, 369, 145)
$Checkbox1 = GUICtrlCreateCheckbox("显示Sysprep窗口,手动选择封装选项", 56, 192, 313, 17)
$Checkbox2 = GUICtrlCreateCheckbox("更改Hal(电源模式)为Standard PC", 57, 225, 281, 17)
$Checkbox3 = GUICtrlCreateCheckbox("更改IDE控制器为标准IDE控制器", 57, 257, 265, 17)
$Checkbox4 = GUICtrlCreateCheckbox("自动卸载所有设备驱动", 57, 281, 233, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group4 = GUICtrlCreateGroup("附加选项", 24, 325, 369, 177)
$Checkbox5 = GUICtrlCreateCheckbox("去除个人设置对话框", 32, 349, 169, 17)
$Checkbox6 = GUICtrlCreateCheckbox("集成DllcacheManager", 33, 382, 177, 17)
$Checkbox7 = GUICtrlCreateCheckbox("删除Media Player快捷方式", 33, 414, 185, 17)
$Checkbox8 = GUICtrlCreateCheckbox("桌面上显示宽带连接", 33, 438, 177, 17)
$Checkbox9 = GUICtrlCreateCheckbox("集成驱动程序验证", 209, 385, 169, 17)
$Checkbox10 = GUICtrlCreateCheckbox("不提示搜索驱动", 208, 352, 177, 17)
$Checkbox11 = GUICtrlCreateCheckbox("清理系统临时文件", 209, 417, 185, 17)
$Checkbox12 = GUICtrlCreateCheckbox("清理系统垃圾文件", 209, 441, 177, 17)
$Input1 = GUICtrlCreateInput("请选择安装时的分辨率", 40, 472, 137, 24)
$Input2 = GUICtrlCreateInput("请输入注册表优化", 219, 472, 121, 24)
$Button20 = GUICtrlCreateButton("...", 344, 472, 41, 17, 0)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$TabSheet2 = GUICtrlCreateTabItem("驱动选择配制")
$Group2 = GUICtrlCreateGroup("配制文件的写入", 24, 176, 377, 321)
$Label1 = GUICtrlCreateLabel("驱动解压内部LOGO的路径", 32, 432, 142, 17)
$Input3 = GUICtrlCreateInput("Input3", 192, 428, 137, 21)
$Button6 = GUICtrlCreateButton("...", 336, 432, 49, 17, 0)
$Group5 = GUICtrlCreateGroup("台式电脑驱动", 32, 200, 353, 97)
$Checkbox14 = GUICtrlCreateCheckbox("主板芯片组", 40, 225, 89, 17)
$Checkbox15 = GUICtrlCreateCheckbox("声卡驱动", 41, 261, 81, 17)
$Checkbox16 = GUICtrlCreateCheckbox("显卡驱动", 163, 225, 89, 17)
$Checkbox17 = GUICtrlCreateCheckbox("网卡驱动", 164, 261, 81, 17)
$Checkbox18 = GUICtrlCreateCheckbox("集成显卡驱动", 285, 225, 89, 17)
$Checkbox19 = GUICtrlCreateCheckbox("摄像头驱动", 286, 261, 81, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group6 = GUICtrlCreateGroup("笔记本电脑驱动", 32, 312, 361, 57)
$Checkbox20 = GUICtrlCreateCheckbox("调制解调器", 291, 337, 81, 17)
$Checkbox21 = GUICtrlCreateCheckbox("无线网卡", 169, 337, 81, 17)
$Checkbox22 = GUICtrlCreateCheckbox("设备驱动", 46, 337, 81, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button7 = GUICtrlCreateButton("...", 336, 401, 49, 17, 0)
$Input4 = GUICtrlCreateInput("Input3", 192, 397, 137, 21)
$Label2 = GUICtrlCreateLabel("驱动解压程序时背景图片", 32, 401, 136, 17)
$Button8 = GUICtrlCreateButton("...", 338, 463, 49, 17, 0)
$Input5 = GUICtrlCreateInput("Input3", 194, 459, 137, 21)
$Label3 = GUICtrlCreateLabel("请输入驱动文件解压的路径", 34, 463, 148, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Checkbox13 = GUICtrlCreateCheckbox("是否启用驱动选择解压扩展接口", 32, 152, 257, 17)
GUICtrlCreateTabItem("")
$Button1 = GUICtrlCreateButton("设备管理器", 8, 524, 73, 25, 0)
$Button2 = GUICtrlCreateButton("区域语言", 94, 524, 73, 25, 0)
$Button3 = GUICtrlCreateButton("系统属性", 180, 524, 73, 25, 0)
$Button4 = GUICtrlCreateButton("检查", 275, 524, 60, 25, 0)
$Button5 = GUICtrlCreateButton("封装", 350, 524, 60, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd 这个不行啊,提示1.2.4行都是不能解析行啊 看来你的版本不一样,我的是 3.3.1.1 本帖最后由 wlsj 于 2009-8-8 10:57 编辑
换了3.3.1.1的还是不行 这是怎么回事,我这完全正常。。 我用的是本论坛的汉化版的AUTOIT_3.3.1.1-1FIX.exe,出现下列错误提示: 晕。。。原来你把行号也复制了~~~~
去掉前面的1. ... 楼主个呆B
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ;**** 参数创建于 AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=D:\图标\VISTA的DLL图标.DLL_17.ico
#AutoIt3Wrapper_UseAnsi=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <GUIConstants.au3>
#NoTrayIcon
#Region ### START Koda GUI section ### Form=d:\personal\my documents\form1.kxf\form1.kxf
$Form1_1 = GUICreate("红苹果工作室会员参与封装工具", 425, 559, -1, -1)
$Pic1 = GUICtrlCreatePic("logo.jpg", 0, 0, 423, 100, BitOR($SS_NOTIFY, $WS_GROUP, $WS_CLIPSIBLINGS))
$Tab1 = GUICtrlCreateTab(8, 112, 410, 409)
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH + $GUI_DOCKHEIGHT)
$TabSheet1 = GUICtrlCreateTabItem("主要封装选项")
$Group1 = GUICtrlCreateGroup("主要的封装选项", 16, 136, 385, 377)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF0000)
$Group3 = GUICtrlCreateGroup("主封装选项", 24, 160, 369, 145)
$Checkbox1 = GUICtrlCreateCheckbox("显示Sysprep窗口,手动选择封装选项", 56, 192, 313, 17)
$Checkbox2 = GUICtrlCreateCheckbox("更改Hal(电源模式)为Standard PC", 57, 225, 281, 17)
$Checkbox3 = GUICtrlCreateCheckbox("更改IDE控制器为标准IDE控制器", 57, 257, 265, 17)
$Checkbox4 = GUICtrlCreateCheckbox("自动卸载所有设备驱动", 57, 281, 233, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group4 = GUICtrlCreateGroup("附加选项", 24, 325, 369, 177)
$Checkbox5 = GUICtrlCreateCheckbox("去除个人设置对话框", 32, 349, 169, 17)
$Checkbox6 = GUICtrlCreateCheckbox("集成DllcacheManager", 33, 382, 177, 17)
$Checkbox7 = GUICtrlCreateCheckbox("删除Media Player快捷方式", 33, 414, 185, 17)
$Checkbox8 = GUICtrlCreateCheckbox("桌面上显示宽带连接", 33, 438, 177, 17)
$Checkbox9 = GUICtrlCreateCheckbox("集成驱动程序验证", 209, 385, 169, 17)
$Checkbox10 = GUICtrlCreateCheckbox("不提示搜索驱动", 208, 352, 177, 17)
$Checkbox11 = GUICtrlCreateCheckbox("清理系统临时文件", 209, 417, 185, 17)
$Checkbox12 = GUICtrlCreateCheckbox("清理系统垃圾文件", 209, 441, 177, 17)
$Input1 = GUICtrlCreateInput("请选择安装时的分辨率", 40, 472, 137, 24)
$Input2 = GUICtrlCreateInput("请输入注册表优化", 219, 472, 121, 24)
$Button20 = GUICtrlCreateButton("...", 344, 472, 41, 17, 0)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$TabSheet2 = GUICtrlCreateTabItem("驱动选择配制")
$Group2 = GUICtrlCreateGroup("配制文件的写入", 24, 176, 377, 321)
$Label1 = GUICtrlCreateLabel("驱动解压内部LOGO的路径", 32, 432, 142, 17)
$Input3 = GUICtrlCreateInput("Input3", 192, 428, 137, 21)
$Button6 = GUICtrlCreateButton("...", 336, 432, 49, 17, 0)
$Group5 = GUICtrlCreateGroup("台式电脑驱动", 32, 200, 353, 97)
$Checkbox14 = GUICtrlCreateCheckbox("主板芯片组", 40, 225, 89, 17)
$Checkbox15 = GUICtrlCreateCheckbox("声卡驱动", 41, 261, 81, 17)
$Checkbox16 = GUICtrlCreateCheckbox("显卡驱动", 163, 225, 89, 17)
$Checkbox17 = GUICtrlCreateCheckbox("网卡驱动", 164, 261, 81, 17)
$Checkbox18 = GUICtrlCreateCheckbox("集成显卡驱动", 285, 225, 89, 17)
$Checkbox19 = GUICtrlCreateCheckbox("摄像头驱动", 286, 261, 81, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group6 = GUICtrlCreateGroup("笔记本电脑驱动", 32, 312, 361, 57)
$Checkbox20 = GUICtrlCreateCheckbox("调制解调器", 291, 337, 81, 17)
$Checkbox21 = GUICtrlCreateCheckbox("无线网卡", 169, 337, 81, 17)
$Checkbox22 = GUICtrlCreateCheckbox("设备驱动", 46, 337, 81, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button7 = GUICtrlCreateButton("...", 336, 401, 49, 17, 0)
$Input4 = GUICtrlCreateInput("Input3", 192, 397, 137, 21)
$Label2 = GUICtrlCreateLabel("驱动解压程序时背景图片", 32, 401, 136, 17)
$Button8 = GUICtrlCreateButton("...", 338, 463, 49, 17, 0)
$Input5 = GUICtrlCreateInput("Input3", 194, 459, 137, 21)
$Label3 = GUICtrlCreateLabel("请输入驱动文件解压的路径", 34, 463, 148, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Checkbox13 = GUICtrlCreateCheckbox("是否启用驱动选择解压扩展接口", 32, 152, 257, 17)
GUICtrlCreateTabItem("")
$Button1 = GUICtrlCreateButton("设备管理器", 8, 524, 73, 25, 0)
$Button2 = GUICtrlCreateButton("区域语言", 94, 524, 73, 25, 0)
$Button3 = GUICtrlCreateButton("系统属性", 180, 524, 73, 25, 0)
$Button4 = GUICtrlCreateButton("检查", 275, 524, 60, 25, 0)
$Button5 = GUICtrlCreateButton("封装", 350, 524, 60, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd 承蒙指教,这回可以了,谢谢啊 最底下有“复制代码”那几个字的你点下“复制代码”,之后粘贴就行了,呵呵
页:
[1]
2