Directly go to Find text in Search function

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
pgriffet
Junior Member
Junior Member
Posts: 67
Joined: 2003-03-01, 22:04 UTC
Location: Belgium

Directly go to Find text in Search function

Post by *pgriffet »

Hi Christian, this is Pierre from Belgium.
I use the "Find text" in the Search function hundred times a day but the cursor is always in the "Search for" field, which is for me not interesting.
So I press CTRL+ALT+F7 and then ALT+X but sometimes, if I missed the CTRL+AL+F7, ALT+X closes TC, which is really annoying.

Is it possible to add a switch in wincmd.ini (or another way) which should directly put the cursor in the "Find text" field ? Or create an internal command named "Find text" ?

Can somebody tell me if it's possible to do this with Autohotkey ? I know it can do stuff like that but I've never used it.

Thanks in advance.
User avatar
Vansumsen
Power Member
Power Member
Posts: 761
Joined: 2003-11-09, 08:16 UTC
Location: Belgique
Contact:

Post by *Vansumsen »

:arrow: pgriffet

Just a solution if you use an external language (wcmd_fra.lng or wcmd_eng.lng...)

Edit your used language file, in the entry "5607=Te&xt(e)" and move the "&" who is before the "x" before the "T".
Save the changed file.
Exit TC and reload TC.

The new shortcut for "Find text" ist "Alt+T".

If you use the wcmd_dut.lng the shortcut is already "ALT+T"

Friendly

Paul
Ouistiti, #11943

L'important n'est pas de convaincre, mais de donner à réfléchir.
The important thing is not to convince, but to incite to think.

1,77245385090552...
pgriffet
Junior Member
Junior Member
Posts: 67
Joined: 2003-03-01, 22:04 UTC
Location: Belgium

Post by *pgriffet »

Thanks Paul, your solution avoids the unwanted close of TC but I still look for a shortcut which should directly go to "find text".
User avatar
ArchCarrier
Junior Member
Junior Member
Posts: 33
Joined: 2005-06-06, 12:53 UTC
Location: Brussels, Belgium

Post by *ArchCarrier »

AutoHotkey:

Code: Select all

#IfWinActive ahk_class TTOTAL_CMD

^!F7::
Send ^!{F7}
Send !t
return
Change the 't' in 'Send !t' to whatever letter is used to activate the text field.

(BTW: three Belgians in one thread!)
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2pgriffet
So I press CTRL+ALT+F7
Just for other readers: CTRL+ALT+F7 is not the default shortcut to open the Find dialog - it is ALT+F7
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
ArchCarrier
Junior Member
Junior Member
Posts: 33
Joined: 2005-06-06, 12:53 UTC
Location: Brussels, Belgium

Post by *ArchCarrier »

Which means you need to change the line ^!F7:: to !F7:: if you have a standard install.
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

As well as the line "Send ^!{F7}" to "Send !{F7}" ;)
User avatar
Hacker
Moderator
Moderator
Posts: 13067
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

...or use ~!F7... ;)

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.
pgriffet
Junior Member
Junior Member
Posts: 67
Joined: 2003-03-01, 22:04 UTC
Location: Belgium

Post by *pgriffet »

Thanks to all.
Sorry for the mistake, it was of course ALT+F7.

Meanwhile, I installed Autohotkey and I created a script which does what I want but I do not have another use of this program which costs me 4 MB of RAM just for a shortcut, even with an executable script.
And as I have an old PC, I will continue to use the old way.

Still looking for an option within TC to activate "Find text".
User avatar
Hacker
Moderator
Moderator
Posts: 13067
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

pgriffet,
Strange, it only takes ~1,4 MB of RAM here. Are you sure you are looking at the "Working Set Private" memory usage?

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.
pgriffet
Junior Member
Junior Member
Posts: 67
Joined: 2003-03-01, 22:04 UTC
Location: Belgium

Post by *pgriffet »

2Hacker

According to The PROCFS plugin, the exe script (which has a size of 200 KB) uses between 3.5 MB and 5 MB of RAM. I run XP SP1.
Actually, the size of RAM increases the first time I use the shortcut.
Post Reply