Jump to content

How to automatically save copied text & images to a new file?


Recommended Posts

Hello,

Could someone point me in the right direction how I would go about creating a little application that will automatically save anything copied to clipboard into a new file (possibly in RichText format)?

I would like the files to be saved in a single folder using date and time in the file name (i.e. clip---2012-07-13---09:17:23.rtf).

In addition, it would be great if this script could handle all types of data including images, text, tables, etc.

Any suggestions will be greatly appreciated.

Edited by substorm
Link to comment
Share on other sites

string the following together however you want them to create a file name:

like:

$sFileName = @MDay & "-" & etc etc

don't include ":" in your file name.

In the help file, search Macro Reference - Time And Date:

Macro Description @MSEC Milliseconds value of clock. Range is 000 to 999 @SEC Seconds value of clock. Range is 00 to 59 @MIN Minutes value of clock. Range is 00 to 59 @HOUR Hours value of clock in 24-hour format. Range is 00 to 23 @MDAY Current day of month. Range is 01 to 31 @MON Current month. Range is 01 to 12 @YEAR Current four-digit year @WDAY Numeric day of week. Range is 1 to 7 which corresponds to Sunday through Saturday. @YDAY Current day of year. Range is 001 to 366 (or 001 to 365 if not a leap year)

Edited by jdelaney
IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...