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

Re: Sending CONTROL ALT DELETE keys to computer

Expand Messages
  • Dennis K. Paulsen
    Please read the following message: http://groups.yahoo.com/group/perlguitest/message/206 ... user ! ... computer !
    Message 1 of 2 , Mar 17 6:45 AM
    • 0 Attachment
      Please read the following message:
      http://groups.yahoo.com/group/perlguitest/message/206

      --- In perlguitest@yahoogroups.com, Jangale V-S SPEL-TIT <v-
      s.jangale@s...> wrote:
      >
      > Dear All,
      >
      > I want to write a script to automate logon/lock for a particular
      user !
      >
      > For this first I want to send CONTROL ALT DELETE event to the
      computer !
      >
      > I am not able to do this ! Here is my attempt !
      >
      >
      > use Win32::GuiTest qw/:FUNC :VK/;
      >
      > SendRawKey(VK_CONTROL, 0);
      > SendRawKey(VK_MENU, 0);
      > SendKeys("{DELETE}{PAU 1000}");
      > SendRawKey(VK_CONTROL, KEYEVENTF_KEYUP);
      > SendRawKey(VK_MENU, KEYEVENTF_KEYUP);
      >
      > Still logon/lock screen is not activated !
      >
      > Can anybody tell me the reason ?
      >
      > Thanks in advance !
      >
      > Vidyadhar
    Your message has been successfully submitted and would be delivered to recipients shortly.