Last active
March 30, 2024 05:43
-
-
Save 3110/dffca1c28657bedfa21c4815e803606d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; AutoHotKey 2.0で「]YYYYMMDD」と入力し,領域選択してCtrl+Cでクリップボードにコピーすると,YYYY年MM月DD日(曜日)に変換して置き換える | |
#Requires AutoHotkey v2.0 | |
OnClipboardChange DateTranslatorCB | |
DateTranslatorCB(dataType) | |
{ | |
if (dataType = 1 && RegExMatch(A_Clipboard, "^\](\d{4})(\d{2})(\d{2})$", &match)) | |
{ | |
DateStr := FormatTime(match[1] match[2] match[3], "yyyy年MM月dd日(ddd)") | |
A_Clipboard := DateStr | |
Send DateStr | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment