in reply to hot key not accepted

What key sequence are you trying to send, and how are you trying to send it?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco.
Rule 1 has a caveat! -- Who broke the cabal?

Replies are listed 'Best First'.
Re^2: hot key not accepted
by kcella (Beadle) on Apr 06, 2005 at 10:50 UTC
    I have tried sending CTRL-ALT-a and F6 and my hotkeys. Neiteher of them worked. The method in Win32::GuiTest is called SendKeys and supports sending these special characters. Documentation here:

    http://search.cpan.org/~erngui/Win32-GuiTest-1.3/GuiTest.pm

      I was asking to see your code. It is difficult to correct your attempt without seeing it.

      A guess: You are ensuring that the application you wish to receive the keystrokes, is the currently active window before using the SendKeys() function aren't you?


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      Lingua non convalesco, consenesco et abolesco.
      Rule 1 has a caveat! -- Who broke the cabal?
        As of right now, for testing purposes the code is just doing a SendKeys("%^a"), then another call to handle the password (after verifying it is the active window). There is no need to make sure it is the active window initially because the purpose of the hot key is to pop-up a GUI window to type the password for toggling security. This initial GUI window is what I cannot get to happen. With previous program I was using (MagicFolders), I had no problem doing the same thing, but this one seems to handle hot keys differently.

        My guess was that there is something inherently different at the bit level between SendKeys and someone physically typing the characters.