Re: how to get the spesific line of the text in the clipboard

2009-05-19 Thread MRAB
Tim Chase wrote: I want to get the eighth line in the text of the text in the clipboad, but when I call GetClipboardData I only get a string, how can I repair it? [snip] Split the string into lines and take the eighth line (at index 7). I've limited the number of splits to 8 because I'm not i

Re: how to get the spesific line of the text in the clipboard

2009-05-19 Thread Tim Chase
I want to get the eighth line in the text of the text in the clipboad, but when I call GetClipboardData I only get a string, how can I repair it? [snip] Split the string into lines and take the eighth line (at index 7). I've limited the number of splits to 8 because I'm not interested in any o

Re: how to get the spesific line of the text in the clipboard

2009-05-19 Thread MRAB
zhouhaifeng wrote: I want to get the eighth line in the text of the text in the clipboad, but when I call GetClipboardData I only get a string, how can I repair it? thanks a lot. My code is here : try: win32clipboard.OpenClipboard(hWnd) #win32api.Sleep(500)

how to get the spesific line of the text in the clipboard

2009-05-19 Thread zhouhaifeng
I want to get the eighth line in the text of the text in the clipboad, but when I call GetClipboardData I only get a string, how can I repair it? thanks a lot. My code is here : try: win32clipboard.OpenClipboard(hWnd) #win32api.Sleep(500) text = win32