Results 1 to 2 of 2

Thread: how to read user input in console application

  1. #1

    Question how to read user input in console application

    please help on how to read user input in console application
    like Console.Read

  2. #2
    run the example C:\thinBasic\SampleScripts\Console\Console_Password.tbasic
    it needs a password try: ciao for correct answer.
    it uses Console_InKeyB, you can use also Console_InKey
    tip: position the cursor over Console_InKeyB in the IDE then press F1 this will open the help for Console_InKeyB and on the left you can see all the keywords for Console_...

    PS: for Console_Read() try this
    Uses "Console"
    Dim InChars As String
    PrintL "enter any string than type <ENTER>"
    InChars = Console_Read()
    PrintL InChars
    Last edited by zak; 08-04-2012 at 09:07.

Similar Threads

  1. getting console like keyboard input in windowed mode
    By Eggman in forum Do you know ...
    Replies: 5
    Last Post: 17-10-2010, 18:03
  2. Here's a script to read ID3v1 tags
    By martin in forum Sources, Templates, Code Snippets, Tips and Tricks, Do you know ...
    Replies: 9
    Last Post: 05-09-2009, 19:50
  3. How to read the keyboard buffer?
    By Michael Hartlef in forum thinBasic General
    Replies: 7
    Last Post: 18-05-2009, 08:47
  4. Read text and replace words in side
    By Henry in forum thinBasic General
    Replies: 3
    Last Post: 10-09-2007, 16:00

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts