Uses TC incorrect keyboardhook ?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
LittleBit
Junior Member
Junior Member
Posts: 18
Joined: 2021-12-04, 19:52 UTC

Uses TC incorrect keyboardhook ?

Post by *LittleBit »

I'm using a PC with Win10
and TotalCommander(v10).
and the optional cloud-plugin(v2.4) to support Network/cloud drives
When you use this plugin, using a TC-MasterPassword is required.
This works fine.
But I want to integrate all passwords in my passwordmanager (KeePass in my situation).
When I add the TC-MasterPassword as new entry to Keepass, this is not working.
The TC-MasterPassword window is detected by KeePass
but the input-window "Master Password" remains empty,
no password is transferred from KeePass tot the TC input-window.

In this thread https://www.ghisler.ch/board/viewtopic.php?t=57254
was advised to add AllowHook=0 in section [General] of the configfile wcx_ftp.ini
I tried this, but it did not solve my problem.

So I did additional tests.

First I added a test-entry to KeePass for a Notepad window with password-string=TEST1.
When I started 'notepad testfile.txt' from the TC-commandline,
Notepad opened a testfile, but the KeePass hot-key Ctrl-Alt-A did NOT add the password-string.

But when I did in Windows Start; CommandPrompt
and entered in the CommandBox 'notepad testfile.txt',
the testfile was opened and the hot-key Ctrl-Alt-A worked fine !

I tested another PC(laptop) with Win10
and on that PC it worked just fine from TC-commandline.
This was strange
and after several other tests, I think I found the problem,
because ... when I connected an USB-keyboard to my laptop, the keyboard and TC worked fine, but it no longer worked correctly with KeePass also.

So my conclusion:
The keyboard-input hook for TC is on a different level than for commandprompt
and so the TC-keyboard input misses input from my KeePass passwordmanager.
User avatar
nsp
Power Member
Power Member
Posts: 1803
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Uses TC incorrect keyboardhook ?

Post by *nsp »

This is a security feature on the master password input (No other input field inside TC use special keyboard-hook). It should be disabled when using AllowHook=0 in section [General] of the configfile wcx_ftp.ini and checking the hook lock state in the Master Password Ui.
If Keepass is not able to handle it, it is a Keepass issue. Even if AutoType do not work, you can still use password copy ^C and paste it.

--Edited for clarity
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Uses TC incorrect keyboardhook ?

Post by *petermad »

copy ^C and paste it.
I can only paste the password when Allowhook=1 - if Allowhook=0 it seems that the Ctrl+C character is pasted.
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
nsp
Power Member
Power Member
Posts: 1803
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Uses TC incorrect keyboardhook ?

Post by *nsp »

petermad wrote: 2022-05-28, 10:38 UTC
copy ^C and paste it.
I can only paste the password when Allowhook=1 - if Allowhook=0 it seems that the Ctrl+C character is pasted.
You have to use ^C inside Keepass and then paste in Master Password window.
I personally use powerpro to automatically run script or send Keys when a windows is open. It woks with Master Password dialog, Keepass, ping ID ...
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Uses TC incorrect keyboardhook ?

Post by *petermad »

You have to use ^C inside Keepass and then paste in Master Password window.
Sure - I am just saying that you cannot paste unless Allowhook=1
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
nsp
Power Member
Power Member
Posts: 1803
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Uses TC incorrect keyboardhook ?

Post by *nsp »

petermad wrote: 2022-05-28, 19:28 UTC Sure - I am just saying that you cannot paste unless Allowhook=1
You probably mean ^v captured as "unprintable char" but [Shift]+[Ins] or [RClick] -> paste still works.
window SendKeys also works only if Allowhook=0 and "Master Password" windows active. Sendkeys have some drawback as it refer to keystroke and not chars and it is sensitive to caps lock and other modifier keys...

// Powerpro can automate password typing automatically when dialog show up, AHK or AutoIt should also works. About Keepass, I only use it for web access on customer appliance where it is the only password manager allowed...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Uses TC incorrect keyboardhook ?

Post by *ghisler(Author) »

I can confirm that Ctrl+V doesn't work with AllowHook=0. I will fix it.
However, Shift+Insert does work because I'm not intercepting it.
Author of Total Commander
https://www.ghisler.com
Post Reply