Tasto "Windows" come parte di un tasto di scelta rapida
-
03-07-2019 - |
Domanda
Molto spesso apro una finestra della console mentre faccio il mio sviluppo. Di solito Win + R - > cmd - > accedere. Tuttavia, Windows ti consente anche di aggiungere un tasto di scelta rapida a qualsiasi collegamento ... ma quando provo ad aggiungere Win + C per creare il collegamento per il mio formato / forma preferito / appare la console bufferizzata, utilizza invece Ctrl + Alt + C (già utilizzato in vari editor e altre app ... no go).
Esiste un modo per utilizzare il tasto Windows come parte di una combinazione di tasti di scelta rapida?
(Questo sarebbe con Windows XP)
Soluzione
Puoi usare autohotkey per questo genere di cose.
E mentre ci sei. Usa console per un'esperienza della console di comando notevolmente migliorata.
Altri suggerimenti
Se leggi la descrizione comando (fai clic su? e poi sull'etichetta), dice che usa automaticamente Ctrl + Alt con l'intento di scegliere il carattere finale e no altri modificatori - presumo per evitare la sovrapposizione con i tasti di scelta rapida esistenti. Quindi, no, non penso che tu possa assegnare la chiave di Windows in quel modo. Potrebbero esserci degli strumenti di terze parti (ad es. AutoHotKey ) che ti consente di farlo, tuttavia.
Vedi anche l'eseguibile SendKey di Kana. Sito
Vedrai che LWIN o RWIN ti consentono persino di scegliere il WinKey sinistro o destro. È abbastanza versatile durante lo scripting ... e come bonus non richiede installazione.
Ecco il contenuto del file Leggimi:
___________
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