#NoTrayIcon
#include <StaticConstants.au3> ;标签(Label), 图片(Pic), 图标(Icon)
#include <WindowsConstants.au3> ;Gui 扩展样式
#include <GUIConstantsEx.au3> ;GUI 创建, 事件
#include <ButtonConstants.au3>;按钮(Button)样
#include <ProgressConstants.au3>;进度条(Progress Bar)控件样式
$ckbt = GUICreate("AUTOIT CN AutoIt中文论坛acnau3软件汉化 http://www.autoitx.com/", 600, 500)
GUISetBkColor(0x00E0FFFF)
$jbq1 = GUICtrlCreateTab(5, 135, 592, 270)
$jbxx = GUICtrlCreateTabItem("标签页1")
$fbq2 = GUICtrlCreateTab(50, 135, 592, 270)
$fwyh = GUICtrlCreateTabItem("标签页2")
$bq3 = GUICtrlCreateTab(95, 135, 592, 270)
$xtyh = GUICtrlCreateTabItem("标签页3")
$bq4 = GUICtrlCreateTab(185,135,592,270)
$xtmh = GUICtrlCreateTabItem("标签页4")
$bq5 = GUICtrlCreateTab(140, 135, 592, 270)
$xtjj = GUICtrlCreateTabItem("标签页5")
$bq6 = GUICtrlCreateTab(185,135,592,270)
$xtql = GUICtrlCreateTabItem("标签页6")
$lswj6= GUICtrlCreateCheckbox("【IE】 临时文件",30,180,160,15)
$ck6= GUICtrlCreateCheckbox("【IE】 Cookies",30,205,160,15)
$lllsjl6= GUICtrlCreateCheckbox("【IE】 浏览历史记录",30,230,160,15)
$xtqlbq = GUICtrlCreateLabel("说明:部分历史痕迹清理需要电脑重启或注销后生效!",26,380,350,18)
$xtqljdt = GUICtrlCreateProgress(305,377,100,18)
$xtqlksql = GUICtrlCreateButton("开始清理", 420, 376, 70, 20, $BS_FLAT)
$xtqlqx = GUICtrlCreateButton("全 选", 505, 376, 70, 20, $BS_FLAT)
GUISetState()
While 1
$Msg = GUIGetMsg()
Switch GUICtrlRead($jbq1,1)
Case $msg = $GUI_EVENT_CLOSE
Exit
Case $msg = $xtqlksql
ControlHide("","",$xtqlbq)
xtql()
$xxxx = GUICtrlCreateLabel("状态: 系统清理完毕! ... ...",26,380,200,18)
MsgBox(64,"X","系统垃圾已清理完毕!")
GUICtrlSetData($xtqljdt,0)
ControlHide("","",$xxxx)
Case $msg = $xtqlqx
xtqlqx()
EndSwitch
WEnd
Func xtql()
if GUICtrlRead($lswj6) = $GUI_CHECKED Then
$x = GUICtrlCreateLabel("状态: 正在清理 IE 临时文件 ... ...",26,380,230,18)
RunWait(@ComSpec & " /C rundll32.exe " & @SystemDir & "\InetCpl.cpl,ClearMyTracksByProcess 8", "", @SW_HIDE)
GUICtrlSetData($xtqljdt,33)
ControlHide("","",$x)
EndIf
if GUICtrlRead($ck6) = $GUI_CHECKED Then
$xx = GUICtrlCreateLabel("状态: 正在清理 IE Cookies ... ...",26,380,230,18)
RunWait(@ComSpec & " /C rundll32.exe " & @SystemDir & "\InetCpl.cpl,ClearMyTracksByProcess 2", "", @SW_HIDE)
GUICtrlSetData($xtqljdt,66)
ControlHide("","",$xx)
EndIf
if GUICtrlRead($lllsjl6) = $GUI_CHECKED Then
$xxx = GUICtrlCreateLabel("状态: 正在清理 IE 浏览历史记录 ... ...",26,380,230,18)
RunWait(@ComSpec & " /C rundll32.exe " & @SystemDir & "\InetCpl.cpl,ClearMyTracksByProcess 1", "", @SW_HIDE)
GUICtrlSetData($xtqljdt,100)
ControlHide("","",$xxx)
EndIf
EndFunc
Func xtqlqx()
;临时文件
GUICtrlSetState($lswj6, $GUI_CHECKED)
GUICtrlSetState($ck6, $GUI_CHECKED)
GUICtrlSetState($lllsjl6, $GUI_CHECKED)
EndFunc
非常感谢几位仁兄的帮助!~