Getting and setting the clipboard in Windows

Michel Claveau - abstraction méta-galactique non triviale en fuite perpétuelle. unseulmcmcmcmc at msupprimerlepoint.claveauPOINTcom
Thu Oct 7 18:35:07 CEST 2004


Hi !


This code run, on my CPU :


from win32clipboard import *
import win32con

if __name__=='__main__':
    OpenClipboard()
    txt=GetClipboardData(win32con.CF_TEXT)
    CloseClipboard()
    print txt

    OpenClipboard()
    EmptyClipboard()
    SetClipboardText("AZERTYUIOP123")
    CloseClipboard()


@-salutations
-- 
Michel Claveau
mél : http://cerbermail.com/?6J1TthIa8B
sites : http://mclaveau.com   http://bergoiata.org   http://ponx.org






More information about the Python-list mailing list