|
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("程序定时运行", 250, 222, 192, 124)
$timemin = GUICtrlCreateInput("20", 104, 48, 41, 21)
$DDlj = GUICtrlCreateInput("", 8, 88, 161, 21)
$DDButton = GUICtrlCreateButton("1路径", 184, 88, 57, 25)
$Label1 = GUICtrlCreateLabel("定时时间", 8, 16, 220, 25)
$timehour = GUICtrlCreateInput("00", 8, 48, 41, 21)
$Label2 = GUICtrlCreateLabel("小时", 72, 53, 28, 17)
$Label3 = GUICtrlCreateLabel("分钟", 152, 53, 36, 17)
$DKlj = GUICtrlCreateInput("", 8, 124, 161, 21)
$DKButton2 = GUICtrlCreateButton("2路径", 184, 124, 57, 25)
$start = GUICtrlCreateButton("开始", 0, 183, 103, 33)
$cancel = GUICtrlCreateButton("取消", 129, 183, 103, 33)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
GUI写好了,我想定时运行两个自动安装的程序。时间自己设定,两个程序的路径自己设定。自动安装的我会编写。延时的部分看到论坛里面说会占用CPU什么的不知道用什么函数好。希望高手给知道一下 |
|