AutoHotkey Community

It is currently May 27th, 2012, 8:07 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 140 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 10  Next
Author Message
 Post subject:
PostPosted: January 4th, 2007, 11:14 pm 
Offline

Joined: November 13th, 2004, 4:08 am
Posts: 2951
Location: Minnesota
Quote:
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 5th, 2007, 3:41 am 
Offline

Joined: November 27th, 2006, 7:41 am
Posts: 222
Location: Queensland, Australia
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: http://download.microsoft.com/download/ ... ySetup.exe
the page: http://www.microsoft.com/windowsxp/down ... rtoys.mspx

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:
Code:
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 "


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 5th, 2007, 9:38 am 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
jonny wrote:
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).

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 10th, 2007, 10:23 am 
Offline

Joined: November 13th, 2004, 4:08 am
Posts: 2951
Location: Minnesota
A replacement or complement for this resource (depending on how it develops) has been started here on the wiki.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 10th, 2007, 1:40 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
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).
Quote:
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:
Quote:
Windows Registry Editor Version 5.00

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

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 25th, 2007, 1:25 pm 
Not checked if this has been posted already :oops:

Quote:
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 25th, 2007, 6:08 pm 
Offline

Joined: November 13th, 2004, 4:08 am
Posts: 2951
Location: Minnesota
I had briefly mentioned it, yes.

Quote:
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: disabling hotkeys
PostPosted: February 12th, 2007, 9:02 am 
how can i disable the windows hotkeys in windows xp service pack 1?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 12th, 2007, 10:20 am 
What do you call "windows hotkeys"?
Anyway, with AutoHotkey, you can disable any key with the following idiom:
Code:
<key name>::Return
eg.:
Code:
#l::Return
HTH.


Report this post
Top
  
Reply with quote  
PostPosted: March 7th, 2007, 6:48 pm 
Offline

Joined: June 12th, 2006, 9:14 pm
Posts: 18
Location: Jakarta, Indonesia
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.


Last edited by pepoluan on March 7th, 2007, 7:45 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 7th, 2007, 7:19 pm 
Are there standard Windows shortcuts? Or does this work only in a given program? In the ater case, what does this do here?


Report this post
Top
  
Reply with quote  
 Post subject: ^Backspace
PostPosted: March 8th, 2007, 3:46 am 
Offline

Joined: June 18th, 2006, 8:47 am
Posts: 346
Location: Phoenix, AZ
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.

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: ^Backspace
PostPosted: March 18th, 2007, 9:05 pm 
Offline

Joined: November 10th, 2006, 5:10 am
Posts: 110
keybored wrote:
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.

Code:
^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.

:)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 18th, 2007, 9:36 pm 
Offline

Joined: March 19th, 2006, 5:52 am
Posts: 419
AutoHotkey.ini in your AutoHotkey directory.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: REPLY
PostPosted: March 21st, 2007, 6:58 pm 
OOOH VERY USERFUL! THANK MAN!


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 140 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 10  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group