1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

[C] Discarding input

Discussion in 'Programming' started by Alhazred, Jul 31, 2004.

  1. #1
    I have two processes (opened in a console window eachone) which cooperate, one of these processes is in waiting status, the other accept an input from a user, then send the input to the first process which elaborate. After these operations the processes exchange the roles between them, the second waits the datas from the second, which accept an input from a user and so on.
    Here's the problem, if I write something in the console of the waiting process, it accepts that as input when I should insert the real input.

    I need to know this, how can I do to discard the input inserted by a user to a process when it's waiting for an input from the other process and not from the user?

    Sorry for my bad explanation, but I'm not so good with english :p
     
    Alhazred, Jul 31, 2004 IP
  2. Alhazred

    Alhazred Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Can I give focus on a console window?
    How to do it?
     
    Alhazred, Aug 1, 2004 IP
  3. Alhazred

    Alhazred Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I solved this problem, but still have the one with keyboard buffer.
     
    Alhazred, Aug 2, 2004 IP