topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Thursday December 5, 2024, 8:15 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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - magician62 [ switch to compact view ]

Pages: prev1 [2] 3 4 5 6 7 8next
26
Preferably in AHK so I can learn a little

I use Ancestry...

  In the past it would provide a search result list with links. You could right click the ones of interest into a new tab, or window. They have recently moved to javascript. which only allows you to open one choice in the current window. a right pain as it slows down everything you do !

First  a drop zone is needed where I can drag the javascript link.

On mouseover the status bars shows. 
javascript:SetCfpId(102049804500)

The variable we need is the bit between the brackets. In this example.
102049804500

The util will need a place for the user to store the "URL string" the javascript variable gets appended to.

example of "URL string"
https://www.ancestry.co.uk/family-tree/tree/12345678/family/familyview?cfpid=
On dropping the link, the real URL is assembled
eg
https://www.ancestry.co.uk/family-tree/tree/12345678/family/familyview?cfpid=102049804500

The resulting URL should ideally be launched in a new tab on the source browser window, or a new window.

Using Chrome.

TIA
John

27
I have used Files to folder on numerous occasions and it is very efficient at what it does, and seems to have many of the elements of the idea

I am in the process of restructuring how store some of my data, but it means re-structuring thousands of folders.
I need to be able to select a group of folders instead of files, and put them into a new directory in the same path location.

Example

Before
C:\+EXISTINGFOLDER [a01]
C:\+EXISTINGFOLDER [a02]

After
C:\+NEWFOLDER [C]\+EXISTINGFOLDER [a01]
C:\+NEWFOLDER [C]\+EXISTINGFOLDER [a02]

Constants
All Folders are prefixed by a plus "+".
EXISTINGFOLDER name will always be the same
The bracket "[ ]" Content of the source could be any 3 or 4 character alpha numeric, but he alpha will always prefix the numeric.
There is only one occurrence of brackets in the folder name, and it is always at the far right.

The new +NEWFOLDER bracket contents will always be a "C"

Either the user should be offered the option of providing the new "+NEWFOLDER [C]" name as in Files to Folders.

Or even better extract the complete new +NEWFOLDER name from the first +EXISTINGFOLDER name of the selected group and replace the bracket contents with "C".

Thanks for your help. If you need clarification, please let me know.

28
Post New Requests Here / Re: IDEA: Subfolder Creator
« on: April 16, 2019, 01:14 AM »
Unfortunately sometimes the download misses one or takes two copies. And to make things worse, the page code is broken. If you go one direction you get the numbers generally in random ascending order, but if you miss one and have to go back, the filename is different, or better put, the same as another page! 

29
Post New Requests Here / Re: IDEA: Subfolder Creator
« on: April 14, 2019, 06:50 AM »
Thank you for the answers and suggestions to improve. As I say a lot to learn. Although I played with php about 10, I have probably forgotten most of it, prior to that it was BASIC almost 40 years ago lol.

The nice thing is I use this process in various different cases so can adjust and re-use as needed.

At present it is for downloaded newspaper pages, where they may not be sequentially named. So dropping into the right folder allows for a subsequent quick rename using the folder as the new filename. Only 150 years of a weekly papers to work through. :)

30
Post New Requests Here / Re: IDEA: Subfolder Creator
« on: April 14, 2019, 02:50 AM »
I like your use of "quickly ". It is a relative term, and the closer you get to retirement, the longer "quickly" takes. :)

From what you have there I can see how the GUI is created. In my working version I have moved the box creation to the top which seems to work, but is there a reason not to do this? To me the logical progression is make a box, chose pen and ink, and write something with it. :)

I created a gosub for folder creation and dropped it to the bottom with the appropriate entries for folder creation.

The bit I had trouble with is a loop for a group of folders dropped. I took a while before I realised that your "Break" might be stopping a Loop through all the folders dropped  So tried substituting the gosub for the Break, and all seems to work!

