I made a command in VA that copies the last 10 CTRL+C to a file. When it gets to the 11th, it overwrites the file. Maybe it will help you out.
Set small int (condition) [Last 10] value as incremented by 1
Begin Small Integer Compare : [Last 10] Has Not Been Set
Set small int (condition) [Last 10] value to 1
End Condition
Begin Small Integer Compare : [Last 10] Equals 1
Press and release Left Ctrl+C keys
Write (overwrite), '{CLIP}' to file 'C:\Program Files (x86)\VoiceAttack Beta\Apps\Last 10 Clipboard History\Buffer.txt'
End Condition - Exit when condition met
Begin Small Integer Compare : [Last 10] Equals 2
Press and release Left Ctrl+C keys
Append, '{CLIP}' to file 'C:\Program Files (x86)\VoiceAttack Beta\Apps\Last 10 Clipboard History\Buffer.txt'
End Condition - Exit when condition met
Begin Small Integer Compare : [Last 10] Equals 3
Press and release Left Ctrl+C keys
Append, '{CLIP}' to file 'C:\Program Files (x86)\VoiceAttack Beta\Apps\Last 10 Clipboard History\Buffer.txt'
End Condition - Exit when condition met
Begin Small Integer Compare : [Last 10] Equals 4
Press and release Left Ctrl+C keys
Append, '{CLIP}' to file 'C:\Program Files (x86)\VoiceAttack Beta\Apps\Last 10 Clipboard History\Buffer.txt'
End Condition - Exit when condition met
Begin Small Integer Compare : [Last 10] Equals 5
Press and release Left Ctrl+C keys
Append, '{CLIP}' to file 'C:\Program Files (x86)\VoiceAttack Beta\Apps\Last 10 Clipboard History\Buffer.txt'
End Condition - Exit when condition met
Begin Small Integer Compare : [Last 10] Equals 6
Press and release Left Ctrl+C keys
Append, '{CLIP}' to file 'C:\Program Files (x86)\VoiceAttack Beta\Apps\Last 10 Clipboard History\Buffer.txt'
End Condition - Exit when condition met
Begin Small Integer Compare : [Last 10] Equals 7
Press and release Left Ctrl+C keys
Append, '{CLIP}' to file 'C:\Program Files (x86)\VoiceAttack Beta\Apps\Last 10 Clipboard History\Buffer.txt'
End Condition - Exit when condition met
Begin Small Integer Compare : [Last 10] Equals 8
Press and release Left Ctrl+C keys
Append, '{CLIP}' to file 'C:\Program Files (x86)\VoiceAttack Beta\Apps\Last 10 Clipboard History\Buffer.txt'
End Condition - Exit when condition met
Begin Small Integer Compare : [Last 10] Equals 9
Press and release Left Ctrl+C keys
Append, '{CLIP}' to file 'C:\Program Files (x86)\VoiceAttack Beta\Apps\Last 10 Clipboard History\Buffer.txt'
End Condition - Exit when condition met
Begin Small Integer Compare : [Last 10] Equals 10
Set small int (condition) [Last 10] value to 0
Press and release Left Ctrl+C keys
Append, '{CLIP}' to file 'C:\Program Files (x86)\VoiceAttack Beta\Apps\Last 10 Clipboard History\Buffer.txt'
End Condition - Exit when condition met