+ Reply to Thread
Results 1 to 2 of 2

Thread: Keyboard and Console Screen

  1. #1
    Wire Noob Kamilczak020's Avatar
    Join Date
    May 2010
    Posts
    5

    Question Keyboard and Console Screen

    This is my code:
    Code:
    @name Console Holo War Machine
    @inputs Screen:wirelink Run Button Keyboard
    @outputs Reset:string
    @persist String:array
    interval(1)
    
    
    
    if (Run) {
    if (Button==1) {
    Screen[2041]=1      
    timer("Startup",5000)
    Screen:writeString("Loading...",10,8,900,0,0)
        
    }
    
    if (clk("Startup")) {
    Screen[2041]=1
    Screen:writeString("Loaded",11,7,900,0,0)  
    Screen:writeString("Please give the password:",3,8,900,0,0)  
    Screen:writeString(toChar(Keyboard),4,9,90,0,0)
    }
    
    }
    else {
        Screen[2041]=1
        
    }
    So in console screen it looks like that:

    Code:
    Loading...
    //Here it resets screen so its blank and write this:
    Loaded. 
    Please give the password:
    XXXXXXXXXX
    Basically what i need is when i type in keyboard when the "Please Give the password" text is on the screen, it puts the password in place of XXXXXX (look line above).
    pls tell me how can i manage to do it.

  2. #2
    aka Colonel Never Online Colonel Thirty Two's Avatar
    Join Date
    Oct 2009
    Posts
    2,683
    Blog Entries
    5

    Default Re: Keyboard and Console Screen

    Have a timer increase a value until the E2 is done "loading" and draw a number of characters according to that value.

    Unless you are loading a file (which doesn't take 5 seconds), or processing stuff (like that Jpeg decoder), loading screens are incredibly pointless and just waste time, both the users and the developers.

    Also, replace interval(1) with runOnTick(1)

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots