找回密码
 加入
搜索
查看: 2106|回复: 3

请问段代码的意思~!

[复制链接]
发表于 2009-9-26 19:03:15 | 显示全部楼层 |阅读模式
我想请问这段代码的意思!

MSGBOX(0,"提示","安装前请确认已经装好驱动程序!",2)
$master01=RegRead("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\0001","MasterDeviceType")
$Slave01=RegRead("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\0001","SlaveDeviceType")
$master02=RegRead("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\0002","MasterDeviceType")
$Slave02=RegRead("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\0002","SlaveDeviceType")

if $master01+$Slave01>0 then
if $master01=0 then regwrite("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\0001","UserMasterDeviceType","REG_DWORD","3")
if $Slave01=0 then regwrite("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\0001","UserSlaveDeviceType","REG_DWORD","3")
else
发表于 2009-9-26 19:22:36 | 显示全部楼层
读取和写入注册表
发表于 2009-9-26 21:47:41 | 显示全部楼层
同上!




 楼主| 发表于 2009-9-26 22:17:45 | 显示全部楼层
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-12-25 02:37 , Processed in 0.077132 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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