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

[AU3基础] 检测台式机笔记本并开启或关闭小键盘及无线服务(静默模式)

[复制链接]
发表于 2012-3-26 09:55:41 | 显示全部楼层 |阅读模式
检测台式机笔记本并开启或关闭小键盘及无线服务(静默模式),可用于GHOST系统的安装

;若为笔记本则关闭小键盘
FileInstall("LibGhostHlper.dll", @WindowsDir & "\LibGhostHlper.dll", 1)
$libghosthlperdll = DllOpen(@WindowsDir & "\LibGhostHlper.dll")
$isnotebook = DllCall($libghosthlperdll, "int", "Util_IsNotebook")
If $isnotebook[0] = "1" Then 
         RegWrite("HKEY_USERS\.DEFAULT\Control Panel\Keyboard", "InitialKeyboardIndicators", "REG_SZ", 2);修改注册表
         RunWait(@ComSpec & ' /c ' & 'sc config WZCSVC start= auto', '', @SW_HIDE);更改无线服务为开
     RunWait(@ComSpec & ' /c ' & 'NET START WZCSVC', '', @SW_HIDE);启动无线服务
    FileDelete(@WindowsDir & "\LibGhostHlper.dll")

Else
   FileDelete(@WindowsDir & "\LibGhostHlper.dll")
EndIf   
无法上传附件LibGhostHlper.dll,自己百度一下吧
发表于 2012-3-26 20:09:47 | 显示全部楼层
难道是发错区鸟?
发表于 2012-4-9 11:08:39 | 显示全部楼层
这是原始代码吗?
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-6-28 01:56 , Processed in 0.077004 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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