[python-win32] Rewriting my previous question....

Mark Mc Mahon mark.m.mcmahon at gmail.com
Mon May 22 15:19:25 CEST 2006


Hi JP,

On 5/20/06, João Paulo Fernandes Farias <jpaulofarias at gmail.com> wrote:
> Hi!
>
> I'll rewrite my previous question...
>
> How do I get data from another process using win32gui.SendMessage()
> when it needs some pointers to fill in the data?
>
> I know it is more likely possible cause winspector can show the text
> from some messages like LVM_SETITEMTEXTA where the user uses a pointer
> to a structure to pass in the text to set on a SysListView32 item.

You mentioned that ctypes might be OK? If you download pywinauto then
you should be able to cut and paste the code you need :-) Look into
pywinauto\controls\common_controls.py (if you need ListView as your
code snipped seems to suggest). I have wrapped the equivalent C code
that you showed previously.

Hope that helps,

Mark

>
> How do I do that with win32 extensions?
>
> --
> JP
> _______________________________________________
> Python-win32 mailing list
> Python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32
>


More information about the Python-win32 mailing list