I have a problem, and I'm not sure the best way to solve it. First, I have a wireless USB keyboard, that uses native windows drivers. Don't expect this to come into play, but you never know. Also, I have a TV that I am trying to control with my computer.
The idea is that there are picture size and position settings that I would like to change on the fly easily. For instance, when a widescreen show like west wing comes on, I need to adjust the picture so that the 16:9 aspect ratio fills my 16:9 tv. And for other 4:3 shows, I have another list of settings. So right now, there are certain commands that I can send to the TV through my COM port. As it stands right now, I can use hyperterminal and connect on com1, (9600 baud, 1 stop, no parity, no flow control) and then I can simply send a host of commands. (ussually 6 or 7 for a complete picture setting) I also have a delay set in hyperterminal to give the tv to respond to each command before the next one is sent.
Now for the goal... I would like make my computer monitor ALL incoming keystrokes, and based on the keys that come in, write this data to the com port. I would probably make 6 or 7 F keys that I could press from the wireless keyboard, causing my computer to send the commands down com1 to my tv. I would also like to be able to turn this on and off easily, but I don't want to have to make sure that a special program has focus... So for instance, if I were to make a little app, it should still be working even if I happen to have a browser open and being the active window instead of the app. I envisioned a tray icon that would appear if the keys were being monitored.
What should I pursue to try to accomplish this? I have Delphi, so I could use that... But I thought that maybe windows scripting would provide a means to do this as well. Would windows scripting work well for this task?
The idea is that there are picture size and position settings that I would like to change on the fly easily. For instance, when a widescreen show like west wing comes on, I need to adjust the picture so that the 16:9 aspect ratio fills my 16:9 tv. And for other 4:3 shows, I have another list of settings. So right now, there are certain commands that I can send to the TV through my COM port. As it stands right now, I can use hyperterminal and connect on com1, (9600 baud, 1 stop, no parity, no flow control) and then I can simply send a host of commands. (ussually 6 or 7 for a complete picture setting) I also have a delay set in hyperterminal to give the tv to respond to each command before the next one is sent.
Now for the goal... I would like make my computer monitor ALL incoming keystrokes, and based on the keys that come in, write this data to the com port. I would probably make 6 or 7 F keys that I could press from the wireless keyboard, causing my computer to send the commands down com1 to my tv. I would also like to be able to turn this on and off easily, but I don't want to have to make sure that a special program has focus... So for instance, if I were to make a little app, it should still be working even if I happen to have a browser open and being the active window instead of the app. I envisioned a tray icon that would appear if the keys were being monitored.
What should I pursue to try to accomplish this? I have Delphi, so I could use that... But I thought that maybe windows scripting would provide a means to do this as well. Would windows scripting work well for this task?