Skip to content

Commit

Permalink
feat(quickinput): ISODateStringGenerate
Browse files Browse the repository at this point in the history
  • Loading branch information
snomiao committed Jul 3, 2022
1 parent 60bcad6 commit d321b99
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Modules/01.1-插件-鼠标模拟.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ CapsLockX_鼠标右键弹起(){
; *a:: 滚轮模拟.左按("a")
; *d:: 滚轮模拟.右按("d")
; *w:: 滚轮模拟.上按("w")
; *s:: 滚轮模拟.下按("s")¦
; *s:: 滚轮模拟.下按("s")

; 滚轮运动处理
*h:: 滚轮模拟.左按("h")
Expand Down
13 changes: 11 additions & 2 deletions Modules/功能-快捷输入.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,16 @@ GenPassword(Chars, Length := 16)
}
Return pw
}
DateStringGenerate()
SNODateStringGenerate()
{
FormatTime, TimeString, , (yyyyMMdd)
return TimeString
}
ISODateStringGenerate()
{
FormatTime, TimeString, , yyyy-MM-dd
return TimeString
}
TimeStringGenerate()
{
FormatTime, TimeString, , (yyyyMMdd.HHmmss)
Expand All @@ -46,7 +51,11 @@ QuickTextInput(str)
#if

:*?:#D#:: ; 日期输入:如 (20220217)
QuickTextInput(DateStringGenerate())
QuickTextInput(ISODateStringGenerate())
return

:*?:#F#:: ; 日期输入:如 2022-02-17
QuickTextInput(SNODateStringGenerate())
return

:*?:#T#:: ; 时间输入:(20220217.220717)
Expand Down

0 comments on commit d321b99

Please sign in to comment.