找回密码
 加入
搜索
查看: 6021|回复: 12

[原创] 驱动选择工具麻烦大家指教一下

  [复制链接]
发表于 2008-12-14 17:17:55 | 显示全部楼层 |阅读模式
#NoTrayIcon
#Region ;**** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_outfile=..\Documents and Settings\Administrator\桌面\000000.exe
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
#include <GUIConstants.au3>
If FileExists("xp") Then
FileInstall("newdrivers.jpg", "newdrivers.jpg",1)
FileInstall("0.ico", "c:\xp\0.ico")
FileInstall("0.ico", "c:\xp\0.ico")
FileInstall("0.ico", "c:\xp\0.ico")
FileInstall("0.ico", "c:\xp\0.ico")
FileInstall("0.ico", "c:\xp\0.ico")
FileInstall("0.ico", "c:\xp\0.ico")
FileInstall("drivers.jpg", "drivers.jpg")
#Region ### START Koda GUI section ### Form=c:\xp\Form1.kxf
$Form1 = GUICreate("日照南山网络科技_驱动选择V3.0", 554, 413)
$Pic1 = GUICtrlCreatePic("newdrivers.jpg", 0, 0, 193, 412, BitOR($SS_NOTIFY,$WS_GROUP))
$Icon1 = GUICtrlCreateIcon("c:\xp\0.ico", 0, 216, 16, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP))
$Checkbox1 = GUICtrlCreateCheckbox("主板蕊片组驱动", 256, 24, 129, 17)
$Icon2 = GUICtrlCreateIcon("c:\xp\0.ico", 0, 400, 16, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP))
$Checkbox2 = GUICtrlCreateCheckbox("显卡驱动", 448, 24, 97, 17)
$Icon3 = GUICtrlCreateIcon("c:\xp\0.ico", 0, 216, 96, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP))
$Checkbox3 = GUICtrlCreateCheckbox("摄像头驱动", 256, 104, 129, 17)
$Icon4 = GUICtrlCreateIcon("c:\xp\0.ico", 0, 400, 96, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP))
$Checkbox4 = GUICtrlCreateCheckbox("声卡驱动", 448, 104, 97, 17)
$Icon5 = GUICtrlCreateIcon("c:\xp\0.ico", 0, 216, 176, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP))
$Checkbox5 = GUICtrlCreateCheckbox("网卡驱动", 256, 184, 97, 17)
$Group1 = GUICtrlCreateGroup("", 216, 232, 329, 9)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button1 = GUICtrlCreateButton("安装", 224, 304, 107, 33, 0)
$Button2 = GUICtrlCreateButton("不安装驱动", 424, 304, 107, 33, 0)
$Label1 = GUICtrlCreateLabel("如果安装集成驱动版本有问题,请换回纯净版.", 288, 384, 254, 17)
$Label2 = GUICtrlCreateLabel("请在你将要安装的驱动上打钩!", 360, 248, 163, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
case $button2
exit
case $button1
if GUICtrlRead($Checkbox1)=4 and GUICtrlRead($Checkbox2)=4 and GUICtrlRead($Checkbox3)=4 and GUICtrlRead($Checkbox4)=4 and GUICtrlRead($Checkbox5)=4  then
msgbox(16,"提示","请选择你要安装的驱动!")
else
GUICtrlSetState($Button1,$GUI_DISABLE)
GUICtrlSetState($Button2,$GUI_DISABLE)
if GUICtrlRead($Checkbox1)=1 then RunWait(@ScriptDir & "\dr\un7zip.exe " & @ScriptDir & "\dr\Board.7z" & " " & "c:\xp\Drivers")
if GUICtrlRead($Checkbox3)=1 then RunWait(@ScriptDir & "\dr\un7zip.exe " & @ScriptDir & "\dr\Camera.7z" & " " & "c:\xp\Drivers")
if GUICtrlRead($Checkbox5)=1 then RunWait(@ScriptDir & "\dr\un7zip.exe " & @ScriptDir & "\dr\Lan.7z" & " " & "c:\xp\Drivers")
if GUICtrlRead($Checkbox2)=1 then RunWait(@ScriptDir & "\dr\Display.exe",@ScriptDir & "\dr")
if GUICtrlRead($Checkbox4)=1 then RunWait(@ScriptDir & "\dr\Sound.exe",@ScriptDir & "\dr")
exitloop
endif
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
else
MsgBox(4096,"", "此工具只能运行在日照南山网络科技系统上!")
EndIf
发表于 2009-4-17 12:57:35 | 显示全部楼层
这个是绿茶的吗??
发表于 2009-5-5 19:02:24 | 显示全部楼层
这个是自动的吗
发表于 2009-8-1 20:53:49 | 显示全部楼层
才这么点啊!
发表于 2009-8-5 23:32:28 | 显示全部楼层
?什么什么噢,看不懂,拜师拜师继续~
发表于 2009-8-25 23:04:25 | 显示全部楼层
怎么就这么一点啊?
发表于 2010-5-19 10:59:14 | 显示全部楼层
论坛有完整的,可以去搜索!
发表于 2010-5-21 15:13:11 | 显示全部楼层
又看到一个好函数,收藏
发表于 2010-11-30 20:49:05 | 显示全部楼层
告别繁琐的安装步骤,享受AU3写的驱动选择工具。

听说该工具支持桌面和非桌面环境安装驱动。
发表于 2011-1-12 22:37:54 | 显示全部楼层
支持一下,看看
发表于 2011-1-13 00:22:21 | 显示全部楼层
谢谢你的分享,但是我金钱不够下不到
发表于 2011-8-6 14:57:01 | 显示全部楼层
这个写的很一般啊
发表于 2012-4-4 10:54:25 | 显示全部楼层
这个是绿茶的吗??
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-12-28 00:51 , Processed in 0.070789 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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