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
4
votes
2 answers

Is there any way to copy a text from another program without Select it?

I want to copy text from other program, in this program Ctrl+a is considered for other command, and I can't use " SendKeys.SendWait("^a");" to select the text. Is there any way to copy that text?
Deve loper
  • 103
  • 8
4
votes
2 answers

Can I get a bitmap of an arbitrary window in another application process?

I am trying to automate a third-party Win32 application where I want to capture the graphics content of a particular window at defined time intervals. I am in the early phases of this, and I'm currently trying to use the Microsoft UI Automation API…
Chris Farmer
  • 24,974
  • 34
  • 121
  • 164
4
votes
2 answers

C# SendMessage to C++ WinProc

I need to send a string from C# to a C++ WindowProc. There are a number of related questions on SO related to this, but none of the answers have worked for me. Here's the situation: PInvoke: [DllImport("user32", CharSet = CharSet.Auto)] public…
jaws
  • 1,952
  • 4
  • 20
  • 27
4
votes
1 answer

SendMessage() only working when window is open, not when minimized

I've been using SendMessage to send mouse clicks to a couple of windows. One being a game(everything works perfectly), but the other window, being a 3rd party tool for the game is having trouble with SendMessage. If the window is 'not minimized'…
RichardP
  • 43
  • 4
4
votes
3 answers

Force tooltip to come out using WINAPI and not mouse

I have a problem, I hope you can help me out. Already out of my research luck... tried stackoverflow, google, even yahoo... How can I force a tooltip to come out NOT using the mouse? I am currently implementing some windows automatization and need…
JonathanSchmied
  • 137
  • 1
  • 7
4
votes
6 answers

Change GUI in thread

I have an operation which ends in about 20 seconds. To avoid freezing, I want to create a thread and update a label text in it every second. I searched a lot, since everyone has different opinion, I couldn't decide which method to use. I tried…
Malik Çelik
  • 302
  • 1
  • 13
4
votes
1 answer

adding text to another programs text box c++

i have already managed to send text to a custom text box i created using c++, and to notepad, calc and other programs all with 1 window and 1 text box. however, i want to send text to another program that has more than one text box and is in tabs…
4
votes
4 answers

Can SendMessage return early if the receiving thread starts pumping messages?

How precisely does windows decide that SendMessage should return- that is, how does it decide the receiving thread has finished processing the sent message? Detailed scenario: I've got thread A using SendMessage to send a thread to thread B. …
phil
4
votes
1 answer

Alternative to SendKeys that does NOT require an unlocked session

Situation: A GUI app contains functionality (off a menu option) that produces a frequently updated image to a directory. A logged-in, running instance of the app is the ONLY source for this image (functionality 'reliant' on display device). I have…
Chris
  • 149
  • 6
4
votes
4 answers

Get text from another application

I'd like to retrieve text from textbox in my another application. ProcessName from second application is 'TestTextBox', TextBox's name is 'textBox1'. My code, which returns empty string: [DllImport("user32.dll")] static extern IntPtr…
sventevit
  • 4,766
  • 10
  • 57
  • 89
4
votes
1 answer

How can I send a message to a group conversation with Skype4Py in Python

I've been trying to get my script to send a message to a group conversation in Skype using the Skype4Py library, the only way I am currently able to send messages is to specific users. import Skype4Py Skype =…
Ryflex
  • 5,559
  • 25
  • 79
  • 148
4
votes
2 answers

How to send an alert message to a special online user with firebase

I'm trying to make a "FourConnect"-game with javascript. I want, that there is a list from all online users. This list I've made with the example on the firebase site. Now I want that I can choose one online user and send them a invitation to play…
user2090392
  • 51
  • 1
  • 1
  • 3
4
votes
2 answers

PostMessage() to emulate input in c++?

I am attempting to make a simple botting program for a game. I want this to be functional even when the game is out of focus or minimized. Because of this, I cannot use SendInput() as it simulates global events. I figured out that, to make this…
Reed B
  • 636
  • 1
  • 8
  • 19
4
votes
1 answer

using SendMessageTimeout

I am trying to connect to a virtual assistant to get her to say the things my program gives as output. msdn: http://msdn.microsoft.com/en-us/library/windows/desktop/ms644952(v=vs.85).aspx Using sendmessage works, but blocks the rest of my program…
3
votes
1 answer

Android: Apparent memory leak when sending lots of messages through a Handler

I've got an app where a thread is trying to send lots of Location objects via a Handler to the UI thread, where they get analyzed and passed on to other threads. I've noticed the app has a memory leak, as it eventually crashes 2-3 hours after…
ArtHare
  • 1,798
  • 20
  • 22