topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday December 13, 2024, 6:02 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Prepend Numbers, Serially, To Desktop Items Selected  (Read 5202 times)

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 554
    • View Profile
    • Donate to Member
Prepend Numbers, Serially, To Desktop Items Selected
« on: January 17, 2022, 07:43 PM »
New request, perhaps not even possible presently....

Suppose Windows desktop.

Highlight a set of desktop items/icons.  Say, horizontally.  Three items.  So, three across.

Given the three highlighted items, attach a number to each, serially, across, from left to right, padded with zeros (if requested by user), plus a space.

Example:

x, y, z --> 01 x, 02 y, 03 z

Is this possible by any means other than manually?

Why requesting?

Suppose user has created a series of steps laid out on the desktop.  A series of batch files, say, that requires executing in a very particular order.  Or text files outlining steps that must be executed in a particular order.

User does not want to continue taking up the desktop space with the ordered set across said desktop.  User would rather place all these into a folder, on desktop, or somewhere else.

If user simply places all these items into a folder, they will be rearranged by Windows, sorted, if you will.  Critical arrangement that was shown on desktop will be lost.

Given the prepended number, sorting by name easily arranges as wanted.

Comments greatly appreciated.

Nicholas Kormanik

p.s. -- This sort of issue points to a huge desktop problem.  I would really, really like to see a permanent sort of desktop(s) that is very much like a physical white board.  Arrange.  Save.  Leave.  Create another.  Arrange.  Save.  Leave.  Backup.  Etc., etc., etc.  On the desktop(s) would be the usual assortment of files, icons, folders, shortcuts, etc.

Presently I don't think this is possible.  Hugely needed!



publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 736
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Prepend Numbers, Serially, To Desktop Items Selected
« Reply #1 on: January 18, 2022, 10:13 AM »
HI Nick, I can create a serial file copier/mover to a folder if you need.

It can be done semi-automated if user adds files one at a time (i.e. right-click, send-to program / drag & drop). The program would use addition order as the index for naming: 1st file added == 01 x, 2nd file == 02 y, 3rd file == 03 z, and so on.

For the user to have certainty of actual naming order when batch-adding, it must be done manually after all files are received by the program. An interface with UP, DOWN, FIRST, LAST or "drag item to relocate" would be then employed to order listed files, prior to mass copying/moving with prepended numbers in the name.

Would something like this suffice?  :)

Cheers!
Vic
My name's Victor but do feel free to call me Vic! (now known as "paradisusvic")

❤️ Support on Patreon @ www.patreon.com/paradisusis
New Email/Paypal: paradisusvicgmail.com

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 554
    • View Profile
    • Donate to Member
Re: Prepend Numbers, Serially, To Desktop Items Selected
« Reply #2 on: January 18, 2022, 07:40 PM »
Vic!, you are the one with limited time, energy, money.  You'll have to decide if such an endeavor would be worthwhile.

I, for one, would find such a program quite useful.

Thanks so much for responding!


publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 736
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Prepend Numbers, Serially, To Desktop Items Selected
« Reply #3 on: January 21, 2022, 01:53 AM »
You'll have to decide if such an endeavor would be worthwhile.

Helping is always worthwhile amigo 🤗

New "nkPrepend" repo open @ https://github.com/p...blicdomain/nkprepend

I'm picking it up during my coding spree of releases to close the month :Thmbsup:

Big hug
My name's Victor but do feel free to call me Vic! (now known as "paradisusvic")

❤️ Support on Patreon @ www.patreon.com/paradisusis
New Email/Paypal: paradisusvicgmail.com
« Last Edit: January 21, 2022, 03:48 AM by publicdomain »

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 554
    • View Profile
    • Donate to Member
Re: Prepend Numbers, Serially, To Desktop Items Selected
« Reply #4 on: January 21, 2022, 03:12 AM »
Vic, some 'rename' programs might offer this same functionality.

Thus, not a huge priority, unless others here chime in showing support and encouragement.

