Browse Search Popular Register Upload Rules User list Login:
Search:
Input Box

Image:
screenshot of the scene

Author: s_noonan

Group: Technical

Filesize: 119.9 kB

Date added: 2015-04-07

Rating: 5.6

Downloads: 1574

Views: 567

Comments: 9

Ratings: 2

Times favored: 1

Made with: Algodoo v2.1.0

Tags:

Scene tag

Input Box

InputBox Function: Displays a prompt in a dialog box, waits for the user to input text or click a button, and then returns a string containing the contents of the text box.
Last edited at 2016/07/02 20:22:05 by s_noonan
Please log in to rate this scene
edit
Similar scenes
Title: Kutis Creations - Logic Gates Kit
Rating: 5
Filesize: 23.82 kB
Downloads: 922
Comments: 2
Ratings: 1
Date added: 2010/05/20 16:36:18
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: Mechanical 4-bit adder
Rating: 5
Filesize: 203.58 kB
Downloads: 516
Comments: 0
Ratings: 1
Date added: 2023/01/12 21:41:12
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Input Box II
Rating: 5
Filesize: 185.28 kB
Downloads: 503
Comments: 5
Ratings: 1
Date added: 2019/05/05 15:12:36
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Brik v0.5 (INSTRUCTIONS ADDED)
Rating: 5
Filesize: 98.66 kB
Downloads: 1148
Comments: 24
Ratings: 1
Date added: 2020/07/13 04:27:36
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Logical NOT gate using lasers
Rating: 5
Filesize: 16.67 kB
Downloads: 672
Comments: 1
Ratings: 1
Date added: 2010/04/09 00:19:09
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: Portals
Rating: 5
Filesize: 26.8 kB
Downloads: 2615
Comments: 0
Ratings: 1
Date added: 2021/05/14 15:41:06
Made with: Algodoo v2.1.0
Rating: rated 5
download
Everytime I played this scene I crashed....
Most helpful scene 2015 _o_ _o_ , 10/10 and Favourites.
After I change the default text to "This is a test", I click on OK. The message box disappears as expected, but then when I click on "Click Me", the default message pops up, rather than the new text that I had entered. Am I not using it correctly?
This keeps crashing too.
crashes
Thanks for the feedback both good and bad. I reset Algodoo and I can't force a crash. By crash I assume Algodoo gives a message and closes the scene unexpectedly. Any info as to what was done immediately before the crash might be helpful.

Xray,

Q: Am I not using it correctly?
A: No. "Click me" will always do the same thing unless you change the code in the onClick event. "OK" should send your input text to the magenta box.
Does this scene really crash or is the fact that the inputbox is deleted after use interpreted as a crash?
Last edited at 2015/04/07 23:10:23 by s_noonan
The scene doesn't crash for me, but now that you show instructions, I know how to use it! :lol:

There are a couple of minor issues that I noticed:
1. When I press the Alt key to enter a space character, TWO spaces are typed in the text string, and so if I want proper formatting, I have to backspace each time to delete the extra space.
2. Because you do not disable the tools with app.gui.playmode = sim.running, occasionally certain keys (such as the letter "T" for the knife tool, for example) will not print on first use. That could be confusing or annoying, especially for new Algodoo users.
3. A helpful enhancement would be a cursor to show the current typed position.

I couldn't think of a good use for this, so it might be helpful to some people if you would list a few example applications.

Thanks!
I agree with everything you said except #2

"Because you do not disable the tools with app.gui.playmode = sim.running"

because I do set app.gui.playmode = true in onSpawn and return it to the initial value in onDie, but letters "T" and "M" still require (2) hits. It may make sense for me to just forget about in box editing and just use the Algodoo widget.