Re-definition of CTRL+SHFIFT+ENTER in MS Vista/Win7

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
buzzlightyear
Junior Member
Junior Member
Posts: 42
Joined: 2004-10-01, 10:46 UTC

Re-definition of CTRL+SHFIFT+ENTER in MS Vista/Win7

Post by *buzzlightyear »

Under Vista and Windows 7, hitting CTRL+SHIFT+ENTER in cmd or the search box will raise the UAC dialog so that you can run the typed command elevated, i.e. with admin rights. It would be great if TC's command line would show the same behaviour.

The current implementation in TC (The file under the cursor including its path is appended to the command line.) could be assigned to another keyboard shortcut. At least, this should be a configuration option.

By the way, I'd also like to have a shortcut for "Copy path to clipboard" like the corresponding MS Powertoy does.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

[mod]Moved to suggestions forum[/mod]
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Never heard about magic Windows's Ctrl+Shift+Enter, and it doesn't work for me... Please describe how to see it in action.

But I'm using TC's Ctrl+Shift+Enter for years, and many years before Windows Vista.
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3896
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

By the way, I'd also like to have a shortcut for "Copy path to clipboard" like the corresponding MS Powertoy does.
What about "cm_CopySrcPathToClip" ... feel free to assign a shortcut.

BTW: there are some others alike:
totalcmd.inc wrote:cm_CopyNamesToClip=2017;Copy filenames to clipboard
cm_CopyFullNamesToClip=2018;Copy names with full path
cm_CopyNetNamesToClip=2021;Copy names with UNC path
cm_CopySrcPathToClip=2029;Copy source path to clipboard
cm_CopyTrgPathToClip=2030;Copy target path to clipboard
cm_CopyFileDetailsToClip=2036;Copy all shown columns
cm_CopyFpFileDetailsToClip=2037;Copy all columns, with full path
cm_CopyNetFileDetailsToClip=2038;Copy all columns, with UNC path
#5767 Personal license
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

@MVV
Under Win7, Open the start menu,
Type in the search box, notepad

When you see notepad.exe appear at the top of the start menu -
Ctrl+Shift+Click on notepad.exe

Notepad will be run with Administrative rights, and you will get a UAC prompt just before it launches.

I had thought it also did so from the Run box (Win+R) but that doesn't appear to be working currently.
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Wow, hidden feature :D however I don't use that search box at all, I open Start menu with mouse in order to go on with mouse, but it is quite ugly to go on with mouse in Win7 Start menu because of its tree structure instead of drop-down submenus. If I want to launch a program with keyboard, I use Win+R, or simply TC. And I have my little Sudo.exe in Windows folder, so I can simply type sudo notepad. Anyway I don't open text editor directly, only on [Shift+]F4 from TC or Explorer.

buzzlightyear, you can use my Sudo.exe for your task. Simply open Configuration - Misc dialog, select your shortcut and create new user-command in usercmd.ini group. Your command should contain path to Sudo.exe as a command and %P%N as a parameter.
User avatar
buzzlightyear
Junior Member
Junior Member
Posts: 42
Joined: 2004-10-01, 10:46 UTC

Post by *buzzlightyear »

Balderstrom, thank you for the explanation. But MVV could also just have put the three words CTRL SHIFT ENTER in a google web search. That would have delivered these links on the very first results page:
http://www.mydigitallife.info/how-to-open-elevated-command-prompt-with-administrator-privileges-in-windows-vista/
http://blogs.msdn.com/b/tims/archive/2006/11/02/windows-vista-secret-10-open-an-elevated-command-prompt-in-six-keystrokes.aspx

MVV, yes I noticed your sudo.exe (as well as some other addons) and will surely try that once I'm forced to use Windows 7. At home I just upgraded from Win2k to WinXP a month ago and @work the Win7 rollout is postponed due to lots of application not ready for Win7 yet, he he :-)
Post Reply