sending message/email using Bloomberg API - api

Is there a way to send email or message using Bloomberg API?
We currently doing this via keystrokes.

No, since it's not documented in the Developer Guide:
http://www.bloomberglabs.com/content/uploads/sites/2/2014/07/blpapi-developers-guide-2.54.pdf
Another place where you can try to find hidden features is in XLTP function on the Terminal. But you won't find this one there.
What you can try is to bring the Terminal window to the foregroud and use SendKeys to send the keystrokes to send the MSG. I expect this would be slow and unreliable. You can improve on this by calling macros that you've defined on the terminal that save you from sending some key strokes.

Related

Play framework, limit an action to be done once

I have a button follow on my website, you can toggle it on or off as much as you want.
Each time it sends a notification mail to the followed people. I don't want him to be spammed.
So I want Play Framework not to send this mail twice (twice in a day, for example)
Is there any built-in mechanism or any library of play framework to do it?
Thanks !
EDIT :
Preferably an external service, like Mailjet or mailchimp.
Just save notification to DB instead of sending it immediately - so user can decide how often he want's to get it.
Next use Akka scheduler for sending many notifications in single emails from time to time.

VB.NET Send keys to other application with focusing on it

I want to send keys to other application with focusing on it with VB.NET. I want to be able to send a Keydown message and a KeyUp message. But without focusing on the application I want to send keys to.
The following example focuses on the application when it is sending the keys. I don't want that.
http://www.codeproject.com/Articles/18366/Sending-Keystrokes-to-another-Application-in-C
The reason for this is I want to be able to Login with 2 games/windows onto 1 server and play with both of them. I have macros keys so I can set them to run this code. which will for example move the character on the 2nd game window while I control the character on my 1st game window. Like send "W" to move the 2nd character forward.
Any help?
In a quick research (I bet you dit it as well), I haven't found it possible.
SendKey is a way to simulate inputs at OS level, and not application level.
A possible workaround
That said, one way you could accomplish that would be creating a Virtual Machine and then run your automation script on it, keeping the host OS free. I'm just affraid that depending of the resources required by the game your are running (3D renderization), the VM specs maybe won't fit.
(Since I hate answers as "you can't do that", I just found interesting to share this palliative)

Make twilio leave a message after the beep

I am using Twilio to make calls to my clients to remind them of certain dates. Since some people dont pick up these calls, I would like to make my Twilio leave a voice message on their answering machines.
Is that possible? If yes how?
Thanks
From the RestAPI docs about the IfMachine parameter:
If Twilio detects that a machine, not a human, has answered the call, Twilio will make a request to your application URL setting 'AnsweredBy' to 'machine'. The call flow will proceed as normal, and your application can choose to customize the content of the call for a recorded greeting. Twilio will wait until the familiar "BEEP" of an answering machine to begin executing your call flow, so the machine (or voicemail) will capture <Play> or <Say> content. Keep in mind that if a machine answers you'll want to avoid using <Gather> or <Record> because they require user input.
Also note:
Answering machine detection is an experimental feature, and support is limited.

Bloomberg chat API?

Is there any API to send Bloomberg chat messages?
You mean to chat on a bloomberg terminal? I don't think it exists. I did see a helpdesk chat on their website once, but nothing that lets you communicate with other terminal users. They charge alot of money and I know guys who use their terminals only for access to the chat and network who use it. All the big shots from the ceo of citi to the chairman of hilton hotels to even Tim Geithner..I don't think its likely bloomberg would open that chat to the outside work or outside their platform.
To answer your question directly, no, there is currently not support within the bloomberg API to access the chat function (What Bloomberg calls IB - Instant Bloomberg).
If you have a terminal - or equivalent subscription, which is required to work with the API, you can hit WAPI and it will guide you through the SDK and what options exist.
The only options I know of for automatically sending some information through a chat box (which can be opened in a distinct window) is to pull it into focus and use ctypes or SendKeys in Python (or equivalents in other languages) to send the information you wanted to because you can tab between the contact/start chat and the text area within an open IB Manager box.
Let me know if you need any examples.
Some additional color on this question here2
They don't actively provide that, however I found a 'solution'. What I do is activate my VBA and do:
App.Activate "IB - IB Manager"
Application.Sendkeys "Hello, world"
Application.Sendkeys "~"
This e.g. allows me to automatically quote prices into Bloomberg IB chats.

how to programmatically send email using objective C / cocoa

Hi I am new to MAC OS development and I want to send an email programmatically trough an application, but without using Mail app like in SBSendEmail from apple's site. I dont want to attach any attachments, just a plain text email. What is the best and easiest way to do this? is it possible to use the basic functionality from SBSendEmail and automate the last step of sending mail through MAil app? Is there no easy way just like in C# to create a mail object and just send it?
Thank you.
There's no way to do this in pure Cocoa, except to use one of the three or four email libraries available (Pantomime is one I know of off the top of my head). The main problem with all of these is that they're designed for implementing a full email client, not just sending email, so they're probably more heavyweight than you need.
For Growl's MailMe display, I wrote a command-line mail-sending tool in Python. The Xcode project bundles this into the MailMe display plug-in bundle, and MailMe runs the tool using NSTask, passing the SMTP info it finds in the user's Mail preferences. Growl is also open source, so you can read the source to the MailMe display.
Things that won't work:
The Message framework, which has no public API in 64-bit.
The mail(1) tool, which requires the user to have the local SMTP server running (simple-mailer uses another SMTP server, whose name you pass in on the command line).
Note that MailMe currently does not understand how to look up MobileMe passwords, so it isn't yet able to send using MobileMe accounts. If you amend the code to do this, we'd appreciate a patch!
Another patch opportunity is that MailMe currently only looks in Mail's preferences for mail-sending settings. It could look in other clients' preferences, but does not yet know how to do that. If anyone who uses Thunderbird would like this capability, again, we'd appreciate a patch.
I would suggest you make use of /usr/lib/sendmail if present. Open a pipe to /usr/lib/sendmail and send the mail on stdin. This should be available the OS.