Sticky Item Workaround

Share actions you've created here.
Post Reply
Posts: 12
Joined: Wed Jul 06, 2011 2:16 pm

Sticky Item Workaround

Post by Austin » Wed Jul 20, 2011 4: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
Set oFSO = Nothing

Post Reply