RSS Feed

Please wait while my feed loads

See more posts...

Newsletter

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
Requirements:
Languages: English
Software Cost: Free
Date Updated: 10 September 2013
Watchlist: Add download to my watchlist
Downloads To Date: 252
Developer: Stefan Kueng
RSS News Feed: http://sourceforge.net/api/file/index/project-id/1865059/mtime/desc/limit/20/rss
Buy Malwarebytes 3.0 Premium with a 1-PC license for only $29.99, saving 50% from store.downloadcrew.com
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

Wine 2.0.1

Open Source

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

WinAPIExec

WinAPIExec 1.2

Freeware

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

Freeware

 A dedicated Facebook messaging and notification tool for Windows users

Other Download Articles From This Category
ImageMagick

ImageMagick 7.0.7-11

Open Source

Create, edit and convert images from the command line

CudaText

CudaText 1.23.6.0 (64-bit)

Open Source

A powerful, portable Notepad replacement

CudaText

CudaText 1.23.6.0

Open Source

A powerful, portable Notepad replacement

Rapid CSS

Rapid CSS v2016 14.4

Trial Software

Quickly create and edit even the most complex cascading style sheets

From Softwarecrew

Please wait while my feed loads

See more posts...

 

Spotlight: Free Full Software

WhatsApp Messenger 2.17.61

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.17.61

- Search messages within a specific chat: Open any chat, tap the chat name at the top to go to Contact Info/Group Info, and then tap Chat Search.
- Design improvements for iOS 11.
- Post text-only updates to your status and they'll be visible for 24 hours. Just tap the pencil icon in the Status tab, type what you'd like to share, and pick a background color or font.

[...]
Value:
Free
Rating: