Skip to content

Commit

Permalink
v1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbadplayer committed Aug 1, 2023
1 parent 440f023 commit 1243a98
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog - DatePickerGO

## v1.0.3 **Working on progress**
- New: Preview of the selected date / range with the favourite date formats. The user don't need to remember the date format codes. Instead, he got a direct feedback of the result (before insertion).
- Fix: CW formatting inserted the week number twice, even when the selected days were on the same week.

## v1.0.2
- Mod: Change hotkey modifier key for favourites from Ctrl+Numbers to only Numbers (1 for first, 2 for second, and so on).
- Mod: Change default SplitChar from "-" to " - " .
Expand Down
21 changes: 9 additions & 12 deletions DatePickerGO.ahk
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#Requires AutoHotkey v2.0

;IDEAS
;Option to add to Startup?
;Option to add to Startup? ;FileCreateShortcut(A_ScriptFullPath, A_Startup . "\DatePickerGO.lnk",,,"DatePickerGO added to startup folder.")
;GUI menu
;Option to turn on Notification when CopyOnlyClipboard is on?

Expand All @@ -14,15 +14,12 @@ SetWorkingDir A_ScriptDir ; Ensures a consistent starting directory.
iniFile := "DatePickerGO.ini"

;CEHECK + SET ICO
If not FileExist("DatePickerGO.ico")
{
FileInstall "DatePickerGO.ico", A_ScriptDir . "\DatePickerGO.ico", 1
Loop {
sleep 500
} until FileExist("DatePickerGO.ico")
}
TraySetIcon(A_ScriptDir . "\DatePickerGO.ico")

If not FileExist("DatePickerGO.ico") {
Try FileInstall "DatePickerGO.ico", A_ScriptDir . "\DatePickerGO.ico", 1
}
if FileExist("DatePickerGO.ico") {
TraySetIcon(A_ScriptDir . "\DatePickerGO.ico")
}
A_IconTip := "DatePickerGO // Right click for Menu"
A_TrayMenu.Add("[Help]", ShowHelp)
A_TrayMenu.Add("[Options]", ShowOptions)
Expand Down Expand Up @@ -150,7 +147,7 @@ DateTimePicker(*)
GetDate(dateFormat, onlyPreview?) {
newLine := ""
if IsSet(onlyPreview)
newLine := "`n"
newLine := "`n" ;Add a line break in GUI preview

myDate := StrSplit(DateSelect.Value, "-")
if myDate[1] = myDate[2] {
Expand All @@ -165,7 +162,7 @@ DateTimePicker(*)
GetDateCW(CWsplitChar, onlyPreview?) {
newLine := ""
if IsSet(onlyPreview)
newLine := "`n"
newLine := "`n" ;Add a line break in GUI preview

myDate := StrSplit(DateSelect.Value, "-")
if myDate[1] = myDate[2] {
Expand Down

0 comments on commit 1243a98

Please sign in to comment.