Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Comprehensive list of Windows hotkeys.


  • Please log in to reply
145 replies to this topic
jonny
  • Members
  • 2951 posts
  • Last active: Feb 24 2008 04:22 AM
  • Joined: 13 Nov 2004

Cool is there any default shortcut to command prompt?


Not that I know of. The shortest way is probably Win+R, then "cmd.exe{Enter}". And as garry illustrates, you can always make your own.

BETLOG
  • Members
  • 222 posts
  • Last active: Apr 07 2010 01:58 PM
  • Joined: 27 Nov 2006
The MS TweakUi page has a util that makes a registry addition for "command prompt here"
Not a keyboard shortcut, but a right click context menu. Could be modified though.
the util: <!-- m -->http://download.micr... ... ySetup.exe<!-- m -->
the page: <!-- m -->http://www.microsoft... ... rtoys.mspx<!-- m -->

I am not certain where i sourced/extracted this code from (probably kellys corner or from the changes the tweakui util made), but iirc it works.
the registry entry:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Command Prompt Here]
@="Command &Prompt Here"

[HKEY_CLASSES_ROOT\Directory\shell\Command Prompt Here\command]
@="cmd.exe /k cd %1 "


PhiLho
  • Moderators
  • 6850 posts
  • Last active: Jan 02 2012 10:09 PM
  • Joined: 27 Dec 2005

The shortest way is probably Win+R, then "cmd.exe{Enter}". And as garry illustrates, you can always make your own.

Just cmd is shorter and still works... :-)
A way to improve garry's code is to drop the WinGetClass command and use %comspec% instead of cmd.exe.
And I would surround the hotkey with
#IfWinActive ahk_class ExploreWClass|CabinetWClass
and
#IfWinActive
(in RegEx title match mode).
Posted Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")

jonny
  • Members
  • 2951 posts
  • Last active: Feb 24 2008 04:22 AM
  • Joined: 13 Nov 2004
A replacement or complement for this resource (depending on how it develops) has been started here on the wiki.

Chris
  • Administrators
  • 10727 posts
  • Last active:
  • Joined: 02 Mar 2004
In case it's of use to anyone, I've been using the following registry file for a few years. It creates two new right-click menu items for all types of files: "Command" and "Open Its Folder". The first one (Command) opens a command prompt in the selected file's directory. The second one (Open Its Folder) opens a new Explorer window with the current file pre-selected (which is especially useful when done from a FileSelectFile dialog or a Search window).

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\Command]
[HKEY_CLASSES_ROOT\*\shell\Command\command]
@="cmd.exe /k cls \"%1\""

[HKEY_CLASSES_ROOT\*\shell\Open Its Folder]
[HKEY_CLASSES_ROOT\*\shell\Open Its Folder\command]
; This method pre-selects the target file in the new window:
@="explorer.exe /select,\"%1\""

Similarly, here's a registry file that gives each folder a new context menu item that opens a command prompt there:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Command]
@=""

[HKEY_CLASSES_ROOT\Directory\shell\Command\command]
@="cmd.exe \\\"%1\\\""



BoBo
  • Guests
  • Last active:
  • Joined: --
Not checked if this has been posted already :oops:

How to Control the Mouse Pointer Without a Mouse in Windows XP

If you want to control your mouse pointer with the keyboard, Windows XP provides a way:

Press Alt+Left Shift+Num Lock all at once and a prompt will appear telling you that you have activated mousekeys, select ok then you can control the mouse with the numpad.

The controls are:
1,2,3,4,6,7,8,9 = move the mouse
5 = mouse button click
+ = double click
insert = hold down mouse button
delete = release mouse button (after holding it down with insert)
/, * or - = select which mouse button the above controls will click (left, both or right respectively)
numlock = disable mousekeys



jonny
  • Members
  • 2951 posts
  • Last active: Feb 24 2008 04:22 AM
  • Joined: 13 Nov 2004
I had briefly mentioned it, yes.

Left Alt + Left Shift + NumLock: Toggle MouseKeys on and off. MouseKeys must be enabled.


I plan to include more details on this and other hotkeys that really activate "modes," like control of the system tray or taskbar, when I completely transfer this list to the wiki. Thanks for providing the full description of this great feature.

Also, I tested it on Win2k, so I suspect it works on NT/2k/XP, not just XP.

007
  • Guests
  • Last active:
  • Joined: --
how can i disable the windows hotkeys in windows xp service pack 1?

Grumpy
  • Guests
  • Last active:
  • Joined: --
What do you call "windows hotkeys"?
Anyway, with AutoHotkey, you can disable any key with the following idiom:
<key name>::Return
eg.:
#l::Return
HTH.

pepoluan
  • Members
  • 18 posts
  • Last active: Jun 18 2007 07:16 PM
  • Joined: 12 Jun 2006
I think this hasn't been posted yet.

You perhaps already know, in Firefox

Ctrl + T = open a new tab.

Do you know:

Shift + Ctrl + T = reopens last closed tab.


Edit: Added "in Firefox" to prevent confusion.

Grumpy
  • Guests
  • Last active:
  • Joined: --
Are there standard Windows shortcuts? Or does this work only in a given program? In the ater case, what does this do here?

keybored
  • Members
  • 351 posts
  • Last active: Apr 26 2013 09:08 AM
  • Joined: 18 Jun 2006
Ctrl + Backspace
Deletes the previous word. Works in many programs.

To make it system wide I added this to my ini file. This does act weird in excel and possibly other programs though I've never had anything bad happen.

^BS::
Send, {CTRLDOWN}{SHIFTDOWN}{LEFT}{CTRLUP}{SHIFTUP}{BACKSPACE}
return


drmurdoch
  • Members
  • 120 posts
  • Last active: Aug 05 2015 03:27 PM
  • Joined: 10 Nov 2006

Ctrl + Backspace
Deletes the previous word. Works in many programs.

To make it system wide I added this to my ini file. This does act weird in excel and possibly other programs though I've never had anything bad happen.

^BS::
Send, {CTRLDOWN}{SHIFTDOWN}{LEFT}{CTRLUP}{SHIFTUP}{BACKSPACE}
return


Added it to what .ini file ?
As I start to accumulate AHK code I want to run all the time ... is there a way of doing this well ? I don't want a million Green H's on my system tray.

:)

TheIrishThug
  • Members
  • 419 posts
  • Last active: Jan 18 2012 02:51 PM
  • Joined: 19 Mar 2006
AutoHotkey.ini in your AutoHotkey directory.

JFLECOOL2
  • Guests
  • Last active:
  • Joined: --
OOOH VERY USERFUL! THANK MAN!