fybhwsx 发表于 2016-8-30 23:00:05

【已解决】请问 AU如何获取系统激活状态?

本帖最后由 fybhwsx 于 2016-9-1 08:18 编辑

如果没有激活,就运行激活工具。。运行激活工具没有问题,但怎么加上是否激活的判断呢?求助大侠!;检测激活Windows
                        Run(@ComSpec & ' /c ' & 'slmgr.vbs -dlv', '', @SW_HIDE);检测当前操作系统激活状态
                        WinWait("Windows Script Host", "", 10)
                        Local $sText = WinGetText("Windows Script Host")
                        If StringInStr($sText, "找不到产品密钥") Or StringInStr($sText, "未激活") Then
                                ;MsgBox($MB_SYSTEMMODAL, "", $sText)
                                ControlFocus("Windows Script Host", "", "Button1")
                                ControlClick("Windows Script Host", "", "Button1")
                                ShellExecuteWait("AutoPico.exe", "", "D:\win10激活工具\KMSpico Portable\", "open", @SW_SHOWNORMAL);运行系统激活程序
                        Else
                                ControlFocus("Windows Script Host", "", "Button1")
                                ControlClick("Windows Script Host", "", "Button1")
                        EndIf

heroxianf 发表于 2016-8-31 09:53:04

CMD里systeminfo 命令可以查看一样。

fybhwsx 发表于 2016-9-1 08:16:19

回复 2# heroxianf


    谢谢!
页: [1]
查看完整版本: 【已解决】请问 AU如何获取系统激活状态?