Show current month in DDL menu box Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Fulminare
Posts: 369
Joined: 26 Jun 2021, 20:15

Show current month in DDL menu box

25 Sep 2021, 04:33

Greetings everyone,

This is the code for a DDL

Code: Select all

Gui, Font, s20 Bold cBlack
Gui, Add, DropDownList, h500 w300 vnick, Blue|Green|Red|Black|
Gui, Add, DropDownList, h500 w300 vmonth, January|Febuary|March|April|May|June|July|August|September|October|November|December|

;DDL INFO
Gui, Font, s10 Bold cBlack
Gui, Add, Button, Default, Input

Show:
Gui, Show
Return

ButtonInput:
Gui, Submit
Gui, Destroy
(with reference to the image attached )

In place of where it says "New AutoHotKey Script.ahk" will it be possible to show the current month ?

The name of the script will be different but it should show the current month on top

( This has nothing to do with the month selection from the DDL. That's different. Irrespective of the month selected from the DDL, the current month should be shown in place of "New AutoHotKey Script.ahk"

Can someone kindly help me ?

Regards
Attachments
Screenshot 2021-09-25 145748.png
Screenshot 2021-09-25 145748.png (5.2 KiB) Viewed 380 times
Rohwedder
Posts: 7630
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Show current month in DDL menu box  Topic is solved

25 Sep 2021, 05:44

Hallo,
try:

Code: Select all

Gui, Font, s20 Bold cBlack
Gui, Add, DropDownList, h500 w300 vnick, Blue|Green|Red|Black|
Gui, Add, DropDownList, h500 w300 vmonth, January|Febuary|March|April|May|June|July|August|September|October|November|December|

;DDL INFO
Gui, Font, s10 Bold cBlack
Gui, Add, Button, Default, Input

Show:
FormatTime, month,, MMMM
Gui, Show,, %month%
Return

ButtonInput:
Gui, Submit
Gui, Destroy
Fulminare
Posts: 369
Joined: 26 Jun 2021, 20:15

Re: Show current month in DDL menu box

25 Sep 2021, 05:49

Thank you Rohwedder
it works:)

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: scriptor2016 and 298 guests