Default keypress in another window

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mike

    Default keypress in another window


    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


  • Mike

    #2
    Re: Default keypress in another window

    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:OXSktl9yEH A.2036@TK2MSFTN GP12.phx.gbl...[color=blue]
    >
    > 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
    >
    >[/color]


    Comment

    Working...