Default keypress in another window

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

Hi,

I am writing an application that needs to fire the print dialog off when it
detects it to automate the application. At the moment I can pick up when the
print dialog in on the screen but am unable to send the correct message to
either send an ALT-P or default key press to the dialog box to fire it off.

Does anyone here know how to do this from vb.net using (I guess) the
sendkeys API, I have the hWnd of the dialog box if that helps?

Thanks in advance
Mike
 
Don't worry I did now know you could just use the .NET send keys, it seems
to work fine now.

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top