But, as always, I greatly appreciate your positive can-do attitude.




BGM

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 563
    • View Profile
    • bgmCoder DC
    • Read more about this member.
    • Donate to Member
Re: Prepend Numbers, Serially, To Desktop Items Selected
« Reply #5 on: January 21, 2022, 05:55 AM »
Are you coding in Autohotkey?  I've written this code before, and for files, in fact.

publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 736
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Prepend Numbers, Serially, To Desktop Items Selected
« Reply #6 on: January 21, 2022, 06:20 AM »
Hello & good day BGM!

Are you coding in Autohotkey?

C#, "traditional" exe.

I've written this code before, and for files, in fact.

By all means, feel free to post it here!

Cheers :Thmbsup:
My name's Victor but do feel free to call me Vic! (now known as "paradisusvic")

❤️ Support on Patreon @ www.patreon.com/paradisusis
New Email/Paypal: paradisusvicgmail.com

BGM

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 563
    • View Profile
    • bgmCoder DC
    • Read more about this member.
    • Donate to Member
Re: Prepend Numbers, Serially, To Desktop Items Selected
« Reply #7 on: January 21, 2022, 11:17 AM »
hee hee, how's this?

Code: Autohotkey [Select]
  1. ;adds numbering to existing text
  2. NumberLines(whatstring){
  3.         newstring := ""
  4.         Loop, parse, whatstring, `n
  5.         {
  6.                 newstring := newstring . a_index . a_tab . a_loopfield
  7.         }
  8.         return newstring
  9. }

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,169
    • View Profile
    • Donate to Member
Re: Prepend Numbers, Serially, To Desktop Items Selected
« Reply #8 on: January 22, 2022, 07:34 AM »
That's a super duper niche request ;D Seems like a very small set of people who need to incrementally prefix rename desktop icons in horizontal order often enough that starting a dedicated tool could save them time compared to doing it manually?

A tip if anyone goes for it: There are existing functions in the AutoHotkey forums for getting filepaths from selected Desktop files and also for getting the X Y position of all Desktop icons. Use both to find the horizontal order.

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 554
    • View Profile
    • Donate to Member
Re: Prepend Numbers, Serially, To Desktop Items Selected
« Reply #9 on: January 22, 2022, 04:45 PM »
Agree.  I was mostly venting.  Frustration at Windows not having as many whiteboard-like desktops as user desires.

Vic! has bigger fish to fry.

He's definitely a trooper, though.  Amazing guy....


publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 736
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Prepend Numbers, Serially, To Desktop Items Selected
« Reply #10 on: January 29, 2022, 09:23 PM »
Thanks for the positive words AMIGO :) nkPrepend is the next [ALPHA] release:

Just sorting the dynamic drag&drop item reordering + auto-scroll (when there are more items than the list view displays at a time); it's actually about to be put online :Thmbsup:

nkPrepend_v0-1-0.png
My name's Victor but do feel free to call me Vic! (now known as "paradisusvic")

❤️ Support on Patreon @ www.patreon.com/paradisusis
New Email/Paypal: paradisusvicgmail.com
« Last Edit: March 27, 2022, 03:47 PM by publicdomain »

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 554
    • View Profile
    • Donate to Member
Re: Prepend Numbers, Serially, To Desktop Items Selected
« Reply #11 on: January 30, 2022, 09:28 PM »
Looks super Vic!  I think people will like it.

Thought of another request.  Will start a new topic....

publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 736
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Prepend Numbers, Serially, To Desktop Items Selected
« Reply #12 on: March 27, 2022, 06:34 PM »
Hi Nick! nkPrepend v0.1.0 is here :)

Thread: https://www.donation...ex.php?topic=52226.0

Enjoy! :Thmbsup:
Vic
My name's Victor but do feel free to call me Vic! (now known as "paradisusvic")

❤️ Support on Patreon @ www.patreon.com/paradisusis
New Email/Paypal: paradisusvicgmail.com