RSS Feed

Please wait while my feed loads

See more posts...


Subscribe to either one of our two newsletters for regular updates and information

Downloads newsletter

This is a weekly newsletter with download news, updates and other information

This is a monthly newsletter with software store information, offers and deals

SendMessage 1.1.4 (32-bit)

Control applications from shortcuts or the command line

by Mike Williams

Our Rating:
Your Rating:
Login to rate
Based on 0 ratings
License: Open Source
Operating Systems: Windows 7 (32 bit), Windows 8, Windows Vista (32 bit), Windows XP
Languages: English
Software Cost: Free
Date Updated: 10 September 2013
Watchlist: Add download to my watchlist
Downloads To Date: 258
Developer: Stefan Kueng
RSS News Feed:
Buy Malwarebytes 3.0 Premium with a 1-PC license for only $29.99, saving 50% from
SendMessage 1.1.4 (32-bit)
Control applications from shortcuts or the command line

SendMessage is a tool for sending Windows messages to any window. It's oriented very much at developers, but has applications for regular PC users, too (so if that's you, skip the next paragraph).

If you're a developer, then the program makes it easy to test how your application responds to a particular message - WM_ENDSESSION, say - without affecting anything else. There's a list of common messages built in, or you can specify another; you can enter WPARAM or LPARAM values; then choose your target window from a list, click "SendMessage" and watch the results.

What you can also do, though, is automate the process by passing parameters from the command line, and that has all kinds of possibilities. It can crash your system if you send the wrong message, so save your work first, but then try this example.

SendMessage.exe /message:16 /processname:cmd.exe

Message 16 is "WM_CLOSE", and so this one command will close every open command window on your system. Replace "cmd.exe" with some other executable name and it'll close that, instead.

You can also close windows by their title, like so:

SendMessage.exe /message:16 /windowtitle:"Untitled - Notepad"

That command will close every open Notepad window where you haven't opened or saved a file. (Or it'll try, anyway - if there's unsaved text then you'll be warned, first.)

If you just want to shut down programs from a shortcut then there are easier ways to do it, of course - the Windows TaskKill command in particular. But the whole point of SendMessage is it can handle any Windows message, which gives it all kinds of possibilities.

To minimize a window, say, try this.

SendMessage.exe /message:274 /windowtitle:"Untitled - Notepad" /wparam:61472

To maximize it, use this.

SendMessage.exe /message:274 /windowtitle:"Untitled - Notepad" /wparam:61488

You can even simulate clicks in an application. The following will click the Play/ Pause button in Windows Media Player.

SendMessage.exe /message:273 /windowtitle:"Windows Media Player" /wparam:32808 /lparam:0

Okay, that might not be something you want to automate right now, but it is a good example of the possibilities.

If you want to know more, then the documentation for scripting tools like AutoHotKey can provide some clues.

Be very careful, though. Sending the wrong messages could make an application behave oddly, or perhaps crash your system. Don't experiment while you've unsaved work.

Your Comments & Opinion
Related Download Articles

Wine 3.0

Open Source

Wine lets you run Windows applications directly on your Linux desktop without needing an emulator.


WinAPIExec 1.2


Call Windows API functions from the command line

SendMessage 1.1.4 (64-bit)

SendMessage 1.1.4 (64-bit)

Open Source

Control applications from shortcuts or the command line

Facebook Messenger

Facebook Messenger for Windows 2.1.4623


 A dedicated Facebook messaging and notification tool for Windows users

Other Download Articles From This Category

CudaText 1.50.0 (64-bit)

Open Source

A powerful, portable Notepad replacement


CudaText 1.50.0

Open Source

A powerful, portable Notepad replacement


HelpNDoc Personal Edition

Free, for personal-use only

Lightweight yet surprisingly powerful Help authoring tool and documentation generator

PilotEdit Lite

PilotEdit Lite 11.5.0


An incredible file editor that can be used for programming, web development and more

From Softwarecrew

Please wait while my feed loads

See more posts...


Spotlight: Free Full Software

WhatsApp Messenger 2.18.41

Free Full Commercial Software

WhatsApp Messenger is the world's most popular instant messaging app for smartphones.

You can use it to send and receive text and voice messages, photos, videos, even call your friends in other countries, and because it uses your phone's internet connection it might not cost you anything at all (depending on whether you'll pay data charges).

It's easy to set up and use. There's no need to create and remember new account names or pins because it works with your phone number, and uses your regular address book to find and connect you with friends who use WhatsApp already.

You can talk one-to-one or in group chats, and because you're always logged in there's no way to miss messages. Even if your phone is turned off, WhatsApp will save your messages and display them as soon as you're back online.

There's plenty more (location sharing, contact exchange, message broadcasting) and the app is free for a year, currently $0.99/ year afterwards.

What's New in Version 2.18.41

• You can now see recent status updates in the WhatsApp widget in your iPhone's Today View.
• Voice messages will now continue to play if you switch to another app or turn your screen off.