WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Printing Information

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

How to Pull Down the Printer List Box

Keywords:    printer list box	CB_SHOWDROPDOWN=335

Question:

I've been trying to use Sendkeys in the following code to pull down the printer list box, but it's not working:
	SendKeysTo("Print", "^p{tab}{Alt}{Down}{end>{up}")

	SendKeysTo("Print", "^p{tab}{Alt}{Down}{end}{up}")
Any ideas?

Answer:

Code to pull down printer list box. Incredibly difficult...

This will pull it down, using the Control Manager extender:

	AddExtender("wwctl34I.dll")
	SendKeysTo("~WordPad","^p")
	TimeDelay(1)
	printwnd=DllHwnd("Print")
	combobox=cWndByID(printwnd,1139)
	CB_SHOWDROPDOWN=335
	IntControl(23,combobox,CB_SHOWDROPDOWN,1,0)

Article ID:   W13701
Filename:   Pull Down Printer List Box.txt
File Created: 2001:03:01:13:19:30
Last Updated: 2001:03:01:13:19:30