“Windows”键作为快捷键的一部分

时间:2021-09-02 17:17:47

I very often open a console window while doing my development. Usually Win+R -> cmd -> enter. However, Windows also lets you add a shortcut key to any shortcut ... but when I try to add Win + C to make the shortcut for my favorite-sized/shaped/buffered console appear, it uses Ctrl+Alt+C instead (already used in various editors and other apps...no go.)

我经常在开发时打开一个控制台窗口。通常是Win + R - > cmd - >输入。但是,Windows还允许您向任何快捷方式添加快捷键...但是当我尝试添加Win + C以显示我喜欢的大小/形状/缓冲控制台的快捷方式时,它会使用Ctrl + Alt + C代替(已经在各种编辑器和其他应用程序中使用......没有。)

Is there any way to use the windows key as part of a shortcut key combo?

有没有办法使用Windows键作为快捷键组合的一部分?

(This would be with Windows XP)

(这将是Windows XP)

3 个解决方案

#1


You can use autohotkey for this sort of thing.

您可以使用autohotkey进行此类操作。

And while you are at it. Use console for a much improved command console experience.

而你在这里。使用控制台可以获得更好的命令控制台体验。

#2


If you read the Tooltip (Click the ? and then the label), it says it automatically uses Ctrl+Alt with the intent of picking the final character and no other modifiers -- I assume to avoid overlap with existing shortcut keys. So, no, I don't think you can assign the Windows key in that manner. There may be some third-party tools (e.g. AutoHotKey) that lets you do so, though.

如果您阅读工具提示(单击?然后标签),它会自动使用Ctrl + Alt来选择最终字符,而不是其他修饰符 - 我假设避免与现有快捷键重叠。所以,不,我认为你不能以这种方式分配Windows密钥。但是,可能会有一些第三方工具(例如AutoHotKey)允许您这样做。

#3


Also see Kana's SendKey executable. Site

另请参阅Kana的SendKey可执行文件。现场

You'll see LWIN or RWIN even allows you to choose the left or right WinKey. It's pretty versatile when scripting... and as a bonus it doesn't require installation.

您会看到LWIN或RWIN甚至允许您选择左或右WinKey。它在脚本编写时非常通用......作为奖励,它不需要安装。

Here's the readme contents:

这是自述内容:

___________
DESCRIPTION:

Kana SendKey is a command line program which can be used
to send a system wide hotkey.

__________
HOW TO USE:

1. Run it with several parameters attached into the
   command line. For information about the parameters,
   see the Parameter section below.

2. You can also create a shortcut and assign the parameters
   on shortcut.

______
SYNTAX:

KanaKey [parameter1] [parameter2] ...

Example:
To send system wide CTRL+ALT+O, use:
KanaKey CTRL ALT O

Note: If no parameter is given, no action is performed.

__________
PARAMETERS:

  CTRLBREAK   = Control+Break
  BACKSPACE   = Backspace key
  TAB         = Tab key
  CLEAR       = Clear key
  RETURN      = Enter key
  SHIFT       = Shift key
  CTRL        = Ctrl Key
  ALT         = Alt key
  PAUSE       = Pause key
  CAPS        = Caps Lock key
  ESC         = Esc key
  SPACE       = Space key
  PAGEUP      = Page Up key
  PAGEDOWN    = Page Dn key
  END         = End key
  HOME        = Home key
  LEFT        = Left Arrow key
  UPARROW     = Up Arrow key
  RIGHTARROW  = Right Arrow key
  DOWNARROW   = Down Arrow key
  PRINTSCR    = Prnt Scrn key
  INSERT      = Insert Key
  DEL         = Delete Key
  LWIN        = Left Win key
  RWIN        = Right Win key
  NUM0        = Numeric 0 key
  NUM1        = Numeric 1 key
  NUM2        = Numeric 2 key
  NUM3        = Numeric 3 key
  NUM4        = Numeric 4 key
  NUM5        = Numeric 5 key
  NUM6        = Numeric 6 key
  NUM7        = Numeric 7 key
  NUM8        = Numeric 8 key
  NUM9        = Numeric 9 key
  MULTIPLY    = * key on numeric key pad
  ADD         = + key on numeric key pad
  SUBTRACT    = - key on numeric key pad
  DECIMAL     = . key on numeric key pad
  DIVIDE      = / key on numeric key pad
  F1          = F1 key
  F2          = F2 key
  F3          = F3 key
  F4          = F4 key
  F5          = F5 key
  F6          = F6 key
  F7          = F7 key
  F8          = F8 key
  F9          = F9 key
  F10         = F10 key
  F11         = F11 key
  F12         = F12 key
  F13         = F13 key
  F14         = F14 key
  F15         = F15 key
  F16         = F16 key
  F17         = F17 key
  F18         = F18 key
  F19         = F19 key
  F20         = F20 key
  F21         = F21 key
  F22         = F22 key
  F23         = F23 key
  F24         = F24 key
  NUMLOCK     = Num Lock key
  SCROLLLOCK  = Scroll Lock key

