"get input" script
Thierry
08 Dec 2012, 01:10Alex said that GetInput() function isn't supported for Apps conversions, and that it was better to use "get input" script. So I tried to use it instead, but I didn't succeed in making it work correctly. Could someone help me ?

guzmere
08 Dec 2012, 07:17Hi I've done exactly the same and it's worked ok for me. The only difference I can see is that I have a space after the word (code) and after the (=) sign. hope this helps. Have a good day Terry.





The Pixie
08 Dec 2012, 11:26I am not exactly sure how this used to be, but I think the "Get input" option is the correct one from the list, and what has changed is that behind the scenes this now uses "get input" rather than "GetInput".
See this Wiki page for more.
See this Wiki page for more.
Thierry
08 Dec 2012, 13:26Thanks for your answers ! Anyway, I'm not sure I totally understood what you mean
Is my sequence above correct for Apps conversion, or should I replace "set variable" by "get input" script ? And if so, what should I add to the "get input" script to make it work ?
Sorry for my lack of knowledge, I still have troubles with scripts...

Sorry for my lack of knowledge, I still have troubles with scripts...
Thierry
18 Apr 2013, 23:05Sorry to bother you again guys, but I still don't understand how the "get input" script works. I used the GetInput() function before, but Alex said that was a problem for App conversion. So as an example, I tried something like this :
get input {
if (how are you ?) {
msg ("fine, thanks")
}
}
I wanted to display "fine, thanks" when the user types "how are you ?" in the command bar... But I got an error message instead. I know something is clearly missing, but what is it ?
get input {
if (how are you ?) {
msg ("fine, thanks")
}
}
I wanted to display "fine, thanks" when the user types "how are you ?" in the command bar... But I got an error message instead. I know something is clearly missing, but what is it ?
Sora574
18 Apr 2013, 23:19Thierry wrote:I wanted to display "fine, thanks" when the user types "how are you ?" in the command bar... But I got an error message instead. I know something is clearly missing, but what is it ?
When you use the 'get input' script, it automatically sets the variable 'result' to whatever the user typed.
Try this instead:
get input {
if (result = "How are you?") {
msg ("Fine, thanks.")
}
}
Thierry
18 Apr 2013, 23:28Wow, thank you for your fast answer Sora, it works perfectly now !