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
7
votes
1 answer

Drag Drop using SendMessage

This sounds funny..just a little experiment. i wanted to simulate a drag drop of a file on a Application/Window using Send Message. Is it possible? I dont have code for the application but on the executable. The application is IP Messenger. What i…
Amitd
  • 4,769
  • 8
  • 56
  • 82
7
votes
4 answers

How can I send a message to a specific process by process id rather than by window handle?

To work around the limitations of GenerateConsoleCtrlEvent, I have to create an intermediate "middle-man" process to handle launching some console applications. The process's main purpose is to call GenerateConsoleCtrlEvent on itself, causing…
Triynko
  • 18,766
  • 21
  • 107
  • 173
7
votes
1 answer

Chrome extension sendMessage

The documentation here seems terrible: http://code.google.com/chrome/extensions/messaging.html I want my content script, simply to show a pageIcon if there is a textarea on the page. My content.js (using jquery) does…
Tom B
  • 2,735
  • 2
  • 24
  • 30
6
votes
3 answers

C# using SendMessage, problem with WM_COPYDATA

I've been spending a few days (or more) trying to get this to work. The application at hand is FTPRush, and I know there is a cmd line application called rush_cmdline.exe which uses SendMessage to send requests to FTPRush. From debugging the…
Frank
  • 63
  • 1
  • 1
  • 4
6
votes
3 answers

Why does this program sometimes crash, and sometimes not?

The following program turns off the monitor. It sometimes crashes when I run it, and it sometimes doesn't. The disassembly just points to a random location like 0x00011000, and has no real information. If I recompile the program and run it, the…
user541686
  • 205,094
  • 128
  • 528
  • 886
6
votes
2 answers

Chrome extension messages firing multiple times

I'm making my first chrome extension and noticed that messages being sent from my popup.html page were getting duplicated in my content.js message event listener. I've console logged "sending message" before every message send and "message…
6
votes
2 answers

Beagleboard: How do I send/receive data to/from the DSP?

I have a beagleboard with TMS320C64x+ DSP. I'm working on an image processing beagleboard application. Here's how it's going to work: The ARM reads an image from a file and puts the image in a 2D array. The arm sends the matrix to the DSP. The DSP…
snakile
  • 52,936
  • 62
  • 169
  • 241
6
votes
1 answer

How to register WndProc in console app

When I create a new Win32 application, I notice the function: LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) would receive message when somewhere call the function PostMessage or SendMessage, and I notice that the…
123iamking
  • 2,387
  • 4
  • 36
  • 56
6
votes
1 answer

webkitMediaStream Object Type lost while using sendMessage in Chrome Extension

So I'm trying to capture web audio from a tab and pass it into another script that works with DOM elements on the page. EXTENSION SCRIPT In the background.js, I use the following script: chrome.tabCapture.capture(constraints, function(stream) { …
6
votes
1 answer

Sending message to WhatsApp using java

Since I found some older posts, that tell that whatsapp doesn't support this, I was wondering if something had changed and if there is a way to open a whatsapp 'chat' with a number that I'm sending. so which api will be useful to me??
Niraj Thakar
  • 168
  • 1
  • 2
  • 13
6
votes
1 answer

Web Automation Mouse Clicking

I have a project that involves opening multiple window clients and then simulating mouse clicks within each of those processes. I've been able to succesfully send a message to multiple instances of Notepad using the Win32 API and SendMessage. The…
5
votes
1 answer

How to programmatically choose a context menu item in another app?

The target app is written in Delphi (win32 not .NET) and is closed-source. The action I want to invoke is called Copy, but there is no obvious keyboard shortcut. (Ctrl+Insert does the wrong thing and Ctrl+C does nothing) I can find my target HWND…
Hugh Allen
  • 6,509
  • 1
  • 34
  • 44
5
votes
1 answer

Get ListView item text from other window

I want to make a little application that changes the default playback device in windows 7. The only solution was to interact with the Sound Applet. I succeeded to get the handle to the SysListView32 window that has the devices name but i cant get…
Sp3ct3R
  • 715
  • 1
  • 12
  • 24
5
votes
2 answers

WPF: How to interact with inactive window?

Is it possible to interact with an inactive window from another window? I want to focus a textbox in a window without making it active, and then send keystrokes and mouse events to it. It seem to be possible to send messages to inactive windows…
Andreas Zita
  • 7,232
  • 6
  • 54
  • 115
5
votes
4 answers

Thread communication using SendMessage

my question is : how can I use SendMessage() to implement thread communication between two threads, one with a window (GUI) and the other with no window? The problem is that SendMessage() needs a handle (HWND)? Another detail about my project : Two…
Rivari
1 2
3
62 63