Here is a problem I have been struggling with.<br>
<br>
Following 2 programs run simultaneously on a system.<br>
<br>
VB program 1 opens the Commondialog.showprinter window (and awaits user input).<br>
<br>
VB program 2 constantly searches to see if it finds the Commondialog.showprinter window open on the system by using the EnumWindows API call (this already works fine and I can find the windowhandle of the Commondialog.showprinter window).<br>
<br>
I would like program 2 to automatically send a message to the Commondialog.showprinter window from program 1, to select a specific printer driver (from the printer drivers listbox) and then send another message to click the ‘Ok’ button (in order to close the Commondialog window and print something).<br>
So in short I want to replace the user input to the Commondialog.showprinter window by automatically sending messages from program 2.<br>
<br>
Can this be done? Can anybody please give me some help on this….<br>
<p>Philip Van de Poel<br><a href=mailtovdp@village.uunet.be>pvdp@village.uunet.be</a><br><a href= > </a><br>
<br>
Following 2 programs run simultaneously on a system.<br>
<br>
VB program 1 opens the Commondialog.showprinter window (and awaits user input).<br>
<br>
VB program 2 constantly searches to see if it finds the Commondialog.showprinter window open on the system by using the EnumWindows API call (this already works fine and I can find the windowhandle of the Commondialog.showprinter window).<br>
<br>
I would like program 2 to automatically send a message to the Commondialog.showprinter window from program 1, to select a specific printer driver (from the printer drivers listbox) and then send another message to click the ‘Ok’ button (in order to close the Commondialog window and print something).<br>
So in short I want to replace the user input to the Commondialog.showprinter window by automatically sending messages from program 2.<br>
<br>
Can this be done? Can anybody please give me some help on this….<br>
<p>Philip Van de Poel<br><a href=mailtovdp@village.uunet.be>pvdp@village.uunet.be</a><br><a href= > </a><br>