I'm writing a code for Amazon Alexa. And in the developer.amazon.com, we configure the intents, utterances etc... Here I need to get the question asked by the user.
I'm sure that this works using the intents but I will need the utterances. For eg:
GetTheData get me the user data
GetTheData get me user details
Here I'm able to get the GetTheData printed using intent.getName(), But i want to know if there is a way to get the content after the intent name i.e. get me the user data. I want to know this for my research purpose.
Please let me know how can I get this.
Thanks
No, unfortunately there is no way to get this information with the ASK/echo.
Your only solutions at this time would be to split that into one intent per utterance, or switch to google home (its SDK can give you the raw user text).
Related
For my project, i need to insert an EAN (Productcode like 4009900508599) on this website: codecheck.info
In a normal case it isnt really an problem, because you can send the content directly to the website.
On this website, the call is:
https://www.codecheck.info/product.search?q=4009900508599&r=03AOLTBLSbwq8TlZl9bDf72tOekXcyrp8vCBu6pgfYvI-0fuFv40FWCX5XX5Z9DTOlo0J-l3WGmSRRUMmxGLl_oO9miNeJExZsrZwbaFFDovw5FrOMaM2CeuOTFQOMr4q__ixGx7jV7509DF_y7Y19maVN40kuCrjIE7JCV7p3uiu4DhOgU6BVlW8O5yrx8px7_fknOwseOiLXIFbxDlbZ6nD-67765YdL6zOiyoH3nHL1LO1L0_GQQkPOrP3QnjXHjjaDzg_RYT48cvkGnt3ER-8AUwB9LPwP-9OJp4uWzxtG-TiWngZEwzcJDJS4FEfsd2Xq2taU7sOhZquEiwi4pFdXQgAwb0PRYNEv9GR1tBb0LYnHUiF9LLMwOhvL3pnaididlwl--jMP_-ZvSnK04EHIKYKQm5CLPbgcfs68iC4GtWnLv63g6hD_W_1kElHdhR3rT_VdAhkjESo7CGcmUyKJ_TVw3Xy4rOZS8t3TCJSux98-otnmJh4
With q=03A... they generate some stuff, that i cant know.
So my question is, does someone know a way to insert the number into the searchbox automatically and get their content?
I have an app that encrypts inputs and I want to put a save function that will let users access the "notes" at any time. I thought about adding each in output to an ArrayList, but I still don't know how to save it and display it for the user to select. If you need me to clarify anything I'd be happy to. Thanks.
update post of screenshotsI've got an COM excel add-in (name; Syntess Atrium Office add-in) which has a login button. When pushed i need to give a path to it's location on the server and after that I need a password to log in.
I need to run this Excel file a couple of times each month late at night with a scheduled task, and every time I need to be logged-in for it to function. So to make sure i'm always logged-in I want to create either a VBA script or any other script to push the log-in button, write down the path, hit enter, and then use my password and hit enter again.
The application (VBA excel sheet) runs at night because it takes several hours to create because of it's huge amount of data it takes from our financial database on the server(using the com add-in).
I hope someone can help me out!
I know I can use programs like Acces or even Excel it self for a direct link with the database, but our directors won't allow this, so that's not an option unfortunately.
If you can view the reference in the object browser you can start to get an idea of the functions (if exposed) that you can use.
You can see from the image below that the class DOMDocument60 (XML Document Object Model) has a loadXML function that "loads the document from a string".
Normally you would not have to use the object viewer as this same information is generally provided by the company:
MSDN - MSXML3.0/6.0 - 'loadXML'
However, if there is no public API available you may be able to read through the object and get an understanding of what you can call.
---If you can't find a 'login' function your best bet is to ask the company to expose such a method (function).
I'm making a program with a simple GUI, where the user have to do the login before starting use the program.
I want to store username and password and, if the user check the "Remember me" checkbox, i want that he doesn't need to enter data next time.
I tried doing with Java Preferences API, this way:
private Preferences prefs = Preferences.userRoot().node(this.getClass().getName());
prefs.put("codCliente", txtCodCliente.getText());
prefs.put("username", txtUsername.getText());
prefs.put("password", DigestUtils.md5Hex(String.valueOf(txtPassword.getPassword())));
But if i close and reopen the app, if i print the content of variables, it returns "Null key" NullPointerException.
I tried to save them in a .properties file, but I don't want to overwrite every time the whole file, and if I try to use apache commons configuration, with setProperty, I can't put the value on the variables.
Which is the best way to store this kind of data?
Thank you all.
Yes preferences is really easy and good way of doing this , problem is that:
he doesn't need to enter data next time
That means he WONT PUT ANYTHING INTO TEXT FIELDS.
But if i close and reopen the app, if i print the content of
variables, it returns "Null key" NullPointerException.
What did you expected? You put this NULL values into preferences again as he starts his app again.
Problem is in your design
application starts->
read preference of checkbox state->
{reread login credentials} else {nothing} ->
show login ui , user enters credentials ->{compare credentials to whose with preferences} DONT STORE ANYTHING , why woud you store what user is trying to login with every single time you start application?
You only store credentials at user creation ,use encryption and store your data, for both name , and password.
In your question there is not enough code to help you out directly with code sample , you have problem with design , where you reading this information in your code? Why dont you post this part here? You only show us that you store soemthing , well ok , thats useless to person thats trying to help you out.
I recommend you to SIT DOWN, stop writing code , and write yourslef flowchart of your application startup and login process all the way with when you read/write anything to preferences etc.
when we add any status in facebook, it auto shows your friends Name, if name is half then it complete, it also gives us place name . HOw? I want to implement in my app like that it will search automatic its name to whose we want to tag after few word. plz help
Use > AutoCompleteTextView
it shows completion suggestions automatically while the user is typing.
Look here
https://github.com/linkedin/Spyglass
read all documentation, every thing is here