View Single Post
  #1  
Old 01-17-2013, 05:10 PM
timchampion timchampion is offline
Registered User
 
Join Date: Oct 2010
Posts: 23
Access to Windows clipboard

Does anyone know if it's possible for a SecureCRT / Python script to access the Windows clipboard? I'm thinking of writing a 'safe-paste' script for Cisco devices.... A user would:

a) copy their config script
b) switch to their CRT session
c) run the script which would start sending the contents of the Windows clipboard line by line.
d) Should the Cisco CLI throw an error, i.e. '% Invalid input detected at '^' marker.' the script would stop sending the remaining config and display a messagebox.

I've found lots of examples of going from screen to clipboard but not the reverse direction.

Cheers,

Tim
Reply With Quote