Re: [python-win32] Getting the text out of a listbox from another process

2006-05-21 Thread João Paulo Fernandes Farias
Hi! I've found the code bellow does what I want. Anyway to do it with ctypes / win32 extensions? #define WIN32_LEAN_AND_MEAN #include #include #include int main(void) { HWND hwnd=FindWindow(NULL, "Stealing Program's Memory: ListView"); HWND listview=FindWindowEx(hwnd, NULL, "SysListView32"

[python-win32] Getting the text out of a listbox from another process

2006-05-20 Thread João Paulo Fernandes Farias
Hi! Is there a way to get the text of the items in a listbox running in another application? I've tried to send LB_GETITEMDATA message to the listbox and it returns the addresses of the text (I think). How do I get the text? I've tried win32gui.PyGetString(addr) but it does not works. Thanks for