Show/Hide Toolbars

Take Command / TCC Help v. 21

Navigation: TCC > Commands

POSTMSG

Scroll Prev Top Next More
Purpose:Post a message to a window

 

Format:POSTMSG "title" msg wparam lparam

 

titleThe window title
msgThe message to send
wParamwParam integer
lParamlParam integer value

 

Usage:

 

POSTMSG allows you to send a Windows message to any window with a caption.

 

The title may contain wildcards, and POSTMSG will send the message to the first window with a matching title.

 

If title begins with a =, it is assumed to be a process ID instead of a title. (Note that this is less reliable than providing a title, as a process can have multiple top-level windows.)

 

See the Windows SDK documentation for a list of possible messages and their parameters.