Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing strings in external applications

Status
Not open for further replies.

PoppaStylez

Programmer
Jul 29, 2004
6
0
0
AU
Hi all,
I've got an old rs232 barcode scanner which plugs into the comm port. I'm developing an application to recieve the barcode, and print it in an external application which has focus at the point where the cursor is.
How would i go about printing the barcode in an external application?
Thanks
 

You are going to need to have the handle to the window that you are printing to (or actually Sending the Message to (SendMessage)). To get this you can use FindWindow and EnumChildWindows and then use SendMessage or perhaps PostMessage to accomplish what you want.

Good Luck

 
Thanks mate, i used the "sendKeys.send()" call to do it!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top