copy & paste text on a page source line to notepad, for multiple tabs?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
autohotkeycool
Posts: 137
Joined: 24 May 2016, 08:23

copy & paste text on a page source line to notepad, for multiple tabs?

Post by autohotkeycool » 05 Dec 2020, 06:42

Im trying to automatically copy a line of text in a urls page source , and copy it into the notepad, for multiple tabs – eg ive about 30 tabs open and I want to copy line 330 of the urls page source for all of these tabs and paste them all into a notepad, could anyone explain how to do this using AHK?

Eg id be copying line 330 in this page view-source:https://www.attheraces.com/racecard/Aintree/05-December-2020/1145/pacechart

ahk7
Posts: 575
Joined: 06 Nov 2013, 16:35

Re: copy & paste text on a page source line to notepad, for multiple tabs?

Post by ahk7 » 05 Dec 2020, 07:17

Depending on the page (dynamic data only presented in a browser) you might just as well use

* the https://www.autohotkey.com/docs/commands/URLDownloadToFile.htm command and
* then https://www.autohotkey.com/docs/commands/FileReadLine.htm each line into a variable, and
* use https://www.autohotkey.com/docs/commands/FileAppend.htm to write it to a file avoiding the need for pasting in notepad.

Post Reply

Return to “Ask for Help (v1)”