win32clipboard.SetClipboardData(win32clipboard.CF_UNICODETEXT, u'\u05e9\u05dc\u05d5\u05dd')
Oren 2008/6/29 Dror Cohen <[EMAIL PROTECTED]>: > Hi Everybody, > > I'm trying to make pyhton enter Hebrew code into my windows clipboard by > using win32clipboard commands. > So far I've been able to insert English text only into the clipboard. > > Example code: > >>> import win32clipboard > >>> win32clipboard.OpenClipboard() > >>> win32clipboard.SetClipboardText(u'\u05e9\u05dc\u05d5\u05dd') //Shalom - > שלום written in Hebrew letters > ///9371716 > >>> win32clipboard.CloseClipboard() > > and all I get is "ùìåí" when I do ctrl+v. > I'm using PythonWin and I'll be happy if Hebrew will work on it somehow. > I wouldn't mind doing it in other IDEs such as IDLE but for some reason my > whole script that uses PyHook doesn't work on it. It gets really slow with > IDLE. > > Thanks! :D > > Btw: I don't mind if you reply me in Hebrew. Every answer is appreciated. > > _______________________________________________ > Python-il mailing list > [email protected] > http://hamakor.org.il/cgi-bin/mailman/listinfo/python-il > >
_______________________________________________ Python-il mailing list [email protected] http://hamakor.org.il/cgi-bin/mailman/listinfo/python-il
