可惜这个程序不支持 @SW_HIDE
只能这样了 不注意看 基本看不到 呵呵
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("CDKEY修改", 300, 95, 209, 177)
$Group1 = GUICtrlCreateGroup("CDKEY修改", 8, 8, 285, 65)
$Input1 = GUICtrlCreateInput("", 24, 32, 189, 21)
$Button1 = GUICtrlCreateButton("修改", 228, 32, 51, 25, $WS_GROUP)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
Run("CDKEY生成器.exe", "", @SW_MINIMIZE)
WinWait ("Keygen - The Sims 3 (c) EA")
ControlClick("Keygen - The Sims 3 (c) EA", "", "Button1")
$sSN = ControlGetText("Keygen - The Sims 3 (c) EA", "", "Edit1")
GUICtrlSetData($Input1, $sSN)
WinClose("Keygen - The Sims 3 (c) EA")
EndSwitch
WEnd
|