in reply to How to close an application window in Background?

Why not PostMessage like Re^4: How to execute win32 functions when the user session is locked ( hwndSendKeys )?

win32 is real easy, its sendmessage or postmessage or something win32api .. its all on msdn

  • Comment on Re: How to close an application window in Background? (GuiTest PostMessage)

Replies are listed 'Best First'.
Re^2: How to close an application window in Background? (GuiTest PostMessage)
by pradeep,krishna (Scribe) on Mar 21, 2014 at 11:05 UTC

    Hi Anonymous Monk...

    I tried it.., but i am getting the error saying

    Undefined subroutine &main::WM_KEYDOWN called at login.pl line 33.
    Undefined subroutine &main::WM_KEYUP called at login.pl line 34.

      I tried it.., but i am getting the error saying

      Why don't you define the constants?

        hi Anonymous Monk

        I am new to perl. Can tel me how to define the constants?