[PythonCE] Issuing WM_COMMAND

Alexandre Delattre alexandre.delattre at telecom-bretagne.eu
Thu May 28 05:22:26 CEST 2009

Hello Marc,

It is possible to send WM_COMMAND messages with pythonce, using ctypes to
interface native win32 


from ctypes import *

SendMessage = cdll.coredll.SendMessageW


WM_COMMAND = 0x111

SendMessage(hwnd, WM_COMMAND, wparam, lparam)


You can wrap other functions with ctypes to get the hwnd of the window you


Hope it helps,



De : pythonce-bounces+alexandre.delattre=telecom-bretagne.eu at python.org
[mailto:pythonce-bounces+alexandre.delattre=telecom-bretagne.eu at python.org]
De la part de Marc Grondin
Envoyé : mercredi 27 mai 2009 18:56
À : pythonce at python.org
Objet : [PythonCE] Issuing WM_COMMAND


Hello everyone,
I'm fairly new to python and pythonce and i have a quaetion. Is it possibble
to issue WM_COMMANDS on a WM device using pythonCE?(i have ver 2.5 from

C-ya Later Take Care
Marc Grondin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonce/attachments/20090528/7e268dc3/attachment.htm>

More information about the PythonCE mailing list