#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("谷歌绿化", 187, 72, 710, 715)
$Button1 = GUICtrlCreateButton("绿化", 16, 16, 65, 41, 0)
$Button2 = GUICtrlCreateButton("卸载", 104, 16, 65, 41, 0)
GUISetState(@SW_SHOW)
#EndRegion ### START Koda GUI section ### Form=
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
Run("rundll32 setupapi,InstallHinfSection DefaultInstall 128 .\caicai_IN.inf")
FileCopy("NfRuntime.dll", @WindowsDir & "\system32", 1)
Run("regsvr32 /s NfRuntime.dll")
MsgBox(0, "恭喜", "已完成绿化")
Case $Button2
Run("rundll32 setupapi,InstallHinfSection DefaultInstall 128 .\caicai_IN.inf")
FileDelete(@WindowsDir & "\system32\NfRuntime.dll")
Run("regsvr32 /s /U NfRuntime.dll")
MsgBox(0, "恭喜", "已完成卸载")
EndSwitch
WEnd
[ 本帖最后由 qop1830 于 2008-6-18 08:58 编辑 ] |