как сделать что бы после ввода начало и конца даты в форме (форма ниже), нажав кнопку выполнить, он прочитывал все даты и по дате определял выходной день (если можно то красные дни календаря, суббота, воскресенье) с выводом в msgbox ?
Код:
#include <ButtonConstants.au3>
#include <DateTimeConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1_1 = GUICreate("Form1", 303, 183, 192, 124)
$Date2 = GUICtrlCreateDate("2012/09/28 19:32:26", 118, 37, 145, 20, BitOR($GUI_SS_DEFAULT_DATE,$WS_BORDER))
$Date3 = GUICtrlCreateDate("2012/09/28 19:32:26", 118, 69, 145, 20, BitOR($GUI_SS_DEFAULT_DATE,$WS_BORDER))
$Label1 = GUICtrlCreateLabel("начало даты", 32, 40, 67, 17)
$Label2 = GUICtrlCreateLabel("конец даты", 32, 72, 62, 17)
$Button1 = GUICtrlCreateButton("Выполнить", 120, 113, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $Button1
GUISetState(@SW_HIDE)
GUISetState(@SW_SHOW)
EndSwitch
WEnd