本帖最后由 qq4045728 于 2011-11-28 21:39 编辑
如果检测win7系统是否激活,如果没有激活则运行激活工具。。激活则退出
;==============================
本人自己写的老土办法,实在是没办法的办法啊。。。如果有高人知道,请指出ShellExecute(@SystemDir & "\slmgr.vbs","-xpr")
$1 = WinWaitActive("Windows Script Host","计算机已永久激活。",6)
If $1 = "0" Then
WinWaitActive("Windows Script Host","初始宽限期于")
ControlCommand("Windows Script Host","初始宽限期于","Button1","Check")
MsgBox(1,"未激活","系统未激活")
Else
WinWaitActive("Windows Script Host","计算机已永久激活。")
ControlCommand("Windows Script Host","计算机已永久激活。","Button1","Check")
MsgBox(1,"激活","系统已激活")
EndIf
|