Skip to content

Instantly share code, notes, and snippets.

View gh-doot's full-sized avatar
😐
stuf

doot gh-doot

😐
stuf
  • 18:06 (UTC +04:00)
View GitHub Profile
Set objFS = CreateObject("Scripting.FileSystemObject")
outFile = "clip.txt"
oldClip = ""
Do
newClip = ClipBoard(Null)
If newClip <> oldClip Then
Set objFile = objFS.OpenTextFile(outFile, 8, True)
objFile.Write "############" & vbCrLf & ClipBoard(Null) & vbCrLf
objFile.Close