Selects a specific number of items

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Suamy2KArg
Junior Member
Junior Member
Posts: 2
Joined: 2025-03-15, 08:28 UTC

Selects a specific number of items

Post by *Suamy2KArg »

Hi everyone... as a newbie to this and also working with large amounts of files, I've taken the liberty of using GPT to create this script that simply selects a specific number of items from the visible panel, regardless of type or format...
When you call it, in my case I attached it to the bar, it displays a box to enter the number of items to select and that's it...
I apologize in advance if this isn't the place to do it, and I'd appreciate your comments and guidance. I've searched before posting and haven't found a way to do it using plugins. If it already exists, please let me know!
It's an .ahk (AutoHoykey) script compiled to .exe. I'm also leaving the code for anyone who wants to improve it if they wish.
Here's the link to my Google Drive.

https://drive.google.com/file/d/1c1PJxzUFWbkWDo0AtSKZuGrhbuQhEGAO/view?usp=drive_link

Image: https://drive.google.com/file/d/1zEu-uHK8ii_Dv1sLhDKyqoWSzbaVbE16/view?usp=drive_link
Image: https://drive.google.com/file/d/1ARKbJPt-t0NEuc9laFE1XJYFPBBChYos/view?usp=drive_link
Image: https://drive.google.com/file/d/1yFzvUDyAXJaXlCsApMaeMhA2CZ1sN7o-/view?usp=drive_link

CHEERS :wink:
Last edited by Suamy2KArg on 2025-04-12, 00:52 UTC, edited 1 time in total.
User avatar
white
Power Member
Power Member
Posts: 5743
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Selects a specific number of items

Post by *white »

Moderator message from: white » 2025-04-12, 11:33 UTC

Split from old seemingly unrelated topic in Suggestions forum to a new thread in forum Plugins and addons: devel.+support (English)
User avatar
white
Power Member
Power Member
Posts: 5743
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Selects a specific number of items

Post by *white »

2Suamy2KArg
You included a link to an old not working ahk script. And the zip file is not complete according to the readme.txt file.

(The ahk script can be found in the exe file, at the end. The file is compiled using "v1.1.37.02 U64 AutohotkeyU64.exe" as base file.)
Fla$her
Power Member
Power Member
Posts: 2981
Joined: 2020-01-18, 04:03 UTC

Re: Selects a specific number of items

Post by *Fla$her »

Suamy2KArg wrote: 2025-04-12, 00:34 UTC If it already exists, please let me know!
Button code:

Code: Select all

TOTALCMD#BAR#DATA
cm_Select
?<Enter the number of items>
wcmicon2.dll,21
Select the specified number of items, starting from the current position
It's the same with cm_Unselect and cm_Reverse.

You can execute hh.exe %COMMANDER_PATH%\TOTALCMD.CHM::dlg_choosecommand.htm from the command line and learn about other commands.
Overquoting is evil! 👎
User avatar
Suamy2KArg
Junior Member
Junior Member
Posts: 2
Joined: 2025-03-15, 08:28 UTC

Re: Selects a specific number of items

Post by *Suamy2KArg »

2white
2Fla$her
Thanks guys for the clarifications, I'll try to fix it and reupload it. Sorry for my mistake.
Post Reply