« Return to Thread: Issuing WM_COMMAND

Re: Issuing WM_COMMAND

by alexandre.delattre :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.

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

 « Return to Thread: Issuing WM_COMMAND