Communications over a serial link cannot be shared! My proposal is creating a "chained" COM port, that is a virtual COM port (say, COM8) that you can point your original application to, which is monitored by our program and forwards everything to COM1, plus adding the outputs you need to occur, with your schedule.