Gui Add, Text,, Время действия:
Gui Add, DateTime, vDateTime, yyyy-MM-dd HH:mm:ss
Gui Add, Button, Section Default gAction, OK
Gui Add, Button, YS gExitApp, Отмена
Gui Show
Exit
Action:
Gui Submit, NoHide
DelayInSeconds = %DateTime%
EnvSub DelayInSeconds, A_Now, seconds
IfLess DelayInSeconds, 0, {
MsgBox Выбрано значение в прошлом!
Exit
}
Gui Destroy
Sleep DelayInSeconds * 1000
Send G
GuiClose:
GuiEscape:
ExitApp:
ExitApp