Re: [python-win32] pasting from clip-board

2005-04-21 Thread Daniel F
> The code below seems to work. > > def GetClipboardText(): > text = "" > if OpenClipboard(c_int(0)): > hClipMem = GetClipboardData(c_int(CF_TEXT)) > GlobalLock.restype = c_char_p > text = GlobalLock(c_int(hClipMem)) > GlobalUnlock(c_int(hClipMem

Re: [python-win32] pasting from clip-board

2005-04-21 Thread ryan pinto
Hi Everyone, William I found quite a lot of code on capturing text from the clip-board and pasting it. But couldnt find any information on pasting screenshots into MS-WORD. This seems to work fine for pasting text def GetClipboardText(): text = "" if OpenClipboard(c_int(0)):

Re: [python-win32] pasting from clip-board

2005-04-21 Thread Daniel F
> I am new to python WIN-32 and am trying to automate a > word document creation. I am trying to paste clipboard > that I capture from an application to MS Word and I > was wondering if this can be done through python > WIN-32. I am a doing a sequence of tests which saves > simulation results to th