3D Clipboard

A place to discuss 3D Clipboard

Sticky Item Workaround

Share actions you've created here.
Austin
Posts: 12
Joined: Wed Jul 06, 2011 9:16 pm

Sticky Item Workaround

Postby Austin » Wed Jul 20, 2011 11:27 pm

I have wanted specific items on my clipboard to always be available on my clipboard. I built a small Action that will read a text file on my hard drive and insert the contents onto my clipboard. The downside to this work around is that I need an Action and a file on my HD for every string I would like to have available.

Language: VBScript

Code: Select all

'Author: Austin James
'Date:   7/13/2011

Set oFSO = CreateObject("Scripting.FileSystemObject")
Set oFile = oFSO.OpenTextFile("C:\scripts\example.txt",1) 'Yes I should use a constant here.

Clipboard.Value = oFile.ReadAll
 
oFile.close
Set oFSO = Nothing

Return to “Actions”

 

 

cron