Boilerplate current time Topic is solved
Boilerplate current time
Hello,
havn't figured out by myself.
::,time:: order put in current time
Goal: I wonna have the current time for example 13:03 (HH:mm), when i enter the text ",time".
Thanks for help
Christian
havn't figured out by myself.
::,time:: order put in current time
Goal: I wonna have the current time for example 13:03 (HH:mm), when i enter the text ",time".
Thanks for help
Christian
Re: Boilerplate current time Topic is solved
Code: Select all
#Requires AutoHotkey v2.0
:X*?:,time::SendText(FormatTime(, "HH:mm"))
Last edited by ntepa on 16 Apr 2024, 01:17, edited 1 time in total.
Re: Boilerplate current time
Hallo,
perhaps?:
perhaps?:
Code: Select all
:?*X:,time::Send A_Hour ":" A_Min
Re: Boilerplate current time
Thanks for you help. Its working in my V2.ntepa wrote: ↑16 Apr 2024, 01:15Code: Select all
#Requires AutoHotkey v2.0 :X*?:,time::SendText(FormatTime(, "HH:mm"))
Here what i put up for me
Code: Select all
:X*?:,zeitjetzt::SendText(FormatTime(, "HH:mm"))
:X*?:,heute::SendText(FormatTime(, "dd.MM.yyyy"))
:X*?:,punkt::SendText(FormatTime(, "HH:mm dd.MM.yyyy"))
Re: Boilerplate current time
Thanks for your quick answer to. I'm using V2 here it seems not to work. The answer of ntepa worked.Rohwedder wrote: ↑16 Apr 2024, 01:15Hallo,
perhaps?:Code: Select all
:?*X:,time::Send A_Hour ":" A_Min
Re: Boilerplate current time
Should work in v2. Add #Requires AutoHotkey v2.0 and try again (because if you have also installed v1, this hotstring code is likely too ambigious for the launcher).Chrix wrote: ↑17 Apr 2024, 08:00Thanks for your quick answer to. I'm using V2 here it seems not to work. The answer of ntepa worked.Rohwedder wrote: ↑16 Apr 2024, 01:15Hallo,
perhaps?:Code: Select all
:?*X:,time::Send A_Hour ":" A_Min
Re: Boilerplate current time
Thanks your hint. It was already addedgregster wrote: ↑17 Apr 2024, 08:40Should work in v2. Add #Requires AutoHotkey v2.0 and try again (because if you have also installed v1, this hotstring code is likely too ambigious for the launcher).Chrix wrote: ↑17 Apr 2024, 08:00Thanks for your quick answer to. I'm using V2 here it seems not to work. The answer of ntepa worked.Rohwedder wrote: ↑16 Apr 2024, 01:15Hallo,
perhaps?:Code: Select all
:?*X:,time::Send A_Hour ":" A_Min
Code: Select all
#Requires Autohotkey v2.0+
I let it now by the other solution like mentioned. Thanks for your time