version-lasting key mapping problem

English support forum

Moderators: white, Hacker, petermad, Stefan2

User avatar
st
Junior Member
Junior Member
Posts: 84
Joined: 2005-05-30, 01:39 UTC
Location: Beijing
Contact:

version-lasting key mapping problem

Post by *st »

"+" still cannot be reassigned (to "select all" at least),
which i've mentioned long ago & hav been confirmed.
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Confirmed here.

XP SP2

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48107
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It's not a good idea to assign single keys to internal commands. Why? Then they cannot be used also in the command line etc.!
Author of Total Commander
https://www.ghisler.com
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

@st:
If you are interested in an AHK script that assigns "+" to "select all" while still being able to use + in command line, drop me a line.

Icfu
This account is for sale
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

Post by *roentgen »

ghisler(Author) wrote:It's not a good idea to assign single keys to internal commands. Why? Then they cannot be used also in the command line etc.!
Single keys concept is one of the reasons I like Irfanview. Still they don't interact with other operations like manually changing the directory index (just an example wich has some resemblance to TC's command line).

Also there should be a difference between normal number keys (those above the letters :P) and those on the keypad (right of the keyboard)... So Ctrl+1 should be different than Ctrl+Numpad 1
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

ghisler(Author) wrote:It's not a good idea to assign single keys to internal commands. Why? Then they cannot be used also in the command line etc.!
But I neither can
[alt]+[+]
nor
[Alt]+[shift]+[+]
nor
[Ctrl]+[alt]+[+]
nor
[Ctrl]+[+]
nor
[Ctrl]+[shift]+[+]
nor
[Shift]+[+]

assign to cm_selectAll (did not test any other Command)
while

[A] withoput any modifier selects all as expected.

It's not a about it si a good idea to assign a single key but that assigning [+] does not work, IMHO.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
petermad
Power Member
Power Member
Posts: 14824
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2Sheepdog
I just tried it - I could easily assign [Alt]+[+] and [Shift]+[+] to cm_selectAll. Of course it only works with the + on the numeric keyboard (NUM+)

Did you by any chance forget to click the green checkmark when reassigning ?
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

petermad wrote: Did you by any chance forget to click the green checkmark when reassigning ?
No, definitely not (although this could happen easily) ;)
petermad wrote:Of course it only works with the + on the numeric keyboard (NUM+)
I must confess that it's not as natural to me that this only works with the +-/* on Numpad. If it is meant to be it's at least misleading that in the dialogbox this is not indicated (like Num* etc.).

Apart from that makes @ghislers answer
ghisler(Author) wrote: It's not a good idea to assign single keys to internal commands. Why? Then they cannot be used also in the command line etc.!
no sense in this context. Num+ is assigned already to cm_SpreadSelection. But maybe he read this post with a 'quick eye'.


But anyway: I can easily redefine the Num* Num/ Num- to e.g cm_SrcComments while Num+ persistent refuses to run this command after redefining.

So apart from how it is considered to be a good idea or not to redefine a single key: If the redefining does not work I call it a BUG. And I can confirm that redefine neither [+] nor [Num+] without modifier works.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
petermad
Power Member
Power Member
Posts: 14824
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

redefine neither [+] nor [Num+] without modifier works
Confirmed too.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
st
Junior Member
Junior Member
Posts: 84
Joined: 2005-05-30, 01:39 UTC
Location: Beijing
Contact:

Post by *st »

ghisler(Author) wrote:It's not a good idea to assign single keys to internal commands. Why? Then they cannot be used also in the command line etc.!
i haven't used the command line feature all my life inside TC
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

Wasn't the consensus that most ppl wanted mapped keys to be ignored while in the command-line or the like...
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

For single keys this should be obvious, that's why the answer of ghisler is so strange...

Icfu
This account is for sale
User avatar
st
Junior Member
Junior Member
Posts: 84
Joined: 2005-05-30, 01:39 UTC
Location: Beijing
Contact:

needed

Post by *st »

icfu wrote:@st:
If you are interested in an AHK script that assigns "+" to "select all" while still being able to use + in command line, drop me a line.

Icfu
i think this is the only solution i can reassign "+" so far. so i need it.
don't know what AHK is. could U tell me how to use it?
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

You may have a look at the TC-Wiki and download and install AutoHotkey while you're waiting for the completion of the script.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

This script sends TC message cm_SelectAll when + is pressed and left or right panel is active.

Code: Select all

#IfWinActive, ahk_class TTOTAL_CMD
~+::
ControlGetFocus, ActivePanel
If (ActivePanel="TMyListBox1" or ActivePanel="TMyListBox2")
  PostMessage, 1075, 523
Return
Icfu
This account is for sale
Post Reply