[python-win32] wait for new clipboard data?

2012-03-31 Thread reckoner
I'm doing some automation using Python and I'm looking for something similar to Autohotkey's Clipwait function. see here: http://www.autohotkey.com/docs/commands/ClipWait.htm This basically waits for new clipboard data after a previous copy operation (like ctrl+c). Thanks!

Re: [python-win32] wait for new clipboard data?

2012-03-31 Thread Mark Hammond
I think there is a clipboard watcher concept, but pywin32 doesn't expose it. One option might be to simply poll win32clipboard.GetClipboardSequenceNumber() - but the docs list some caveats which might mean it doesn't work in all cases (specifically in delayed rendering) Cheers, Mark On 1/