NoteWorthy Software, Inc.
2014-04-16 11:59 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Licensed NWC2 users can upgrade their community membership [more]
 
   Home   Help Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: PasteAsFile.vbs - Forum Utility  (Read 12272 times)
Rick G.
Virtuoso
« on: 2010-01-18 06:40 PM »

Attached is a VBScript utility to automate the transfer of nwctxt and clips directly from the Clipboard to NWC2. Copy all, or part of any Forum page to the Clipboard and run the utility. It will extract any clips or nwctxt found, create (or overwite) a file: "Clipboard.nwctxt", and launch the file into NWC2. Comments welcome.

Setup:
  • Download the attached file.
  • Remove the ".txt" extension.
  • Create a shortcut to it.
  • Change the shortcut's 'Start in:' folder to where you normally save *.nwc files. This is where "Clipboard.nwctxt" will be saved.

Usage:
  • Select some text. (usually from a Forum Topic page)
  • Copy to Clipboard.
  • Open (run) the Shortcut

A few test topics:

Notes: I use the Forum often, so I put my shortcut on the Favorites bar of IE8 as shown in the attachment. Anything you put in the 'Comment:' box of the shortcut becomes a Tool Tip.

To get the contents of the clipboard, the program uses the line:
  • e = CreateObject("htmlfile").parentWindow.clipboardData.getData("text")
This works in WinXP and IE8 with standard security settings. IE need not be your default browser but, some IE files must be present. If you cannot get this to work, and are willing to test some options, add a post to this topic and include your Windows version and browser version. I have other methods to access the Clipboard, including one that bypasses the browser completely.


* Topic 7088 rg01.png (9.85 KB, 610x324 - viewed 1261 times.)
* rg_PasteAsFile.vbs.txt (1.75 KB - downloaded 230 times.)
« Last Edit: 2012-01-25 05:44 PM by Rick G. » Logged

Registered user since 1996
Rick G.
Virtuoso
« Reply #1 on: 2010-02-25 04:56 PM »

Update to version 1.10

Added 2 optional commandline parameters:
  • /Copy
  • /CopyAll
These will send Ctrl+C and Ctrl+A, Ctrl+C respectively to the keyboard.
The shortcut must be placed in your browser for these to work properly.
/CopyAll takes precedence over /Copy

Code added to deal with new v2.1 clips. Examples: <here>.
« Last Edit: 2010-03-08 08:07 AM by Rick G. » Logged

Registered user since 1996
Rick G.
Virtuoso
« Reply #2 on: 2010-06-02 06:49 PM »

Update to version 1.20

Added support for Version 2.5 Beta
Logged

Registered user since 1996
Rick G.
Virtuoso
« Reply #3 on: 2012-01-25 05:43 PM »

Update to version 1.25

Added support for Version 2.5 Beta Clips.
Logged

Registered user since 1996
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by SMF 1.1.19 | SMF © 2013, Simple Machines
Page created in 0.902 seconds with 18 queries.

Copyright © 2014 Noteworthy Software, Inc.