i am reletavely new to programming so please be patient.
i am trying to write a turboc program which will sit in the background (of windows), read in the state of some switches on the parallel port (this bit i can do no problems) and depending on the state of the switches, pass a particular string of scan codes to the keyboard buffer.
now, i understand the workings of the buffer, tail, head etc.
i just dont know how to do it in turbo c. what commands i need to use. any conditioning i need to do to the buffer before using it. like, the head at a particular address then the scan codes and then the tail etc. if someone could give me a few pointers that would be great.
also, (bearing in mind that i am reletively new so correct me if i am wrong) as far as i understand whether in windows or dos this program would need to be a TSR because it needs to do its job continously and 'on the fly'
thanks in advance for any help