Code: Autohotkey [Select]
  1. Gui, Show, w300 h300, Subfolder Creator
  2. Gui, font, s14 cBlack bold
  3. Gui, Add, Text, x150 y150, Drop folder
  4.  
  5. return
  6.  
  7. GuiDropFiles:
  8.  Loop, parse, A_GuiControlEvent, `n, `r
  9.   {
  10.     folder := A_LoopField
  11.     gosub,create_folder
  12.   }
  13.  
  14. return
  15.  
  16.  
  17.  
  18. create_folder:
  19.  if !InStr(FileExist(folder), "D")
  20.     return
  21.    FileCreateDir, %folder%\p01
  22.    FileCreateDir, %folder%\p02
  23.    FileCreateDir, %folder%\p03
  24.    FileCreateDir, %folder%\p04
  25.    FileCreateDir, %folder%\p05
  26.    FileCreateDir, %folder%\p06
  27.    FileCreateDir, %folder%\p07
  28.    FileCreateDir, %folder%\p08
  29.    FileCreateDir, %folder%\p09
  30.    FileCreateDir, %folder%\p10
  31.    FileCreateDir, %folder%\p11
  32.    FileCreateDir, %folder%\p12
  33. return

31
Post New Requests Here / Re: IDEA: Subfolder Creator
« on: April 13, 2019, 02:45 PM »
You have it correct
  :up:

Although I have looked at AHK in the past only bits of it made sense. I still have a long, long way to go. :)

32
Post New Requests Here / IDEA: Subfolder Creator
« on: April 13, 2019, 12:49 PM »
Ideally AHK so I can learn.

A dropzone where one or more folders can be dropped from various source locations.

Dropzone creates one or more empty folders of user defined name(s) inside dropped folder(s).

Sounds simple, but is it?

Purpose is to allow pre-population of folder sets for subsequent use.

TIA

33
Post New Requests Here / Re: How old is this file?
« on: December 29, 2018, 05:07 AM »
I tend to just properties a file to get a date. as I do the age bit in my head, and rarely care about Hours and Minutes

I can't code anything, but can prompt a couple of questions that may arise.

The important thing is how are you determining the age of the file?

Days since created?
Days since modified?

Date created is NOT always the older of the two? File copied form another location for example.


34
Post New Requests Here / Re: IDEA: Drag Drop renamer
« on: December 26, 2018, 01:41 AM »
OK, I believe I have identified part of the issue why it wasn't working as expected.

After using the suffix format "_Species_Name" I found it became cluttered, so tweaked it to _(Species_Names) which improved readability.
I also used the same technique to append the Location before the species name using "_(Location). Again it worked well, but didn't provide enough separation from "_Species_Name" so I decided to change the type of brackets fro Curved () to Square [], and that is when it all went wrong!

It looks like you can have a multitude of curved brackets, but as soon as you add a square bracket, no further additions will work!

Valid
_(Species_Names) _(Species_Names) _(Species_Names) _(Species_Names)
_(Species_Names)_[Location]
_[Location]

Not Valid
_[Location]_(Species_Names)
_[Location]_[Location]

Obviously, you wouldn't have two locations, but it does illustrate the issue of bracket type, thus limiting the methods usefulness

Also You can use Curly bracket {} but I can't tell the difference between curved. You can not use greater or less than <> either.

I assume this is down to the way Powershell works?

Maybe an AHK driven interface is the way to go in the long run, to make the whole thing faster and easier to configure for different uses using "profiles". Unfortunately I lack those skills


35
Is the machine set to shut down or hybrid hibernate which is the default on W10. If the latter it's not something like  a Wake on LAN or Wake on USB?

36
Post New Requests Here / Re: IDEA: Drag Drop renamer
« on: December 23, 2018, 04:20 AM »
Well it worked for a while.

Big issue was the number of files/speed.

When I had more than 1000 files it was far quicker to use alternative renaming utils, due to needing to submit 4 batches or more, but alternative methods did put at risk consistency.

Changing the shortcut as the appended name part evolved, was quite tedious, with over 200 different choices.

