Page 1 of 1

Changelog collector

Posted: 13 Oct 2012 22:33
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;