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
114
votes
6 answers

sendMessage from extension background or popup to content script doesn't work

I know that question has been repeatedly asked in different ways, but I tried to go through all the answers (hopefully I didn't miss anyone) and none of them worked for me. Here is my extension's code: manifest: { "name": "test", "version":…
Subway
  • 5,286
  • 11
  • 48
  • 59
69
votes
8 answers

send bold & italic text on telegram bot with html

I've created a bot in telegram I want to send bold and italic text with HTML page to bot My HTML code is: Telegram
Mohammad Hossein
  • 709
  • 1
  • 6
  • 7
39
votes
3 answers

How do I send key strokes to a window without having to activate it using Windows API?

    I have made an application already that sends commands to an activated window. I want to be able to use the computer while my process is running because as soon as I switch focus to another window the key strokes being sent via send keys will go…
SlipToFall
  • 415
  • 1
  • 4
  • 8
35
votes
4 answers

How to send an email through iOS simulator?

I want to know if it's possible to send email through iPhone simulator. I have seen the tutorial for sending an email through iphone as below: http://www.edumobile.org/iphone/iphone-programming-tutorials/compose-mail-application-in-iphone/ Now to…
nehal
  • 622
  • 1
  • 13
  • 26
22
votes
2 answers

sendMessage from popup to content.js not working in chrome extension

I'm trying to make a popup interface for a chrome extension. I can't seem to send a message from the popup.html/popup.js to the content.js script. Here's what I have so far. When I click on the extension icon I get a button that says clickme. I…
techdog
  • 1,451
  • 3
  • 19
  • 38
21
votes
2 answers

Directly sending keystrokes to another process via hooking

I'm wondering, after fiddling with all sorts of issues with SendInput, SendKeys, PostMessage, SendMessage, SendNotifyMessage, keybd_event, etc and so forth. To find that well... trying to send a keyboard input to another non-foreground process is…
Hydra
  • 275
  • 1
  • 2
  • 10
19
votes
2 answers

Send MMS from My application in android

I want to send MMS from my application to a specific number. I've searched and found this code but I have no idea if this code what I need or not. My Questions is : -can anyone explain this code to me.i am beginner in MMS. -also, i thought this…
Maha
  • 459
  • 1
  • 6
  • 22
19
votes
1 answer

SendMessage and PostMessage which one is better to use?

searching the web for the difference between these two function calls, I've found that: The difference between these two API calls is the way that they return control to the calling application. With SendMessage control is not returned to the…
17
votes
5 answers

Send Message in C#

I'm creating an application that uses a main project that is connected to several different DLLs. From one DLL window I need to be able to open a window in another but the DLL's can't reference each other. It was suggested to me to use the…
Nicole
  • 175
  • 1
  • 1
  • 5
16
votes
4 answers

MFMessageComposeViewController on Simulator - canSendText?

following situation: I want to send in app SMS. This is my code creating the MFMessageComposeViewController: -(void) showMessageComposerWithText:(NSString*)messageText telNumber:(NSString*)telNumber composeDelegate:(id)delegate { …
bhr
  • 2,279
  • 1
  • 23
  • 31
16
votes
1 answer

Write text to notepad with C#/Win32

I'm messing around with Win32 API and windows messaging trying to figure out how things work and I found this question very helpful. I'd like to improve upon the solution provided there so that it appends the text instead of just replacing the text…
Evan
  • 4,450
  • 10
  • 40
  • 58
14
votes
5 answers

Unable to send sms using SMSManager in Android

In my application I do not want to use the default message sender. For doing that I followed the following link In Android is it possible to send sms message to more than one recipient in code? And that code worked too. But the messages I am…
Shruti
  • 1
  • 13
  • 55
  • 95
13
votes
6 answers

How to send Ctrl/Shift/Alt + Key combinations to an application window? (via SendMessage)

I can successfully send any single key message to an application, but I don't know how to send combinations of keys (like Ctrl+F12, Shift+F1, Ctrl+R, etc..) Tried doing it this way: SendMessage(handle, WM_KEYDOWN, Keys.Control,…
user1792042
  • 261
  • 1
  • 4
  • 11
12
votes
2 answers

Sending message back with postmessage

I am currently making an application where it is neccessary to send information between two domains (will be on loading of the page). Website 1: Creates iFrame > Sends Postmessage to website 2 window.onload = function () { iframe =…
Mick
  • 174
  • 1
  • 1
  • 9
11
votes
4 answers

SendMessage vs PostMessage + WaitForSingleObject

I was wondering what's the difference between calling SendMessage (which blocks) and calling PostMessage in conjunction with WaitForSingleObject. Thoughts?
Filip Frącz
  • 5,881
  • 11
  • 45
  • 67
1
2 3
62 63