Loading ...
Sorry, an error occurred while loading the content.

Re: Sending keys to application thr scheduler

Expand Messages
  • erngui
    Hi, ... Yes, you would need to keep alt down while sending several sequential tab keys. The problem is that SendKeys doesn t allow that. If you download the
    Message 1 of 4 , Jun 20, 2002
    • 0 Attachment
      Hi,

      --- In perlguitest@y..., Jangale V-S <v-s.jangale@s...> wrote:
      > I tried switching between windows by using
      >
      > SendKeys("%{TAB}{PAUSE 1000}");
      >
      > in a loop !
      >
      > However program keeps on switching between
      > first two windows only !

      Yes, you would need to keep alt down while sending several sequential
      tab keys. The problem is that SendKeys doesn't allow that. If you
      download the latest version (see 1.49.1 in the files section), you
      can do this:

      use Win32::GuiTest qw/:FUNC :VK/;

      SendRawKey(VK_MENU, 0);
      SendKeys("{TAB}{PAU 1000}{TAB}{PAU 1000}{TAB}");
      SendRawKey(VK_MENU, KEYEVENTF_KEYUP);

      The PAUSE commands are only there so that you can see what's going on.

      Regards,
      Ernesto.
      -- Ernesto Guisado <mailto:erngui@...>, <http://triumvir.org>
    Your message has been successfully submitted and would be delivered to recipients shortly.