in reply to Re^2: How to close an application window in Background? (GuiTest PostMessage)
in thread How to close an application window in Background?

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

Why don't you define the constants?

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

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

    hi Anonymous Monk

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

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

      Ok  sub CONSTANT_NAME { 42 }

        Yep. I did it. Error gone, but the functionality is not working.

        I have added the following code.

        sub WM_KEYDOWN{ 30 } sub WM_KEYUP{ 31 }