topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Friday May 20, 2022, 8:08 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: [1] 2 3 4 5 6 7next
1
Post New Requests Here / Re: IDEA: URL link updater
« on: May 04, 2022, 02:51 AM »
Hi Vic,

I finally got around to trying it, and it didn't seem to work. Well it did, but I didn't know it.

Part of the issue is I just found that some of the links I was testing were to the old aka subdomain, which is now obsolete

http://akas.imdb.com/title/tt0038889/

I don't know if there is a way to fix that as in insert "www" in place of "akas" at the same time, or at least accommodate it in the process, so the title gets fixed?


The only other issue is with "symbols in a name".

For example

It's

becomes

It's

Regards John

2
Post New Requests Here / Re: Help tweak an AHK script
« on: May 04, 2022, 02:21 AM »
myURLs =
(
d
e
z
)

WinActivate, ahk_exe chrome.exe
Sleep, 3000 ;Time to move focus to Chrome
Send, +!,

Loop, Parse, myURLs, `n
{
    SendInput, ^l
    Sleep, 750
    SendInput, % A_LoopField
    Sleep, 1000
    SendInput, {ENTER}
    Sleep, 2000
    SendInput, {ENTER}
    Sleep, 3000
    SendInput, {ENTER}
    Sleep, 2000
}

Many thanks highend01.

In removing unneeded stuff to achieve what I wanted from the original code, and then merging what was left to reduce it. Due to my lack of knowledge, I totally missed the obvious solution.

This can be marked as SOLVED



3
Post New Requests Here / Re: Help tweak an AHK script
« on: May 03, 2022, 03:46 PM »
Open a URL, hit enter twice to respond to save dialog, then move onto the next in the list URL. Currently all URL are on one site, but maybe different in future.

This is where your original code came from.
https://www.donation...ex.php?topic=34285.0

Regards John

4
Post New Requests Here / [SOLVED] Help tweak an AHK script
« on: May 03, 2022, 12:38 PM »
First, if there is a better forum for this post, please feel free to move it.

In trying to find a  solution to a repetitive task, I found some old code by skwire, which was almost perfect. It did what I wanted but required a key combination to move to the next string in the array. I wanted to  see if I could get it to run by itself.

I have a very basic understanding of it's function, and how now tweaked to to the following. The only thing I have not been able to work out is how to stop the loop when the array matches "z", which would allow for a variable length array. So for the moment I have set the loop to 3. Please note d, e, and z in the array are just placeholders for URL's.

myURLs =
(
d
e
z
)
 
StringSplit, myURLsArray, myURLs, `n

WinActivate, ahk_exe chrome.exe
Sleep, 3000 ;Time to move focus to Chrome
Send, +!,

Loop, 3
{
    myCounter++
    % ( myCounter > myURLsArray0 ) ? ( myCounter := 1 ) : ()
    myURL := "myURLsArray" . myCounter
    SendInput, ^l
    Sleep, 750
    SendInput, % %myURL%
    Sleep, 1000
    SendInput, {ENTER}
    Sleep, 2000
    SendInput, {ENTER}
    Sleep, 3000
    SendInput, {ENTER}
    Sleep, 2000
}

If someone can guide me into what I need to do, it would be appreciated. If you wonder, the three SendInput {ENTER} are deliberate.

Regards John

5
Post New Requests Here / Re: IDEA: URL link updater
« on: February 18, 2022, 06:27 PM »
I take it you also want a checkbox/option for updated filename to match the new title, correct?

The main purpose is to update the filename, so a checkbox is probably unnecessary, as the URL doesn't change except...

I found earlier some of my links were to "also known as" titles link. So the URL included "akas." An option to strip that might be good as the old links are dead. :) I have looked at skwire's SCURLed to fix those, but at present it doesn't seem to work..

Once I have the right name/year to click, if it took me to the obsolete akas link, it is only a couple of clicks to fix.

6
N.A.N.Y. 2019 / Re: NANY 2019 Release: SCURLed
« on: February 18, 2022, 01:47 PM »
Not sure if this is a bug due to Windows updates...

I loaded a URL link.

https://akas.imdb.com/title/tt0020678/

Run search and replace "akas" to "www"

Applied changes to list and the list updates.

Click Save all changes, but link still shows its original akas destination. And no change has been made.


When looking at the properties in Windows Explorer "Link Target" and "URL" still show as "akas"

I have also tried single edit which also failed.

One feature that seems to be missing is an option to clear the list.

7
Post New Requests Here / IDEA: URL link updater
« on: February 18, 2022, 04:56 AM »
I have in the past created local URL shortcuts to IMDB for some of the old movies I enjoy.

I would like to update them as newer links are in a slightly different format, which has become a bigger issue when you find some of those older titles were used in more than one year.

For example

The actual URL remains the same, but the descriptive has changed

Roll on Texas Moon - IMDb
http://www.imdb.com/title/tt0038889/

is now

Roll on Texas Moon (1946) - IMDb
http://www.imdb.com/title/tt0038889/

I haven't found anything through a google search.

Ideally any util must handle bulk from different folders.
Preferably drag and drop.

