欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Windows 腳本宿主  

Hotkey 屬性

為快捷方式指派組合鍵,或確定指派給快捷方式的組合鍵。

object.Hotkey = strHotkey

參數(shù)

object
WshShortcut 對象。
strHotkey
代表指派給快捷方式的組合鍵的字符串。

語法

strHotkey 的語法為:

[KeyModifier]KeyName
KeyModifier
可以是以下的任何一個組合鍵:ALT+、CTRL+、SHIFT+、EXT+。

注意   EXT+ 表示“擴展鍵”。— 此處是為了防止日后將新的 SHIFT-鍵類型添加到字符集內(nèi)。

KeyName
a ... z、 0 ... 9、F1 F12 ...

KeyName 不區(qū)分大小寫。

說明

熱鍵是一組組合鍵,當同時按下所有相關鍵時將啟動快捷方式。

在 Windows 2000 中,有效的熱鍵總是以 CTRL + ALT 開頭。

示例

下面的示例演示 HotKey 屬性的用法:

<package>
   <job id="vbs">
      <script language="VBScript">
         set WshShell = WScript.CreateObject("WScript.Shell")
         strDesktop = WshShell.SpecialFolders("Desktop")
         set oShellLink = WshShell.CreateShortcut(strDesktop & "\Shortcut Script.lnk")
         oShellLink.TargetPath = WScript.ScriptFullName
         oShellLink.WindowStyle = 1
         oShellLink.Hotkey = "Ctrl+Alt+e"
         oShellLink.IconLocation = "notepad.exe, 0"
         oShellLink.Description = "Shortcut Script"
         oShellLink.WorkingDirectory = strDesktop
         oShellLink.Save
      </script>
   </job>

   <job id="js">
      <script language="JScript">
         var WshShell = WScript.CreateObject("WScript.Shell");
         strDesktop = WshShell.SpecialFolders("Desktop");
         var oShellLink = WshShell.CreateShortcut(strDesktop + "\\Shortcut Script.lnk");
         oShellLink.TargetPath = WScript.ScriptFullName;
         oShellLink.WindowStyle = 1;
         oShellLink.Hotkey = "Ctrl+Alt+e";
         oShellLink.IconLocation = "notepad.exe, 0";
         oShellLink.Description = "Shortcut Script";
         oShellLink.WorkingDirectory = strDesktop;
         oShellLink.Save();
      </script>
   </job>
</package>

請參閱

運行腳本 | WshSpecialFolders 對象 | WshShortcut 對象