Re: Issuing WM_COMMAND

"Alexandre Delattre" <[email protected]> Thu, 28 May 2009 05:22:26 +0200
Newsgroups gmane.comp.python.windows-ce
Message-ID <[email protected]>
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 ctypes to get the hwnd of the window you
want.

 

Hope it helps,

Alex

 

De : pythonce-bounces+alexandre.delattre=telecom-bretagne.eu@python.org
[mailto:pythonce-bounces+alexandre.delattre=telecom-bretagne.eu@python.org]
De la part de Marc Grondin
Envoyé : mercredi 27 mai 2009 18:56
À : [email protected]
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
october)

-- 
C-ya Later Take Care
Marc Grondin

_______________________________________________
PythonCE mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pythonce