Sign in to follow this  
Followers 0
substorm

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

3 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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.

Share this post


Link to post
Share on other sites

Thanks for your help. Are there any scripts in existance that you know that perform a similar function? I am very new to scripting and would be very helpful if I could learn by example.

Share this post


Link to post
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
Sign in to follow this  
Followers 0