Sakartu / clipshare

Small program to share clipboard contents
https://github.com/Sakartu/clipshare
1 stars 0 forks source link

Add windows support #3

Open Sakartu opened 13 years ago

Sakartu commented 13 years ago

Can be done using:

import win32clipboard as w

def getText(): w.OpenClipboard() d=w.GetClipboardData(w.CF_TEXT) w.CloseClipboard() return d

def setText(aType,aString): w.OpenClipboard() w.EmptyClipboard() w.SetClipboardData(aType,aString) w.CloseClipboard()

together with:

import platform platform.win32_ver() ('XP', '5.1.2600', 'SP2', 'Multiprocessor Free') platform.system() 'Windows' platform.version() '5.1.2600' platform.release() 'XP'

Sakartu commented 13 years ago

Other stuff that has to be done for windows support: