[PythonCE] Issuing WM_COMMAND

2009-05-27 Thread Marc Grondin
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 october) -- C-ya Later Take Care Marc Grondin ___ PythonCE mailing list PythonCE@python.

Re: [PythonCE] Issuing WM_COMMAND

2009-05-27 Thread Alexandre Delattre
Hello Marc, It is possible to send WM_COMMAND messages with pythonce, using ctypes to interface native win32 Functions: from ctypes import * SendMessage = cdll.coredll.SendMessageW WM_COMMAND = 0x111 SendMessage(hwnd, WM_COMMAND, wparam, lparam) You can wrap other functions with ctyp