Over recent days, many of the shortcuts have failed to work, though they look identical format when propertied. My initial thought was use of () or{} brackets, but even [] which I had originally used has become an issue  Windows 10 is preparing for the fall up[date, I wonder if it has messed with this method.

I did use KodeZwerg's Shortcut Tuner  to tweak the Targets, maybe that has had an impact on this type of link.

Though even starting from scratch seems to have a problem, check it is not the AV. SO in effect back to square 1 :(





37
Post New Requests Here / Re: IDEA: Drag Drop renamer
« on: November 06, 2018, 02:07 AM »
Windows has a command line length limit.

Dropping too many files on it at once can exceed that limit.

But seems weird that it disallows then allows the same number.

Not sure whether Windows will break it into multiple commands.


This is what I was finding weird. I had expected I could drop the number to a point which would give me a clue. But to then accept greater numbers made little sense. The only thing I could think of was something interrupted the process. I will just have to make sure I don't try and rename too big a group :)

Accepted, it's not a perfect solution, but it has proven the concept works, and although it can be quite slow on larger batches. I would say having all the species in one screen does allow for a general increase in speed and easier processing.

The biggest time consumer is creating the shortcuts and setting icons.

I got the shortcut creation time down  creating a text list of all the species, prefixing with underscore and replacing spaces with underscore. Then prefixing the whole lot with the command. I then duplicated the shortcut 150 times renamed to species and finally properties to change the command inside.

I still have to finish the icon side :)

The concept will work for just about anything I want to add.

I also suffix with location, so have used the same technique for that too. Saves having to open a renaming program and select to create a rule for the change.

I can see a full fledged drag drop with creation from a data list would benefit those who predominantly use a mouse. 

All i need to do now is figure the best way of handling which camera in the filename. :)

38
Post New Requests Here / Re: IDEA: Drag Drop renamer
« on: November 05, 2018, 12:26 PM »
Have encountered an occasional issue with larger batches.

Though have not been able to narrow down. The number of files it will process seems to vary I started at 1000 error. Stepped down to around 300 error, then dropped close to above 255, worked Went back to 400, worked.
All filenames are of the same length.

Now it gets weird. The time taken for similar size batches is varying quite wildly, so something else must be going on.

39
Post New Requests Here / Re: IDEA: Drag Drop renamer
« on: November 05, 2018, 11:48 AM »
Files have no need to move. Rename is in same location.

The code used is
# DND-Rename.ps1
for ($i = 1; $i -lt $args.Count; $i++) {
Move-Item $args[$i] ($args[$i] -replace "(\.[^.]+$)", "$($args[0])`$1")
}

40
Post New Requests Here / Re: IDEA: Automagic Digital Photo Manager
« on: November 05, 2018, 07:30 AM »
A little observation, as I need to look further at this util. I work always in GMT for photograph times, but I suspect not all cameras do. :)

41
Post New Requests Here / Re: IDEA: Drag Drop renamer
« on: November 05, 2018, 07:25 AM »
I was using "move". :)

The irony on Icons was i have several graphics packages, just none allowed me to create icons!

I suspect part of my speed issue is, my system was a W10 upgrade from W7 rather than fresh install. I have occasions where if several large files are sent to my computer from another on the network, I can loose total control till completed. If I pull the same files, I have no problems. The solution is probably a format, but even when I upgraded, I really didn't fancy spending a month or more re-installing and reconfiguring everything to where I had it before. :)

A good way of describing, and it is not just this util. If I drag a number of files from an explorer window to my graphics program, I can not select any file in the source folder till all the files have loaded as I get a busy cursor. File "moves" see explorer processor usage go silly. It's almost as though it has forgotten to multi task. :)

42
Post New Requests Here / Re: IDEA: Drag Drop renamer
« on: November 05, 2018, 01:55 AM »
Try changing the shortcut Target to the following:

[Select]
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -NoExit -File "E:\Renamer\DnD-Rename.ps1" _Kingfisher

-ExecutionPolicy Bypass will tell Powershell to ignore all security settings and just run the script, (since it's rather simple this should be OK).
-NoExit will keep the console window open so you can read any errors.


That sorted it. :)

Now executes as intended.

A couple of issues I have identified,, which I suspect is a function of how windows now seems to work.

On processing large numbers of files 100+ (each 10-20mb). I am unable to add further files till they are processed, as windows will not allow them to be selected.

Having to create an icon... :)

Due to the way this works, it may not be suited to the original idea because of the delays it creates with larger groups of files, as mentioned that may be windows, but it does work very well for another task I have in mind. :)

43
Post New Requests Here / Re: IDEA: Drag Drop renamer
« on: November 04, 2018, 05:28 PM »
Not an All-in-One solution but just something simple in the meantime.




As best I can tell, I have done as stated but nothing appears to happen. Console window opens and closes, but that seems it. There does seem to be red writing at thee top of the console window, but not possible to read. Is there a way to make it persist?

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File "E:\Renamer\DnD-Rename.ps1" _Kingfisher


