Gui Calendar

Discussion, questions and support.
Post Reply
jnmwarren
Posts: 2
Joined: Mar 7th, ’19, 15:35

Post by jnmwarren » Mar 7th, ’19, 15:41

I have the following gui. I wanted the gui to stop so that I can pick a specific day from the pop up calendar but that does not happen. How do I get the gui to pause so that I can pick a date from the calendar?

Gui, Add, MonthCal, vDayPick
Gui, Add, Button, Default, Submit
Gui, Show
ButtonSubmit:
Gui, Submit
FormatTime, DayPick, %DayPick%, yyyyMMdd
Send, %DayPick%
Gui, Destroy
Return
User avatar
Tom
Posts: 791
Joined: Nov 24th, ’15, 23:39

Post by Tom » Mar 8th, ’19, 11:35

You missed a Return.

Code: Select all

Gui, Add, MonthCal, vDayPick
Gui, Add, Button, Default, Submit
Gui, Show
Return

ButtonSubmit:
Gui, Submit
FormatTime, DayPick, %DayPick%, yyyyMMdd
Send, %DayPick%
Gui, Destroy
Return
jnmwarren
Posts: 2
Joined: Mar 7th, ’19, 15:35

Post by jnmwarren » Mar 8th, ’19, 11:54

Thanks
Post Reply