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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Probem with SendKeys function

Status
Not open for further replies.

StarSearcher

Technical User
Nov 17, 2003
5
US
I need to display and print a number of screens for a project I'm working on. I have everything working with one exception; printing the screen. If I use the following code to activate the ALT key and press (F)ile and (P)rint the dialog displays fine but I can't get the routine to activate the <Enter> key to print the screen.

SendKeys "%(fp)"

If I add <Enter> this way, it just ignores it
If I add {Enter} in brackets, the enter key is executed in the open session (takes me to next page) but the pop-up print dialog is ignored.

Any suggestions?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top