Difference between revisions of "Display"
From Wiki
Panther.sn (Talk | contribs) |
|||
| (10 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | + | {{command header|Miscellaneous}} | |
| − | + | ||
| − | + | ||
| − | + | ||
| + | {{body|display {[ok] <nowiki> | </nowiki> [okcancel] <nowiki> | </nowiki> [yesno] <nowiki> | </nowiki> [yesnocancel]} {message}|The [[display]] command displays a standard Windows messagebox with a set of buttons of your choice.}} | ||
| − | + | ||
| − | + | ==Example== | |
| − | + | ||
<pre> | <pre> | ||
display yesno You have run out of ingots. Do you want to end the script? | display yesno You have run out of ingots. Do you want to end the script? | ||
| Line 15: | Line 12: | ||
</pre> | </pre> | ||
| − | + | ||
| − | + | {{Note| | |
| − | display ok Test $1$2$3 | + | Use $ to create a newline: |
| + | <pre>display ok Test $1$2$3</pre> | ||
creates: | creates: | ||
<pre> | <pre> | ||
| Line 25: | Line 23: | ||
3 | 3 | ||
[ ok ] | [ ok ] | ||
| − | </pre> | + | </pre> |
| + | }} | ||
| − | + | =See Also= | |
| − | { | + | {{Miscellaneous}} |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
Latest revision as of 12:21, 13 September 2007
Synopsis
display {[ok] | [okcancel] | [yesno] | [yesnocancel]} {message}
Description
The display command displays a standard Windows messagebox with a set of buttons of your choice.
Example
display yesno You have run out of ingots. Do you want to end the script? if #dispRes = yes halt ...
| Note: |
Use $ to create a newline: display ok Test $1$2$3 creates: Test 1 2 3 [ ok ] |
See Also
Miscellaneous
- Miscellaneous commands
| display | Shows a message |
| execute | Executes an external program |
| linesPerCycle | Sets the execution speed |
| set | sets a variable to a value (variable assignment) |
| send | Sends a HTTP request to a server and runs the code that is returned |
| shutDown | Shuts your computer down |
| sound | Plays a wave file or the SystemDefault beep |
| str | performs a operation on a string |
| tile | retrieves information about tiles |