Though saying that what issue would there really be in updating a new format to a new format. :)

I guess the util would go to the existing destination
Delete existing link
Create new link from destination.

Or just update the existing link.

Thanks in advance

8
I use MyFolders. Maybe worth a look

https://www.coretech.../products/MyFolders/

9
Hi Jody.

I simplified my pattern and did a quick test, just in case it was something in the long path I had.

Screenshot_20220117_04_19-Entry.jpg

Simulation result

E:\TEST\start\Groupname - Filename.txt --> E:\TEST\finish\Groupname\??1 \Groupname - Filename.txt

The end result should have been

E:\TEST\start\Groupname - Filename.txt --> E:\TEST\finish\Groupname\Groupname\Groupname - Filename.txt

Obviously this is a stripped down version of what I am trying to do. 

Curiously there is a space after the "??1 " in the simulation.

10
Is it possible to re-use the output variables?

Such as Destination like

....\??1\??1 ??2

11
Post New Requests Here / Re: IDEA: Drag and Drop Rename
« on: September 28, 2021, 05:36 AM »
Just downloaded. Hopefully I will get a chance to try it this evening. Will report back on how it goes

Regards John

12
Post New Requests Here / Re: IDEA: Drag and Drop Rename
« on: September 24, 2021, 04:41 PM »
Couple questions...

1) I don't know Autohotkey but I can make it in another language called Visual Dialogscript. LMK if you are OK with that.
2) When drag/drop a folder, is it to just rename the folder or all the files in the folder?

The only reason AHK was I am slowly picking up on bits of how it works, And seeing how to do something I understand helps with learning.

Applicable to the item dropped, not recursive through lower levels.

Example of application.
We have been scanning old paperwork, but as the scanner is auto feed it gives a simple sequential filename. Where there are multiple pages to a document we drop them in a folder. Often just generate 100 empty folders, you know New Folder and New Folder - Copy etc..:)

We then zip or rar the folder and change the filename to cbz cbr and use a comicbook reader CDisplay for viewing

13
Post New Requests Here / IDEA: Drag and Drop Rename
« on: September 24, 2021, 12:09 PM »
Preferably in AHK to aid learning.

As far as I know none of the existing programs to perform a rename function allow for this in a simple way.

We often need to rename a bunch of files or folders, where there are effectively two parts to the name. A constant across many files and a variable with no simple pattern. So they get done one at a time.

A GUI would be needed with a drop zone.

A selector for files or folders. or separate areas.

Two fields would also be required, let's call them something original, say, "Field 1" and "Field 2".

Field 1 - The constant
Field 2 - The variable

Any separators between Field 1 and Field 2 are the responsibility of the user/

Ideally Field 1 would have a history option for used values which is autosaved.
But also a clear history option should be available to avoid it growing too far.

On dropping a file or folder on the GUI the filename will be replaced with "Field 1"+"Field 2".
Whilst the file type for files remains untouched

Example:

For a file.
Existing filename = "dght62jkdkl.jpg"
Field 1 = "My New Filename - "
Field 2 = "123456

Result "My New Filename - 123456.jpg

For a folder.
Existing filename = "dght62jkdkl"
Field 1 = "My New Foldername - "
Field 2 = "123456

Result "My New Foldername - 123456

It maybe easier to have a GUI with two sides, left for folders, right for files, with their own history.

How to handle collisions? As we are only dropping 1 file and a suffix enumerator? Or just throw an error and warning notice?

Thanks in advance.



14
It works It works. Many thanks indeed.

15

Please try with latest version (v0.1.0) at: https://github.com/p.../releases/tag/v0.1.0

Thanks!
-publicdomain (April 11, 2021, 03:37 PM)


No noticeable difference. Still counts number launched, but nothing appears.

Is there a way to tweak it so it just outputs what I have dragged and what it is proposing to do?

I did try editing the settings to make LaunchRegex the same as resulting page, the theory was no matter what was dropped it would execute a valid result. That didn't do anything either, but then I was guessing. :)

16
I think I am am going to have to try again in the morning. I downloaded, but nothing appeared to happen. I edited the tree URL. It indicated it had launched after a drop, but nothing seen.

I also found another ancestry Feature. If you use the tree search from a persons profile, it still provides a real link. It's great they code for consistency, NOT! :)

17
Sorry I have been absent for a few days, though it seems like years. :) Will take a look later when I return. :) I hadn't realised how long it has been since I last checked my emails!

18
Sorry for the slow reply, days have just disappeared of late.

Yes, Chrome only. I rarely use Firefox, never Edge. and only use IE if nothing else works. :)

19
Many thanks for the reply Vic.

I am noticing more and more each day, websites making things "harder"/"slower". I wonder how much is to make it mobile compatible. Not that anyone would have several screens open at the same time on multiple monitors. :)

20
The links I refer to are those provided when in "tree view" and you do a "tree search".

Screenshot_20210324_03_11-Family View - Ancestry.com.jpg

21
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

22
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.

23
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! 

24
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. :)

25
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

Pages: [1] 2 3 4 5 6 7next