[python-win32] wait for new clipboard data?

Mark Hammond skippy.hammond at gmail.com
Sun Apr 1 04:09:17 CEST 2012


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/04/2012 2:09 AM, reckoner wrote:
> 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!
> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32




More information about the python-win32 mailing list