Submit a series of URLs with Autohotkey

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
pvb
Posts: 8
Joined: 22 Dec 2017, 13:21

Submit a series of URLs with Autohotkey

12 Nov 2018, 17:00

Is there a way to crawl a series of URLs whereby Autohotkey can go down a list of URLs, submit them into the address bar? I want to take a list of around 100 URLs and use a hotkey to submit each one by using a hotkey to trigger the submission but then get the next URL in the sequence with another hotkey etc.

Is there a script for this or one I can modify?

Peter
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: Submit a series of URLs with Autohotkey

12 Nov 2018, 19:23

Code: Select all

i := 1
URLs := ["first", "second", "third"]

$q::Send % URLs[i]
$w::(++i > URLs.Count()) ? --i
$e::(--i < 1) ? ++i
w/e to go up/down the list
User avatar
joedf
Posts: 8960
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Submit a series of URLs with Autohotkey

12 Nov 2018, 23:50

Forum topic moved to 'Ask For Help'.
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
pvb
Posts: 8
Joined: 22 Dec 2017, 13:21

Re: Submit a series of URLs with Autohotkey

13 Nov 2018, 11:10

Thank you for the script. I tried this out but I am getting an error on line 2. The program is giving me an "illegal character" error. A sample of the syntax I am using is:

URLs := ["https://www.linkedin.com/in/xxx", "https://www.linkedin.com/in/yyy", "https://www.linkedin.com/in/zzz" ]

I tried with and without quotes and got the same error. Please advise.

Peter
gregster
Posts: 9022
Joined: 30 Sep 2013, 06:48

Re: Submit a series of URLs with Autohotkey

13 Nov 2018, 12:17

I cannot reproduce your problem with the code line you provided (yes, strings need quotation marks around them, in this case). Did swagfag's original script work for you?

Which AHK version are you running?
Try running a recent AHK version, if you haven't done already.
pvb
Posts: 8
Joined: 22 Dec 2017, 13:21

Re: Submit a series of URLs with Autohotkey

13 Nov 2018, 12:41

Bear in mind these are dummy links for purposes of the forum. See attachment photo with real links and the error to see if my syntax is flawed.

I am running Version 1.0.48.05

Is that the issue you think?

Thx,

PeterImage
gregster
Posts: 9022
Joined: 30 Sep 2013, 06:48

Re: Submit a series of URLs with Autohotkey

13 Nov 2018, 12:47

I am running Version 1.0.48.05

Is that the issue you think?
Yes, that is an ancient version (from 2009) which doesn't support arrays.
pvb
Posts: 8
Joined: 22 Dec 2017, 13:21

Re: Submit a series of URLs with Autohotkey

13 Nov 2018, 12:59

OK. Thank you.
The main reason I have not upgraded has to do with the use of Autoscript writer. I upgraded on another computer and found that it had been discontinued.
ahk7
Posts: 575
Joined: 06 Nov 2013, 16:35

Re: Submit a series of URLs with Autohotkey

13 Nov 2018, 14:18

Just copy scriptwriter.exe or whatever its called to your new computer and it will work but there are better solutions now:
1) macrocreator https://www.autohotkey.com/boards/viewforum.php?f=63 - elaborate
2) and https://autohotkey.com/boards/viewtopic.php?f=6&t=34184 - more compact
pvb
Posts: 8
Joined: 22 Dec 2017, 13:21

Re: Submit a series of URLs with Autohotkey

13 Nov 2018, 15:26

I solved the error by upgrading the version.

How do I run the script?
gregster
Posts: 9022
Joined: 30 Sep 2013, 06:48

Re: Submit a series of URLs with Autohotkey

13 Nov 2018, 15:40

Well, there are hotkeys in the script, like in AutoHotkey

q to send
w/e to go up/down the list
pvb
Posts: 8
Joined: 22 Dec 2017, 13:21

Re: Submit a series of URLs with Autohotkey

13 Nov 2018, 15:57

gregster, thank you. I see that in the script. The "$" is what is throwing me off.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], mikeyww, Oblomov228, PsysimSV, uchihito and 204 guests