你好:

     感谢你访问我的 Blog ,本博客只提供博主的技术经验分享,你可以在此做简单的留言和评论,我会抽空回复你;若是要深入交流探讨,请联系QQ:47853253或者加QQ群:12012081


 

Au3退出电脑管家并自动激活win7

64位系统:
1.开机不运行管家:
sc config QQPCRTP start= disabled
sc config QQRepairFixSVC start= disabled
Reg delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run" /v " QQPCTray" /f
2.开机运行管家:
sc config QQPCRTP start= auto
sc config QQRepairFixSVC start= auto
Reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run" /v " QQPCTray" /t REG_SZ /d "\"C:\Program Files (x86)\Tencent\QQPCMgr\11.5.17490.219\QQPCTray.exe\"  /regrun" /f
 
 
32位系统:
1.开机不运行管家:
sc config QQPCRTP start= disabled
sc config QQRepairFixSVC start= disabled
Reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v " QQPCTray" /f
2.开机运行管家:
sc config QQPCRTP start= auto
sc config QQRepairFixSVC start= auto
Reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v " QQPCTray" /t REG_SZ /d "\"C:\Program Files\Tencent\QQPCMgr\11.5.17490.219\QQPCTray.exe\"  /regrun" /f
 
 
 
#Region ;**** 参数创建于 ACNWrapper_GUI ****
#PRE_icon=C:\Windows\system32\SHELL32.dll|-15
#PRE_Res_requestedExecutionLevel=None
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
#include "SysTray_UDF.au3"
Sleep(4000)
Opt("WinTitleMatchMode", 4)
Opt("WinSearchChildren", 1)
 
_SysTray_ClickItem("qqpctray.exe", "right")
 
Func _SysTray_ClickItem($iTitle, $iButton = "left", $iClick = 1)
        Local $k_pos = MouseGetPos()
        Local $posTray = WinGetPos(_FindTrayToolbarWindow())
        Local $index = _SysTrayIconIndex($iTitle)
 
        If $index <> -1 Then
                Local $pos = _SysTrayIconPos($index)
                If $pos = -1 Then
                        $pos = _SysTrayIconPos($index)
                        If $pos = -1 Then Exit
                EndIf
                MouseMove($pos[0], $pos[1], 0)
                Sleep(500)
                MouseClick("right")
Sleep(500)
$x=$pos[0]-35
$y=$pos[1]-30
MouseMove($x, $y, 0)
Sleep(500)
MouseClick("left")
Sleep(500)
Send("+{tab}")
Sleep(500)
Send("{enter}")
Sleep(500)
MouseMove($k_pos[0], $k_pos[1], 0)
        EndIf
EndFunc   ;==>_SysTray_ClickItem
Local $title="Chew-WGA v0.9"
Run("c:\tools\Win2008R2_Win7+SP1通用激活.exe")
WinWait($title)
WinWaitActive($title)
WinMove($title,"",0,0)
Sleep(500)
WinWaitActive($title)
MouseClick("left",325,200)
Sleep(500)
Send("y")
 
 
 
64位win7下脚本失效?只能这样:
这个办法不好,分辨率不一样坐标就不会一样!
 
#Region ;**** 参数创建于 ACNWrapper_GUI ****
#PRE_icon=C:\Windows\system32\SHELL32.dll|-15
#PRE_Res_requestedExecutionLevel=None
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
Sleep(4000)
MouseMove(1765,1060)
Sleep(500)
MouseClick("right")
Sleep(500)
MouseMove(1730, 1030, 0)
Sleep(500)
MouseClick("left")
Sleep(500)
Send("+{tab}")
Sleep(500)
Send("{enter}")
Sleep(500)


[本日志由 lq3447 于 2016-06-17 03:37 PM 编辑]
文章来自: 本站原创
引用通告: 查看所有引用 | 我要引用此文章
Tags:
评论: 0 | 引用: 0 | 查看次数: 573
发表评论
你没有权限发表留言!