44
Post New Requests Here / Re: IDEA: Drag Drop renamer
« on: November 03, 2018, 04:06 AM »
* Stephen66515 waves
Waves back. :)

45
Post New Requests Here / Re: IDEA: Drag Drop renamer
« on: November 03, 2018, 03:48 AM »
I'm more the maker not the thinker. (even if i thought my idea mirrors request...)
I'm more the creator not the user. (even if standard wheel exists; i like to have my custom ones...)
And finally, if you need to think and rethink (maby due to the way i communicate), i do not harm anyone or want to convince anyone.
Free world for free softwares :-)

Your are in best hands @mouser  :-*
He can better communicate and final product does what he say.

Best wishes!


KodeZwerg.
I have no issue with how you communicate, we all do it differently, if we all did it the same the world would be very plain. If you have ever tried talking to some of the natives in England, even we have trouble understanding them even if born 10 miles down the road!

I think when I have something in my mind, reading anothers take on it can sometimes be harder as you try to see how it fits. Second coffee now taking effect :)

It does look like mouser may have a simple solution to piggyback existing tools, but thank you for your interest.


46
Post New Requests Here / Re: IDEA: Drag Drop renamer
« on: November 03, 2018, 03:04 AM »
Once I know how it works, it shouldn't be a problem.

Examples are good especially if regex is involved :)

I use a number of Skwire's utils that use regex and can normally muddle my way through. :)

If it uses regex and has a result preview option, even better. :)


I do have Bulk Rename Utility installed if that helps. :)

47
Post New Requests Here / Re: IDEA: Drag Drop renamer
« on: November 03, 2018, 02:56 AM »
Restatement of requirements

A user resizeable interface window which contains a variable number of tiles approximately 150px square.

Each tile should have the ability to allow an image thumbnail in place or overlayed on the tile

When one, or many files are dragged from Windows and "dropped" onto the appropriate tile. A predefined rename function should auto-magically be performed on the file(s)

Ideally this rename function is immediate, or in a running queue, so the original file is updated as soon as resources are available. ( This is to accommodate the possible effect of a renaming large group of files)

Does that make it easier?

48
Post New Requests Here / Re: IDEA: Drag Drop renamer
« on: November 03, 2018, 02:48 AM »
To intrude once more lightly into this thread.. A long while ago I wrote a program called Drag and Drop Robot: https://www.donation.../drag-and-drop-robot
That program let you drop files into a window and ran a batch commandline on each.

*IF* you could separate your needs into a gui drag and drop tool, and a commandline renamer, it wouldn't be too hard to take the Drag and Drop Robot Code and make it so there was a grid of drop targets with associated images, and a separate commandline specified for each target.  Dropping files onto a target cell would simply queue that commandline up in the batch queue.

Having said all that, it's still an interesting idea of kodezwerg or someone else wants to make a more dedicated renamer tool..
Interesting. Second coffee has arrived. :)

I will restate the requirement, which might make for an easier to split the functions, and your idea may then work.

49
Post New Requests Here / Re: IDEA: Drag Drop renamer
« on: November 03, 2018, 02:27 AM »
After first coffee

I will add the original source location should be from outside the utility, so once I catch up, I can wildcard the originating windows folders and work across a few.. We see about 150 species, but there is no real upper limit.

Just yesterday a little over 1000 images were added to the stack. :)

50
Post New Requests Here / Re: IDEA: Drag Drop renamer
« on: November 03, 2018, 02:21 AM »
If i may stick to my written text and your reply....

you mean the steps where i told about fileoperations and what boxes are doing... you want in fact virtual folders?

i mean....
the "boxes" thing what i mentioned and on screenshot displayed as large icons on right side

those should have some kind of "playlist" (stored locations of added files, just names, no actual files)
and my "execute" button will just rename original files in original folders and add them to selectex box.
opening a box will open something that look, feel and smell like explorer with whatever files you added.

that right?
Sorry, As mentioned in my reply to mouser, I am still digesting what you wrote. :)
It was a bit late last night for thinking too much. :) And I have read through a couple of times, slowly building in my mind a picture of what you propose.

Give ma a chance to down a few coffee, and I will have another read through this morning.

Pages: prev1 [2] 3 4 5 6 7 8next