Disable button once clicked MS bot framework - node.js

I am creating chatbot application using MS bot framework. In that, I want to disable both buttons once Yes or No is clicked.

Sorry but the webchat (and other channels) does not support what you want to do, even if it would be useful for many cases.
There is a sort of workaround if you really need to have buttons that cannot be used: use SuggestedActions (see doc here), it will look like the following:
Once clicked the buttons disappear.

If you are using facebook messenger you can use quick replies. They will disappear after interactions.
https://developers.facebook.com/docs/messenger-platform/send-messages/quick-replies
Microsoft.Bot.Builder.ConnectorEx.FacebookQuickReply

Related

Google Dialog Flow: Change Design/Colours

I use Google Dialog Flow and I still created a Agent. I want to customize the appeareance of the chat window and I do not know how to do it. It seems like there is no options to do this in the DialogFlow Console. I have seen that there are products like Botcopy, but I want to do it by myself. Do I need to use the API to integrate the bot into my website if I want to change the looks?
the DialogFlow web widget is mean to be used for testing, you can hack the CSS and override the way it looks but it is not a recommended approach.
In order to integrate your DialogFlow chatbot on a website you can indeed use Botcopy or Kommunicate (both provide a Widget to add to the web site with some customisation options).
If you are a UI guru you want to build something yourself you can use the DialogFlow SDK https://github.com/googleapis/nodejs-dialogflow

QnA Maker doesn't show buttons when deployed in MS Teams

I have deployed a qnamaker bot to Microsoft Teams but the dialog buttons don't show up anymore.
In the qnamaker site, the buttons work
In teams, the buttons don't appear ;(
Does anyone have any ideas as to why this changes?
Is there anything I can do to solve this?
#Ceal clem Are you trying to use Suggested actions? If so, suggested actions are not supported in Teams. Could you please try using Cards to show the buttons?
From the documentation here: https://learn.microsoft.com/en-us/azure/cognitive-services/QnAMaker/how-to/multiturn-conversation#enable-multi-turn-during-testing-of-follow-up-prompts
You need to add this sample to enable prompts in client.

How to send new message-based invites without GKMatchmakerViewController

For some reasons we do not want to use the GKMatchmakerViewController. Currently we are offering the user of our App the possibility to invite their Game Center friends via a friends list displayed in our UI.
While this is still possible in iOS 10, the user will no longer have the possibility to add the GC friends. Therefore we want to use the new message-based invites introduced in iOS 10.
How can this be archived without using the GKMatchmakerViewController? I just want to display a button invite friends which opens the view to send message-based invites to anybody exactly as the button in the GKMatchmakerViewController does.
It is currently (iOS 10.2) not possible to display the iMessage view without the GKMatchmakerViewController.
In my app, I'm going to still provide fully custom views for the matchmaking. Only if a player on a device with iOS 10 wants to invite a friend, I'll display the GKMatchmakerViewController. This is not a great solution but currently, it seems like the most feasible workaround.
I'll also file an issue for that in Apple's bug reporter.
See GKGameSession. This class can send invite link. May be ios10 only

How to properly use CDialog::Create for Modalless dialogs MFC

I am trying to create a Modalless dialog in my exsisting project. CDialog::Create cause debug assertion. I tried a new Dialog based application and followed the same steps, the dialog gets created without any error.
Also in my exsisiting project I am using MFC as static Library, can this affect the functionality?
really looking forward for any helpful replies
Best Regards
Well this is just a stab in the dark given the vagueness and lack of information in the question, but have you created the dialog as a WS_CHILD and not WS_POPUP?

How can I programmatically show the select device dialog?

I am using the Cast Companion Library and most of it is working well however I have not been able to figure out how to show the device chooser programmatically.
Basically when a user chooses a video on my app I would like to show the chooser if they haven't yet connected.
Thanks.
If you are using the MediaRouteButton and it's accessible:
mediaRouteButton.performClick();
you need to "Developing a custom UI with the MediaRouter API’s and MediaRouter.Callback" but I didn't find any example how to do it .
First, I suggest you do not do that. I don't know what you are planning to do in your app so I can't say much but don't do something custom in terms of user interaction/flow that is different from other apps and the apps offered by the framework; people will not expect that.
On the technical side, if you want to open the standard dialog, I am not aware of any trick but I haven't looked at the MediaRouter code in v7 support library for that; since that is open source, you are welcome to look in there and see if there is any simple way to do that. If you want to design your custom one, you should be able to do that; the CastCompanionLibrary provides a sample of the Callback dialog and the one for chooser follows a similar pattern.
As a side note, you mentioned you want to open the chooser when user selects a movie. So how can they select to play locally? Are you planning to add additional selection to that dialog for local playback?

Resources