none
TextWindow input RRS feed

  • Question

  • Hello,

     Is there any way that I can make the Text Window into a command prompt? So if I want to shut down my full program (Graphics Window & Text Window) I can type something like "\shutdown"? If you know how to then please tell me it would be a great help! Thanks

    Saturday, May 3, 2014 1:39 PM

Answers

  • Yes you can do this.

    Here, is an example how it works:

    GraphicsWindow.Show()
    TextWindow.WriteLine("Hello! What do you want?")
    retry:
    Entry = TextWindow.Read()
    If Entry = "\shutdown" Then
      Program.End()
    Else
      TextWindow.WriteLine("Your command is wrong!")
      Goto retry
    EndIf


    Mit freundlichen Grüßen Timo Greetings Timo

    Saturday, May 3, 2014 3:39 PM

All replies