Messages - magician62 [ switch to compact view ]

Pages: prev1 [2] 3 4 5 6 7 ... 36next
6
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

7
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



8
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.donationcoder.com/forum/index.php?topic=34285.0

Regards John

9
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

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

Pages: prev1 [2] 3 4 5 6 7 ... 36next
Go to full version