Sending text from my program to an existing program textbox
<p>Here is the situation. At my job, we use an existing program that allows us to scan barcodes into a record set. The issue is, to create this record set we have to scan each item separately. We click an add button which brings up a textbox and we scan the barcodes into it (or it can be typed in)</p>

<p>To avoid having to do this, I've built a program in C# that creates a list of barcodes and I was looking for a way to just set up a simple copy and paste type setup that would copy a barcode, paste it into the existing programs textbox and maybe send a return char so it will be ready for the next barcode. It would simply send over each barcode one at a time till it had gone through the list.</p>

<p>I have control over my c# program, but the work program isn't built by me and I don't have access to the code or any apis it uses. Could someone suggest a solution that might work for this? I found something called SendMessage, but I'm not completely certain how it works since it says I need to search for the process first.</p>
