Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
411 B

  1. <Job Id="WshShell">
  2. <script language=PerlScript>
  3. $WshShell = $WScript->CreateObject("WScript.Shell");
  4. $WshShell->Run("notepad", 5);
  5. $WshShell->AppActivate("Untitled - Notepad");
  6. my $message = "Hello from PerlScript!\n";
  7. for($i=0; $i < length($message); $i++) {
  8. $char = substr($message, $i, 1);
  9. $WScript->Sleep(100);
  10. $WshShell->SendKeys($char);
  11. }
  12. </script>
  13. </job>