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

434Sending CONTROL ALT DELETE keys to computer

Expand Messages
  • Jangale V-S SPEL-TIT
    Mar 17, 2004
    • 0 Attachment
      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