Changelog collector

Discuss and share scripts and script files...
Post Reply
kiwichick
Posts: 675
Joined: 08 Aug 2012 04:14
Location: Windows 10 Pro 22H2, 150% scaling

Changelog collector

Post by kiwichick »

Hi there, I've been collecting the Changelogs and have written a script that will (once the Changelog is copied to clipboard) will create a new text file with the Changelog as the contents and named after the Changelog version and date (as long as it is selected as part of the text copied to the clipboard). I have an AutoCopy add-on installed in Firefox so it makes collecting the Changelog only a two-step process:

1. Select the Changelog text (automatically copied to clipboard).
2. Run the script to create the Changelog file.

Code: Select all

$a = substr("<clipboard>", 0, 24);
   $fileName = "$a.txt";
   $modFileName = writefile("C:\Users\Owner\Documents\XYplorer\changelog\$fileName", "<clipboard>", r);
   $fileName = (gettoken($modFileName, 2, "|") != "") ? gettoken($modFileName, 2, "|") : $fileName;
   focus(list);
   #485;
   sel 1; selectitems $fileName;
Windows 10 Pro 22H2

Post Reply