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

How to cast a LRESULT to a custom struct type?

I use sendMessage and replyMessage to communicate between two apps in the same laptop. On the receiver side, when it receives the message comes from sender, it will reply with a message. So in the sender process, it will cast the MyStruct to…
firstaccount
  • 155
  • 2
  • 13
-1
votes
1 answer

SendMessage function to send text

I have a form and on the form I have a web browser and currently opened google.com on it. Cursor is already focused on the search window. I have been trying to SEND search Text to WebBrowser control using SendMessage but not working. Current…
-1
votes
1 answer

Sending selected listview data to another forms textbox

Hello i have got one listview that has txt files names inside one folder in desktop. So as i right data there is delete update and add so when i select one item and right click i want that data name to fill name textbox when its opened so its like…
-1
votes
1 answer

Order of win32api functions causing callback function to receive the same message

I have a resource file (.rc) which contains the following #include #include "resource.h" IDD_ABOUT DIALOG DISCARDABLE 0, 0, 500, 106 BEGIN DEFPUSHBUTTON "&OK", IDOK, 174, 18, 50, 14 RADIOBUTTON "Radio 1",…
-1
votes
1 answer

restart program if winform is not responding

Think We have this part in our program: private void button1_Click(object sender, EventArgs e) { while (true) ; } If we run the program it will crash and say "Not Responding". How to prevent this. I want the program…
-1
votes
1 answer

Build a texting app

i am trying to build an app that send and receive sms . I know how to send the sms using smsManager ,then receive the sms and view in a Toast . but my problem is i want the sent sms and received sms to appear in my activity ,just like built in sms…
Kanar Girl
  • 27
  • 6
-1
votes
1 answer

android app send message from webservice to android app without using google cloud messaging

i need to create a web service or something else that can send message to android app without using GCM and google cloud messaging .. is any one have a method that can send message to specific device, or specific ip address ?
Malo
  • 1,232
  • 2
  • 17
  • 28
-1
votes
1 answer

How can winapi SendMessage possibly allow to type any character on my keyboard?

This blew up my mind. I am reverse-engineering a Java project that aims for macro-automation of some desktop tasks. Unlike other programs, which actively move real-life cursor, this project sends messages through WinApi. This makes application think…
Tomáš Zato
  • 50,171
  • 52
  • 268
  • 778
-1
votes
1 answer

IE Automation with SendMessage

I'm developing an Automation Software for the IE. I tried the SHDocvw, but it worked poorly, because of the busy state of the IE. Now i wanted to use the Windows SendMessage. [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError =…
user3951837
-1
votes
3 answers

SendMessage c++

i was making a program and i need a functiong SendMessage to simulate a key press in a game window, but i don't understood how i can use this function: #include #include int main() { HWND hWnd =…
terzi_matte
  • 175
  • 1
  • 10
-1
votes
2 answers

SendMessage function only send first character of the message fromm VC++ app to reciever (Delphi App)?

SendMessage only send first charter of the message VC++, can you help? Only first charter is recieved. Actually here is my full sender app code (VC++) // notification->FileName is UCHAR[255] HWND app = FindWindow(NULL,TEXT("Message…
Geeko
  • 125
  • 2
  • 10
-1
votes
1 answer

Basic Send() and Recv() TCP server and client C++

Still trying to understand the send() and recv() functions. Why isn't this working? Nothing prints out on the server output.(except for some Test "cout"s) This is basically the part of the code I'm messing with. CLIENT SIDE: char *mesg_to_send; …
joetaiijo
  • 1
  • 1
-1
votes
1 answer

SendMessage Max Receivers

I have a main application and 4 client applications, I communicate back to the main application using SendMessage. I can use any three of the client apps without any problems but as soon as I add a forth I get access violations and stackoverflow…
Donovan Boddy
  • 489
  • 1
  • 6
  • 14
-1
votes
2 answers

Send text message without show message composer or in bckground in iphone

Hi is it possible to send text message in background..?My new requirement is to send SMS if there is no internet connection . I am trying MFMessageViewComposer but it shows the pop up view. How can we send message without shown this pop up? Is…
user1017932
  • 77
  • 2
  • 9
-2
votes
2 answers

Simulating/Synthesizing simple key presses within an out-of-focus application window using PostMessage

Trying to write a simple demo program where keyboard input into the console gets translated to key presses on a target window belonging to some other application process. So if I type the character "w" on my keyboard into the console, it translates…