Questions tagged [sendmessage]

Sends the specified message to a window or windows. The SendMessage function calls the window procedure for the specified window and does not return until the window procedure has processed the message.

Sends the specified message to a window or windows. The SendMessage function calls the window procedure for the specified window and does not return until the window procedure has processed the message.

Official documentation.

943 questions
11
votes
1 answer

Chrome Extension - From the DOM to Popup.js message passing

I'm trying to get a simple Google Chrome extension working where a message/variable flows through each of the following steps ... DOM content (from specific HTML tag) Contentscript.js Background.js Popup.js Popup.html I've figured out how to send…
Ryan Grush
  • 2,076
  • 3
  • 37
  • 64
10
votes
2 answers

Send Email when value changes in Google Spreadsheet

I am trying to figure out, how do the following in Google Spreadsheet. Send email when a value changes in a cell. (Value = Completed). Compile that rows data into the email. See format in code below. Prompt user for confirmation of info. If YES,…
WallyG
  • 187
  • 1
  • 6
  • 16
9
votes
1 answer

Message back from windows API

I am trying to receive messages from QCollector as explained in the QCollector Data Interface developer guide. The process consists of registering predefined messages, finding the QCollector server window, and exchanging data through the registered…
ManInMoon
  • 6,795
  • 15
  • 70
  • 133
9
votes
8 answers

Can I send email programmatically in iPhone app?

I need to be able to send a pre-formatted email or SMS text message programmatically from within an iphone app. Can this be done? I have looked at apple's MFMailComposeViewController class, but this "provides a standard interface that manages the…
jcpennypincher
  • 3,970
  • 5
  • 31
  • 44
8
votes
5 answers

I can't understand how to use SendMessage or PostMessage calls

I need to simulate a keypress in a third party application. Let's say I have a C# application that needs to send an "8" to the Calculator application. I can't use the SendKeys of .Net or the keybd_event of win32 api because they both require the…
Joao Oliveira
  • 213
  • 1
  • 5
  • 8
8
votes
3 answers

Getting a Button handle from another application

I have a program that needs to send the BM_CLICK message to another applications button. I can get the parent window handle but when I try to get the button handle if always returns 0 I got the button caption name and button type from Spy++ it seems…
Mike
  • 1,221
  • 3
  • 15
  • 34
8
votes
2 answers

Sending Keystroke to another application using WinAPI

I have to control another application by sending keystrokes to it like CTRLS or CTRLSHIFTC or CTRLF. I've tried a lot of things, but I can't get it working. So I'm trying to get this right on a simpler case. This successfully sends Hey to the…
Vitim.us
  • 20,746
  • 15
  • 92
  • 109
8
votes
1 answer

Python win32api SendMesage

I am trying to clarify win32api. And I just made a simple example. Get the Notepad window, move the mouse to a position, click and write a string. But it does not work. What's the problem? And could anybody clarify for me what the lParam parameter…
user2046488
  • 233
  • 3
  • 4
  • 6
7
votes
2 answers

Thread message loop for a thread with a hidden window?

I have a Delphi 6 application that has a thread dedicated to communicating with a foreign application that uses SendMessage() and WM_COPYDATA messages to interface with external programs. Therefore, I create a hidden window with AllocateHWND() to…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
7
votes
3 answers

Minimize/restore windows programmatically skipping the animation effect

I need to perform several operations on a list of windows (minimize some of them, restore others) in order to switch between two or more set of windows at once. The problem with this are those animations you can see when minimizing and restoring a…
GetFree
  • 40,278
  • 18
  • 77
  • 104
7
votes
2 answers

Sending an application keystrokes with "SendMessage" (vb.net)

So far, I have all the handle capturing and gui set up. I'm stumped as to how to perform the actual step. I have this code: SendMessage(New IntPtr(CurrentHandle), WHAT,GOES,HERE?) I've been looking…
Freesnöw
  • 30,619
  • 30
  • 89
  • 138
7
votes
2 answers

Telegram sendMessage too slow for certain bot

I have two telegram bots and last time I have noticed, that 2nd bot became to slow. My research shows that sendMessage call has different time for two of them. curl…
tenta4
  • 304
  • 2
  • 16
7
votes
1 answer

SetWindowSubclass changes ANSI windows to UNICODE

Is SetWindowSubClass() supposed to change an ANSI window into a UNICODE widow? I didn't find anything in the documentation, or on the web, about this behavior. I created a test application (full source) just to illustrate how SetWindowSubclass (I…
7
votes
6 answers

How can I use shared_ptr using PostThreadMessage?

I would like to upgrade my MFC production code to use the std::shared_ptr smart pointer when calling other windows or threads. Such calls are SendMessage, PostMessage and PostThreadMessage which pass wparam and lparam and which respectively are an…
rtischer8277
  • 496
  • 6
  • 27
7
votes
4 answers

What are "APPCOMMAND" variables used with P/Invoke?

I was searching right here on StackOverflow and found the answer to Mute Volume in C#. I don't understand what's going on with the answer. I've never gotten deep into Marshaling or P/Invoke. I've used them before but never understood what I was…
Frank
  • 185
  • 13
1
2
3
62 63