Set Selected file to Current Date with AutoHotkey
Moderators: Hacker, petermad, Stefan2, white
Set Selected file to Current Date with AutoHotkey
I want to select a file or files and then run a macro to set those files to the current date by using Alt-A, u for current date and the enter key.
As a beginner, I tried to record an AutoHotkey macro but could not get it to work.
Can anyone offer the AutoHotkey code for this?
Thanks in advance for any assistance.
As a beginner, I tried to record an AutoHotkey macro but could not get it to work.
Can anyone offer the AutoHotkey code for this?
Thanks in advance for any assistance.
License #1945
Windows 10 Pro x64
Version 22H2 (OS Build 19045.3930)
TC 11.00 x64 and x86, Everything 1.5.0.1366a x64, QAP 11.6.3.1 x64
Windows 10 Pro x64
Version 22H2 (OS Build 19045.3930)
TC 11.00 x64 and x86, Everything 1.5.0.1366a x64, QAP 11.6.3.1 x64
Re: Set Selected file to Current Date with AutoHotkey
Does it necessarily have to be AHK script?
You can do it easy with TC 10 without any external tool.
1. Define user command or just add such a code to USERCMD.INI
2. Define hotkey for this command.
You can do it easy with TC 10 without any external tool.
1. Define user command or just add such a code to USERCMD.INI
Code: Select all
[em_setcurrenttime]
button=%COMMANDER_EXE%,24
cmd=OPENATTRIBUTES
param==+c
Re: Set Selected file to Current Date with AutoHotkey
2jinsight
No need for AHK for that.
Open your usercmd.ini file (located in the same directory as you wincmd.ini file - if not the make it in Notepad) and add this:
In TC go to "Configuration" -> "Options..." -> "Misc" -> "Redifine hotkeys (Keyboard remapping)" - selct Alt + A and assign em_setcurrenttime to this selection.
EDIT
Saw Gral' answer after posting mine - notice that my solution executes the change automatically due to the = after OPENATTRIBUTES
No need for AHK for that.
Open your usercmd.ini file (located in the same directory as you wincmd.ini file - if not the make it in Notepad) and add this:
Code: Select all
[em_setcurrenttime]
cmd=OPENATTRIBUTES= +c
EDIT
Saw Gral' answer after posting mine - notice that my solution executes the change automatically due to the = after OPENATTRIBUTES
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Set Selected file to Current Date with AutoHotkey
Gral's solution does the same.petermad wrote: 2022-02-19, 18:29 UTC EDIT
Saw Gral' answer after posting mine - notice that my solution executes the change automatically due to the = after OPENATTRIBUTES
Look at the param==
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.4 x64
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.4 x64
Re: Set Selected file to Current Date with AutoHotkey
OopsGral's solution does the same.
Look at the param==

License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Set Selected file to Current Date with AutoHotkey
2Gral, petermad and Horst.Epp
Thank you one and all for the speedy help. I would like to think I could/should have figured it out for myself. I'm glad you folks were present to, in fact, figure it out!
Thank you one and all for the speedy help. I would like to think I could/should have figured it out for myself. I'm glad you folks were present to, in fact, figure it out!
License #1945
Windows 10 Pro x64
Version 22H2 (OS Build 19045.3930)
TC 11.00 x64 and x86, Everything 1.5.0.1366a x64, QAP 11.6.3.1 x64
Windows 10 Pro x64
Version 22H2 (OS Build 19045.3930)
TC 11.00 x64 and x86, Everything 1.5.0.1366a x64, QAP 11.6.3.1 x64