cm_GotoDrive

English support forum

Moderators: white, Hacker, petermad, Stefan2

User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2ghisler(Author)
Hmm, correct me if I'm wrong, but to my knowledge, normal programs don't see the Windows key, because the system catches it first...
I have found these entries on the virtual key code documentation page. They are indeed the Windows keys:
msdn wrote:

Code: Select all

VK_LWIN (5B)
Left Windows key (Microsoft Natural keyboard) 

VK_RWIN (5C)
Right Windows key (Natural keyboard)

VK_APPS (5D)
Applications key (Natural keyboard)
They can be used by application without problems.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/WindowsUserInterface/UserInput/VirtualKeyCodes.asp
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

OK, I will check that! You can't override the system-wide Explorer keys like Win+E this way, right?
Author of Total Commander
https://www.ghisler.com
User avatar
Hacker
Moderator
Moderator
Posts: 13067
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Well, some apps claim to be able to turn them off... don't know about bypassing.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2ghisler(Author)
OK, I will check that!
Thanks!
All I know is that GetAsyncKeyState returns a value != 0 while VK_LWIN is pressed.... It can be used for hotkeys.
Last edited by Lefteous on 2005-03-21, 10:11 UTC, edited 1 time in total.
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

You don't need apps to turn them off, a registry setting is enough:

Code: Select all

REGEDIT4

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoWinKeys"=dword:00000001
This will disable all Windows shortcuts besides Win+L and Win+U. The rest I have explained above.

Leave the hotkey dialog without any limits please. Users know how to disable Win+E so just leave the decision to the users, not TC. If you are able to override the Windows default shortcuts don't hesitate to implement them, too, it will be even more comfortable then.

Icfu
This account is for sale
User avatar
AbteriX
Junior Member
Junior Member
Posts: 36
Joined: 2006-03-12, 20:10 UTC
Location: Old Europe

Post by *AbteriX »

Searching about my issue i found THIS thread and use this instead of
starting an new one in the german forum.
-------------------------------------------------------------------------------


I just update from 6.3 to 6.54a


I have in my *.MNU file e.g. this item:
MENUITEM "Laufwerk &I", cm_GotoDriveB

and the same for J also till Z.



This works with 6.3 but...
After starting the same MNU with 6.54a
i get for every drive that isn't present
an error like "Unbekannter Bezeichner cm_GotoDriveB"

Is there any change in TC that cause this error?
Is there any advice to solve this?
Thanks
Abterix
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

All commands you call inthe menu have to be defined in totalcmd.inc in your TC-Directory.

The standard totalcmd.inc provided by the installer does not provide all those driveletters (as well as some other commands).

Solution:
1: Add those entries by yourself

Code: Select all

cm_GotoDriveA=2061;Switch to drive  A
cm_GotoDriveB=2062;Switch to drive  B
cm_GotoDriveC=2063;Switch to drive  C
cm_GotoDriveD=2064;Switch to drive  D
cm_GotoDriveE=2065;Switch to drive  E
cm_GotoDriveF=2066;Switch to drive  F
cm_GotoDriveG=2067;Switch to drive  G
cm_GotoDriveH=2068;Switch to drive  H
cm_GotoDriveI=2069;Switch to drive  I
cm_GotoDriveJ=2070;Switch to drive  J
cm_GotoDriveK=2071;Switch to drive  K
cm_GotoDriveL=2072;Switch to drive  L
cm_GotoDriveM=2073;Switch to drive  M
cm_GotoDriveN=2074;Switch to drive  N
cm_GotoDriveO=2075;Switch to drive  O
cm_GotoDriveP=2076;Switch to drive  P
cm_GotoDriveQ=2077;Switch to drive  Q
cm_GotoDriveR=2078;Switch to drive  R
cm_GotoDriveS=2079;Switch to drive  S
cm_GotoDriveT=2080;Switch to drive  T
cm_GotoDriveU=2081;Switch to drive  U
cm_GotoDriveV=2082;Switch to drive  V
cm_GotoDriveW=2083;Switch to drive  W
cm_GotoDriveX=2084;Switch to drive  X
cm_GotoDriveY=2085;Switch to drive  Y
cm_GotoDriveZ=2086;Switch to drive  Z
2. Use in your menu the corresponidng numbers, i.e.
instead of cm_GotoDriveB use 2062.

Then TC runs the command even if the totalcmd.inc is absent.

If you change your totalcmd.inc it is a good idea to make a backup for each new installation will overwrite the totalcmd.inc to enable all users to access new commands. After a new installation you may copy the missing entries with an external compare tool to the new totalcmd.inc.

sheepdog

[Edit]

I just see you're using the german menu. Then you may copy the 'complete' Totalcmd.inc from here
ALthough you'll have to delete all entries you do not need because currently only 500 commands are supported in the totalcmd.inc (and all possible commands are about 1000), but that would probably be no problem.
[/edit]
"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
AbteriX
Junior Member
Junior Member
Posts: 36
Joined: 2006-03-12, 20:10 UTC
Location: Old Europe

Post by *AbteriX »

Thanks sheepdog,
damn.d yes, i've overwriten the INC too, ...i am to silly :D

Now i remember this depencies again, ones goes older.

Thanks for the link too.
Abterix
Post Reply