Karl, what is the TC-internal command to "unselect all" ?
Select all files with same date?
Moderators: Hacker, petermad, Stefan2, white
Re: Select all files with same date?
Re: Select all files with same date?
I would take
from TOTALCMD.INC, since folders are not supported.cm_ClearAllFiles=3304;Unselect all files
I don't know where to put that in the code. 2 attempts were not successful.
Re: Select all files with same date?
Answer for Karl
Edit, I was to quick
So try that code change on Romans' code
viewtopic.php?p=351735#p351735
So try that code change on Romans' code
viewtopic.php?p=351735#p351735
Code: Select all
PostMessage, 1075, 2033, , , ahk_class TTOTAL_CMD
;Menu "SHOW > Only Selected Files" > cm_ShowOnlySelected=2023;Hide files which aren't selected
PostMessage, 1075, 2023, , , ahk_class TTOTAL_CMD
;cm_ClearAllFiles=3304;Unselect all files
PostMessage, 1075, 3304, , , ahk_class TTOTAL_CMD
Sleep, 1000
Modified AutoHotkey script: Select all files with same date
Original script by Hacker > ;viewtopic.php?p=351735#p351735
;//Post by *Hacker » Mon Feb 18, 2019 20:54
;//Original: viewtopic.php?p=351735#p351735
;//Re: Select all files with same date?
;//TC-Button:
;// Command: "path\to\autohotkey.exe" "path\to\SameDateFileList.ahk"
;// Parameter: < use %P%N for date from selected file, or leave empty for current system date >
;// Start path:
;// Icon: "path\to\autohotkey.exe"
;// Tooltip:
;// SameDateFileList.ahk
;=================================================
FileGetTime, Date, %1%
FormatTime, Date, %Date%, yyyyMMdd
Loop, Files, *.*
SameDateFileList .= Substr(A_LoopFileTimeModified, 1, 8) = Date ? A_LoopFileName . "`n" : ""
If (SameDateFileList)
{
ClipboardBak = %ClipboardAll%
Clipboard := Substr(SameDateFileList, 1, StrLen(SameDateFileList) - 1)
;//Read file selection from clipboard
;cm_LoadSelectionFromClip=2033;Read file selection from clipboard
PostMessage, 1075, 2033, , , ahk_class TTOTAL_CMD
;//Hide files which aren't selected, show selected files only
;Menu "SHOW > Only Selected Files" > cm_ShowOnlySelected=2023
PostMessage, 1075, 2023, , , ahk_class TTOTAL_CMD
;//Unselect all files, remove the red color highlighting
;cm_ClearAllFiles=3304;Unselect all files
PostMessage, 1075, 3304, , , ahk_class TTOTAL_CMD
Sleep, 1000
Clipboard = %ClipboardBak%
}
;=================================================
;// END
AutoHotkey and Total Commander
FAQs: automate/script TC with AutoHotkey AHK
viewtopic.php?p=350976#p350976
;//Post by *Hacker » Mon Feb 18, 2019 20:54
;//Original: viewtopic.php?p=351735#p351735
;//Re: Select all files with same date?
;//TC-Button:
;// Command: "path\to\autohotkey.exe" "path\to\SameDateFileList.ahk"
;// Parameter: < use %P%N for date from selected file, or leave empty for current system date >
;// Start path:
;// Icon: "path\to\autohotkey.exe"
;// Tooltip:
;// SameDateFileList.ahk
;=================================================
FileGetTime, Date, %1%
FormatTime, Date, %Date%, yyyyMMdd
Loop, Files, *.*
SameDateFileList .= Substr(A_LoopFileTimeModified, 1, 8) = Date ? A_LoopFileName . "`n" : ""
If (SameDateFileList)
{
ClipboardBak = %ClipboardAll%
Clipboard := Substr(SameDateFileList, 1, StrLen(SameDateFileList) - 1)
;//Read file selection from clipboard
;cm_LoadSelectionFromClip=2033;Read file selection from clipboard
PostMessage, 1075, 2033, , , ahk_class TTOTAL_CMD
;//Hide files which aren't selected, show selected files only
;Menu "SHOW > Only Selected Files" > cm_ShowOnlySelected=2023
PostMessage, 1075, 2023, , , ahk_class TTOTAL_CMD
;//Unselect all files, remove the red color highlighting
;cm_ClearAllFiles=3304;Unselect all files
PostMessage, 1075, 3304, , , ahk_class TTOTAL_CMD
Sleep, 1000
Clipboard = %ClipboardBak%
}
;=================================================
;// END
AutoHotkey and Total Commander
FAQs: automate/script TC with AutoHotkey AHK
viewtopic.php?p=350976#p350976
Re: Select all files with same date?
=== IN ARBEIT ===
Hi Stefan,
Thanks for the explanations - must read that later.
With this code the filtered files with red marking are shown to me in the background very briefly (split second).
After that the view is updated immediately, i.e. the filtering does not exist.
Hi Stefan,
Thanks for the explanations - must read that later.
With this code the filtered files with red marking are shown to me in the background very briefly (split second).
After that the view is updated immediately, i.e. the filtering does not exist.
Code: Select all
FileGetTime, Date, %1%
FormatTime, Date, %Date%, yyyyMMdd
Loop, Files, *.*
SameDateFileList .= Substr(A_LoopFileTimeModified, 1, 8) = Date ? A_LoopFileName . "`n" : ""
If (SameDateFileList)
{
ClipboardBak = %ClipboardAll%
Clipboard := Substr(SameDateFileList, 1, StrLen(SameDateFileList) - 1)
PostMessage, 1075, 2033, , , ahk_class TTOTAL_CMD
;Menu "SHOW > Only Selected Files" > cm_ShowOnlySelected=2023;Hide files which aren't selected
PostMessage, 1075, 2023, , , ahk_class TTOTAL_CMD
;Menu "SHOW > All Files" > cm_SrcAllFiles=312;Source: All files
PostMessage, 1075, 312, , , ahk_class TTOTAL_CMD
Sleep, 1000
Clipboard = %ClipboardBak%
}
Last edited by tuska on 2019-02-20, 19:21 UTC, edited 1 time in total.
Re: Select all files with same date?
Yes, sorry, I showed you a wrong way,.... but I have already updated in post above.tuska wrote: 2019-02-20, 19:16 UTC After that the view is updated immediately, i.e. the filtering does not exist.
Re: Select all files with same date?
Hi Stefan,
Thank you very much for your efforts and explanations!
The following code works perfectly for me:
… Today's files are filtered and displayed without markers ...
At this point also many thanks to Hacker for the script!
Thank you very much for your efforts and explanations!
The following code works perfectly for me:
… Today's files are filtered and displayed without markers ...
Code: Select all
FileGetTime, Date, %1%
FormatTime, Date, %Date%, yyyyMMdd
Loop, Files, *.*
SameDateFileList .= Substr(A_LoopFileTimeModified, 1, 8) = Date ? A_LoopFileName . "`n" : ""
If (SameDateFileList)
{
ClipboardBak = %ClipboardAll%
Clipboard := Substr(SameDateFileList, 1, StrLen(SameDateFileList) - 1)
PostMessage, 1075, 2033, , , ahk_class TTOTAL_CMD
;Menu "SHOW > Only Selected Files" > cm_ShowOnlySelected=2023;Hide files which aren't selected
PostMessage, 1075, 2023, , , ahk_class TTOTAL_CMD
;cm_ClearAllFiles=3304;Unselect all files
PostMessage, 1075, 3304, , , ahk_class TTOTAL_CMD
Sleep, 1000
Clipboard = %ClipboardBak%
}
Re: Select all files with same date?
tuska,
And to Stefan2 for his original version and help!
Roman
And to Stefan2 for his original version and help!
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Re: Select all files with same date?
Yes, of course!
I already thanked him.
Regards,
Karl
Re: Select all files with same date? | Summary
Here is a summary based on the AHK scripts:
Thanks to all!
(1) Mark-files-with-the-same-DATE.ahk
viewtopic.php?p=351735#p351735 (script 2 - shorter)
(2) Filter_files_with_the-same-DATE_and_display_only_these_files.ahk
viewtopic.php?p=351803#p351803
PostMessage, 1075, 2033, , , ahk_class TTOTAL_CMD
;Menu "SHOW > Only Selected Files" > cm_ShowOnlySelected=2023;Hide files which aren't selected
PostMessage, 1075, 2023, , , ahk_class TTOTAL_CMD
;cm_ClearAllFiles=3304;Unselect all files
PostMessage, 1075, 3304, , , ahk_class TTOTAL_CMD
(3) Filter_files_with_the-same-DATE_and_display_only_these_files_red-marking.ahk
viewtopic.php?p=351735#p351735
PostMessage, 1075, 2033, , , ahk_class TTOTAL_CMD
;Menu "SHOW > Only Selected Files" > cm_ShowOnlySelected=2023;Hide files which aren't selected
PostMessage, 1075, 2023, , , ahk_class TTOTAL_CMD
Code: Select all
------------------------------------------------------------------------------------------
AHK-Skript Files TC Button Marking Filtering
------------------------------------------------------------------------------------------
(1) TODAY Command: Path\To\xxx.ahk (1) red ---
Parameters: blank
Start path: blank
(2) TODAY Command: Path\To\xxx.ahk (2) --- Yes
Parameters: blank
Start path: blank
(3) TODAY Command: Path\To\xxx.ahk (3) red Yes
Parameters: blank
Start path: blank
------------------------------------------------------------------------------------------
(1) DATE of Command: Path\To\xxx.ahk (1) red ---
Cursor Parameters: %P%N
position Start path: blank
(2) DATE of Command: Path\To\xxx.ahk (2) --- Yes
Cursor Parameters: %P%N
position Start path: blank
(3) DATE of Command: Path\To\xxx.ahk (3) red Yes
Cursor Parameters: %P%N
position Start path: blank
------------------------------------------------------------------------------------------
(1) Mark-files-with-the-same-DATE.ahk
(2) Filter_files_with_the-same-DATE_and_display_only_these_files.ahk
(3) Filter_files_with_the-same-DATE_and_display_only_these_files_red-marking.ahk
Re: Select all files with same date?
Still hasn't a more elegant solution?
Only .vbs or .ahk ?
Only .vbs or .ahk ?
OS: Win10 | TC: latest x64
Re: Select all files with same date?
Nevertheless, just read the first two answers of this thread, if you doesn't want to use a script.