PC Review


Reply
Thread Tools Rate Thread

Default keypress in another window

 
 
Mike
Guest
Posts: n/a
 
      16th Nov 2004

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


 
Reply With Quote
 
 
 
 
Mike
Guest
Posts: n/a
 
      16th Nov 2004
Don't worry I did now know you could just use the .NET send keys, it seems
to work fine now.

Mike


"Mike" <mike.trillwood@f#r#i#d#a#y-a#d.co.uk> wrote in message
news:(E-Mail Removed)...
>
> 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
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Default Button Click On Enter KeyPress On Web Form Joey Microsoft ASP .NET 1 28th Feb 2007 04:12 PM
How to set 'Window(default) be default encoding? =?Utf-8?B?Q09Z?= Microsoft Word Document Management 0 4th Feb 2006 06:01 PM
Detecting Keypress on the Window Mitchell Vincent Microsoft VB .NET 3 15th Jun 2005 08:19 PM
How to catch KeyUp or KeyPress event in a modal window (ShowDialog) bill Microsoft Dot NET Framework Forms 1 16th Oct 2004 04:23 PM
Re: IE window default Thorsten Matzner Windows XP Customization 0 20th Jul 2003 08:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:55 AM.