How to get the files list according to the files order in the explorer window?
There are a lot of files to be processed, and some explorer windows have tens of thousands or hundreds of thousands of files.
One way is:
Use the Loop Files method to get, the order of the obtained files is different from that in the window.
This also cannot get the file list in the searched window.
The file order in the file window is natural sorting,
as well as modification date, file type, file size sorting, etc.,
and various sorts are combined with natural sorting.
It is very troublesome to restore the files obtained by the Loop Files method to the original order in the explorer window!
Another way :
for window in ComObjCreate("Shell.Application").Windows
if window.HWND = WinExist("A")
. .. .this_window := window
for item in this_window.Document.Folder.Items
. .. .file_path := item.Path
This method can also obtain the file list in the searched window.
The disadvantage is that the speed of obtaining is relatively slow.
When the number of files is thousands or even tens of thousands, it will take a long time.
Is there any other better way to get the file list according to the file order in the explorer window?
Or is there any script in this regard for reference?
- Home Board index AutoHotkey Ask For Help
- Search
-
- It is currently 18 Jan 2021, 19:04
- All times are UTC-05:00
How to get the files list according to the files order in the explorer window?
Get help with using AutoHotkey and its commands and hotkeys
Jump to
- AutoHotkey Foundation
- ↳ About This Community
- ↳ Forum Issues
- AutoHotkey
- ↳ Ask For Help
- ↳ Gaming
- ↳ AutoHotkey v2 Help
- ↳ Scripts and Functions
- ↳ Gaming
- ↳ AutoHotkey v2 Scripts and Functions
- ↳ Tutorials
- ↳ Tips and Tricks
- ↳ Wish List
- ↳ Suggestions on documentation improvements
- ↳ Bug Reports
- ↳ AutoHotkey v2 Development
- ↳ AutoHotkey_H
- ↳ Ask For Help
- ↳ Development
- ↳ Announcements
- ↳ Editors
- ↳ AHK Studio
- ↳ Pulovers Macro Creator
- ↳ SciTE4AutoHotkey
- ↳ AutoGUI
- ↳ General Discussion
- General
- ↳ Other Utilities & Resources
- ↳ Other Programming Languages
- ↳ C/C++
- ↳ ASM
- ↳ C#
- ↳ Offtopic
- ↳ RPA
- Other languages
- ↳ Deutsch (German)
- ↳ Ich brauche Hilfe
- ↳ Spiele
- ↳ Skripte und Funktionen
- ↳ Tutorials
- ↳ Tooltime
- ↳ Allgemeines
- ↳ 中文 (Chinese)
- ↳ 请求帮助
- ↳ 脚本函数
- ↳ 教程资料
- ↳ 相关工具
- ↳ 其他
- ↳ Español (Spanish)
- ↳ Pedir Ayuda
- ↳ Automatización de Juegos
- ↳ Scripts y Funciones
- ↳ Tutoriales
- ↳ Otras Utilidades y Recursos
- ↳ General
- ↳ Русский (Russian)
- ↳ Помощь
- ↳ Скрипты для Игр
- ↳ Скрипты и библиотеки
- ↳ Статьи и руководства
- ↳ Прочие ресурсы и ПО.
- ↳ Свободное общение
- ↳ Français (French)
- ↳ J'ai besoin d'aide
- ↳ Scripts et Fonctions
- ↳ Tutoriels
- ↳ Autres Utilitaires et Ressources
- ↳ Hors Sujet
- ↳ Português (Portuguese)
- ↳ Ajuda e Suporte Geral
- ↳ Scripts e Funções
- ↳ Tutoriais
- ↳ Outras Ferramentas e Recursos
- ↳ Outros Assuntos
- ↳ 한국어 (Korean)