#1


You can use autohotkey for this sort of thing.

您可以使用autohotkey进行此类操作。

And while you are at it. Use console for a much improved command console experience.

而你在这里。使用控制台可以获得更好的命令控制台体验。

#2


If you read the Tooltip (Click the ? and then the label), it says it automatically uses Ctrl+Alt with the intent of picking the final character and no other modifiers -- I assume to avoid overlap with existing shortcut keys. So, no, I don't think you can assign the Windows key in that manner. There may be some third-party tools (e.g. AutoHotKey) that lets you do so, though.

如果您阅读工具提示(单击?然后标签),它会自动使用Ctrl + Alt来选择最终字符,而不是其他修饰符 - 我假设避免与现有快捷键重叠。所以,不,我认为你不能以这种方式分配Windows密钥。但是,可能会有一些第三方工具(例如AutoHotKey)允许您这样做。

#3


Also see Kana's SendKey executable. Site

另请参阅Kana的SendKey可执行文件。现场

You'll see LWIN or RWIN even allows you to choose the left or right WinKey. It's pretty versatile when scripting... and as a bonus it doesn't require installation.

您会看到LWIN或RWIN甚至允许您选择左或右WinKey。它在脚本编写时非常通用......作为奖励,它不需要安装。

Here's the readme contents:

这是自述内容:

___________
DESCRIPTION:

Kana SendKey is a command line program which can be used
to send a system wide hotkey.

__________
HOW TO USE:

1. Run it with several parameters attached into the
   command line. For information about the parameters,
   see the Parameter section below.

2. You can also create a shortcut and assign the parameters
   on shortcut.

______
SYNTAX:

KanaKey [parameter1] [parameter2] ...

Example:
To send system wide CTRL+ALT+O, use:
KanaKey CTRL ALT O

Note: If no parameter is given, no action is performed.

__________
PARAMETERS:

  CTRLBREAK   = Control+Break
  BACKSPACE   = Backspace key
  TAB         = Tab key
  CLEAR       = Clear key
  RETURN      = Enter key
  SHIFT       = Shift key
  CTRL        = Ctrl Key
  ALT         = Alt key
  PAUSE       = Pause key
  CAPS        = Caps Lock key
  ESC         = Esc key
  SPACE       = Space key
  PAGEUP      = Page Up key
  PAGEDOWN    = Page Dn key
  END         = End key
  HOME        = Home key
  LEFT        = Left Arrow key
  UPARROW     = Up Arrow key
  RIGHTARROW  = Right Arrow key
  DOWNARROW   = Down Arrow key
  PRINTSCR    = Prnt Scrn key
  INSERT      = Insert Key
  DEL         = Delete Key
  LWIN        = Left Win key
  RWIN        = Right Win key
  NUM0        = Numeric 0 key
  NUM1        = Numeric 1 key
  NUM2        = Numeric 2 key
  NUM3        = Numeric 3 key
  NUM4        = Numeric 4 key
  NUM5        = Numeric 5 key
  NUM6        = Numeric 6 key
  NUM7        = Numeric 7 key
  NUM8        = Numeric 8 key
  NUM9        = Numeric 9 key
  MULTIPLY    = * key on numeric key pad
  ADD         = + key on numeric key pad
  SUBTRACT    = - key on numeric key pad
  DECIMAL     = . key on numeric key pad
  DIVIDE      = / key on numeric key pad
  F1          = F1 key
  F2          = F2 key
  F3          = F3 key
  F4          = F4 key
  F5          = F5 key
  F6          = F6 key
  F7          = F7 key
  F8          = F8 key
  F9          = F9 key
  F10         = F10 key
  F11         = F11 key
  F12         = F12 key
  F13         = F13 key
  F14         = F14 key
  F15         = F15 key
  F16         = F16 key
  F17         = F17 key
  F18         = F18 key
  F19         = F19 key
  F20         = F20 key
  F21         = F21 key
  F22         = F22 key
  F23         = F23 key
  F24         = F24 key
  NUMLOCK     = Num Lock key
  SCROLLLOCK  = Scroll Lock key