the folowing code (found from Jack Dunning) does the MonthCal GUI showing the submit button. i currently fail to skip this button and give me immediately after choosing the proper date the date as output. may anybody help?
thx for advise
andreas
Code: Select all
^#a::
DetectHiddenWindows, On
IfWinNotExist, Select Date
{
Gui AddDate:Add, MonthCal, vDayPick r2
; Gui AddDate:Add, Button, Default, Submit
}
Gui AddDate:Show,, Select Date
DetectHiddenWindows, Off
return
AddDateButtonSubmit: ; Label for the above hotkey (^#D)
Gui AddDate:Submit
FormatTime, DayPick, %DayPick%, ShortDate ;MMMM d, yyyy
Send, %DayPick%
Return