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

Send a message within 2 minutes after a user click on a callback query button telegram bot in php

I want to send message to user after 2 minute he has clicked an callback query and execute database automatically after that 2 minute .
-2
votes
1 answer

Dispatching managed Win32 WndProc on a sepparate thread

I'm creating a window through unmanaged CreateWindowEx using PInvoke to work as a server in order to dispatch SendMessage calls from a different process. This should be wrapped in a synchronous function (class registration + window creation),…
Yves Calaci
  • 1,019
  • 1
  • 11
  • 37
-2
votes
1 answer

C# / Send keys combination (CTRL+S) to another window

I am trying to send keys combination to another program like that: // keydown ctrl SendMessage(windowBracketsKeyListener, 0x100, (IntPtr)VK_CONTROL, (IntPtr)0x001D0001); // keydown S SendMessage(windowBracketsKeyListener, 0x100, (IntPtr)VK_S,…
-2
votes
2 answers

Message sent by SendMessage is not recieved in other class hierarchy

I have two class hierarchies as shown below: Class A extends CWnd B extends A C extends B. Class D extends CWnd E extends D How can I SendMessage from C to D? Additional information (from comments): Message Mapping is done correctly and…
Arjun
  • 1
-2
votes
1 answer

SendMessage C++ Right mouse button doesn't work left mouse button works?

I want to use SendMessage to complete part of my remote control program. Case I think it will control the computer program without make it get focus. Here is my demo. I use windows mspaint to test it. It works when I post "Left button down", so I am…
Lyronx L
  • 13
  • 5
-2
votes
1 answer

How to get this line of code to work on x64 SendMessage()

We are trying to turn the monitor off via code and turn it back on via code. We found code that works however it uses user32.dll and does not seem to work in 64 bit mode like the rest of our software (yes i did try the obvious user64.dll) Any…
-2
votes
2 answers

How to get string from SendMessage request (of a external exe) in c++

I have two executables. I want to use one to get string from another one. In other words, I want to make a InterProcess Communication. I tried SendMessage by using (char*)lParam in WndProc. However, it doesn't work. (char*)lParam makes a runtime…
Zhuoran Xie
  • 103
  • 2
-2
votes
1 answer

How can i send message at another Window c# Windows Application

To be more specific, i want to write a message in a window process, a game ... just force to send ("hello wolrd") and force an "enter input" ... Is there possible? Ok, i'm making one BOT for a game, i already got the memory address of some variables…
-2
votes
1 answer

How to ensure PostMessage been handled by another application?

My app1 PostMessage WM_LBUTTONDOWN and WM_LBUTTONUP to app2 (third-party) which is in different process. How to make sure those message been handled by app2 in app1, the logic in app1 depends on the result of those messages after PostMessage. Here's…
user1633272
  • 2,007
  • 5
  • 25
  • 48
-2
votes
1 answer

c# i'm unable to get SendMessage to send a message to a notepad window

I have looked at this question and answer How to send text to Notepad in C#/Win32? A slight variation that I think shouldn't matter.. Is that I have a bunch of notepad windows.. So to test this I copied notepad.exe to be notepadd.exe and opened…
barlop
  • 12,887
  • 8
  • 80
  • 109
-2
votes
1 answer

Sending text to button after adding image c++

I am able to add image to the button as background but later I want to add text to the button as "Weclome", I tried all possible ways using Settext, SendmessageA. please help #include int main() { MSG msg; HWND hWnd =…
-2
votes
1 answer

Visual c# applications sending string message from sender to receiver, using Sendmessage()

I am developing two windows apps, sender and receiver, in C#. In the sender, I want to have a text box for keying in the string message, and button "send". On the other hand, I want to have a windows app receiver, receiving the string message in a…
Curly
  • 539
  • 2
  • 7
  • 14
-2
votes
1 answer

Clear the text value in other App's edit control by using Excel VBA with Windows API

rendered output markdown -1 votes Comment: code alignment Clear the text value in other App's edit control by using Excel VBA with Windows API hTarget is a handle value of other application. [Failed] ret = SendMessage(hTarget, WM_SETFOCUS, 0&,…
Latestarter
  • 39
  • 1
  • 7
-2
votes
2 answers

Getting string length in winapi with strlen

I'm trying to get length of buffer but i get Unhandled exception error. can anyone help me please. What am I doing wrong? case WM_COMMAND: switch (LOWORD(wp)) { case IDC_MAIN_BUTTON: { char buffer[256]; …
-2
votes
1 answer

SendMessage WM_SETTEXT issue

Ok this is probably a noob issue... probably a really newb issue lol, but I am a newb so here it goes: I want to write down the following text in an edit control: C:\Documents and Settings\Blah\Desktop\myText.txt I wrote the following…
computerWizard
  • 94
  • 3
  • 12
1 2 3
62
63