RE: Help with w32Func(xSendMessage,{})
- Posted by "Derek Parnell" <ddparnell at bigpond.com> Mar 22, 2004
- 456 views
> -----Original Message----- > From: CoJaBo [mailto:cojabo at suscom.net] > Subject: Help with w32Func(xSendMessage,{}) > > > > I am using w32Func(xSendMessage,{control,message,w,l}) to > send a simple > command to another program. > I have a few questions: > w32Func(xSendMessage,{control,message,w,l}) > Is there any way to set control to send to all main program windows? The 'control' parameter is the handle of a control. AFAIK, you can use HWND_BROADCAST to send to all main windows currently running. > What can I use for message that won't happen normally and won't mess You can define your own message types. See win32lib to see how we defined one for searching... FINDMSGSTRING = w32acquire_mem(0, "commdlg_FindReplace"), w32FindReplaceMsg = w32Func( RegisterWindowMessage, { FINDMSGSTRING } ) so now one can do ... w32Proc(xSendMessage, {HWND_BROADCAST, w32FindReplaceMsg, w, l }) > How high/low can w and l be? These are 32-bit values, meaning that you can send any integer in the range #00000000 to #FFFFFFFF. -- Derek