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

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

Ok  sub CONSTANT_NAME { 42 }

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

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

    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 }

      Yep. I did it. Error gone, but the functionality is not working. I have added the following code.

      Why did you add that code?

        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 }


        And I did this also insted of above one.
        use constant WM_KEYDOWN => 0x0100; use constant WM_KEYUP => 0x0101;


        Both did not work.