locked
Help dont know how to imput text RRS feed

  • Question

  • I want a way to import text without TextWindow.Read()

    RTZ371

    please help
    Friday, October 30, 2009 12:10 PM

Answers

  • You can use GraphicsWindow.TextInput and GraphicsWindow.LastText
    or you could use GraphicsWindow.KeyDown and GraphicsWindow.LastKey.

    GraphicsWindow.TextInput = TextInputSub
    GraphicsWindow.Title = "Charactor Code Finder v1.0 by Jay Turner"
    begin:
    GraphicsWindow.DrawText(0, 0, "Charactor Code Finder v1.0 by Jay Turner")
    GraphicsWindow.DrawText(0, 15, "Type a charactor and I will return its code: ")
    'code = Text.GetCharacterCode( 'Here is where I need help, I dont want to use TextWindow.Read(), but I don't know what to use instead'  )
    GraphicsWindow.DrawText(0, 30, code)
    Program.Delay(400)
    GraphicsWindow.Clear()
    Goto begin

    Sub TextInputSub
      code = GraphicsWindow.LastText
      code = code + " = " + Text.GetCharacterCode(code)
    EndSub
     

    • Marked as answer by Vijaye Raji Friday, October 30, 2009 5:09 PM
    Friday, October 30, 2009 1:31 PM

All replies

  • You can use GraphicsWindow.TextInput and GraphicsWindow.LastText
    or you could use GraphicsWindow.KeyDown and GraphicsWindow.LastKey.

    GraphicsWindow.TextInput = TextInputSub
    GraphicsWindow.Title = "Charactor Code Finder v1.0 by Jay Turner"
    begin:
    GraphicsWindow.DrawText(0, 0, "Charactor Code Finder v1.0 by Jay Turner")
    GraphicsWindow.DrawText(0, 15, "Type a charactor and I will return its code: ")
    'code = Text.GetCharacterCode( 'Here is where I need help, I dont want to use TextWindow.Read(), but I don't know what to use instead'  )
    GraphicsWindow.DrawText(0, 30, code)
    Program.Delay(400)
    GraphicsWindow.Clear()
    Goto begin

    Sub TextInputSub
      code = GraphicsWindow.LastText
      code = code + " = " + Text.GetCharacterCode(code)
    EndSub
     

    • Marked as answer by Vijaye Raji Friday, October 30, 2009 5:09 PM
    Friday, October 30, 2009 1:31 PM
  • Thanks Rushworks, Your the best. It's working. NEW ID: RRS442
    Friday, October 30, 2009 7:33 PM