Quick way in 'Find Files' to select the 'Find text'-box ?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
bugmenot2
Junior Member
Junior Member
Posts: 30
Joined: 2007-11-22, 18:01 UTC
Contact:

Quick way in 'Find Files' to select the 'Find text'-box ?

Post by *bugmenot2 »

Today when I want to search text into directory via TC I click ALT+F7 , then click TAB few times until I arrive to "FIND TEXT" and then I press "SPACE" to check the checkbox and then I can write the text I want to search.(I working only with keyboard)

Is there a fast way to do that? 1 click that came to "FIND TEXT"

Thank you!





Subject adjusted by moderator to better reflect the content
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Quick way to find text into files

Post by *Dalai »

Pressing Alt+T should do it, provided the language file used has the "t" character as hotkey (underlined). You can find out all such characters by pressing just the Alt key, or if you set your Windows to always show these (usually underlined) indicators.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
bugmenot2
Junior Member
Junior Member
Posts: 30
Joined: 2007-11-22, 18:01 UTC
Contact:

Re: Quick way to find text into files

Post by *bugmenot2 »

Dalai wrote: 2022-09-29, 14:02 UTC Pressing Alt+T should do it, provided the language file used has the "t" character as hotkey (underlined). You can find out all such characters by pressing just the Alt key, or if you set your Windows to always show these (usually underlined) indicators.

Regards
Dalai
ALT+T didn't do anything ....
I can configure it by Hotkey, but which command should I put there ?
I didn't find out how to see all the shortcuts using ALT +
User avatar
Stefan2
Power Member
Power Member
Posts: 4133
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Quick way in 'Find Files' to select the 'Find text'-box ?

Post by *Stefan2 »

2bugmenot2

- open "Find Files" by pressing ALT+F7
- see if there is an underscore at one of the chars of the 'Find text'-description
- for English language this should be 'Find text'
- for me this is visible just after opening "Find Files" , on other OS you may have to press and hold the ALT-key to let them appear.
- Now, press and hold the ALT-key and in addition press that found char at the same time.







 
bugmenot2
Junior Member
Junior Member
Posts: 30
Joined: 2007-11-22, 18:01 UTC
Contact:

Re: Quick way in 'Find Files' to select the 'Find text'-box ?

Post by *bugmenot2 »

Stefan2 wrote: 2022-09-29, 14:54 UTC 2bugmenot2

- open "Find Files" by pressing ALT+F7
- see if there is an underscore at one of the chars of the 'Find text'-description
- for English language this should be 'Find text'
- for me this is visible just after opening "Find Files" , on other OS you may have to press and hold the ALT-key to let them appear.
- Now, press and hold the ALT-key and in addition press that found char at the same time.







 
Yes I see the the underscore under "t"
Now if I press ALT+F7 and then ALT+T I can search the text , thank you!
But can I do it with 1 click only? without press ALT+F7?
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Quick way in 'Find Files' to select the 'Find text'-box ?

Post by *Dalai »

bugmenot2 wrote: 2022-09-29, 20:11 UTCBut can I do it with 1 click only? without press ALT+F7?
I doubt it. It's possible to load a search via a user-defined hotkey. It's also possible to save a search where searching for text is enabled, but I don't think the cursor will be placed in the "Find text" edit field when loading that search.

Some kind of script (e.g. AutoHotkey, AutoIT) could help here, doing all that for you: registering a hotkey of your choicce, opening TC's search and enabling the "Find text" checkbox so that TC places the cursor in that edit field automatically.

It's possible that there are other programs out there with which you can achieve your goal easier. I don't have any examples that would fit in this case because I haven't had the need to search for text in files all the time, apart from some occasions when I did many times a day.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Quick way in 'Find Files' to select the 'Find text'-box ?

Post by *petermad »

but I don't think the cursor will be placed in the "Find text" edit field when loading that search.
It doesnt' - so a script is the only way to obtain this.
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
Stefan2
Power Member
Power Member
Posts: 4133
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Quick way in 'Find Files' to select the 'Find text'-box ?

Post by *Stefan2 »

bugmenot2 wrote: 2022-09-29, 20:11 UTC But can I do it with 1 click only? without press ALT+F7?


The closest would be:

- Hold the Alt-key
- Press F7-key
- Press T-key
- Release the Alt-key

That's one move





 
User avatar
jinsight
Senior Member
Senior Member
Posts: 299
Joined: 2003-02-25, 19:47 UTC
Location: Wooster, Ohio, USA

Re: Quick way in 'Find Files' to select the 'Find text'-box ?

Post by *jinsight »

Try this user command and bind it to a button or keystroke:

; Open Search and Find Text
[em_FindText]
cmd=%Commander_Path%\Addons\Nircmd_64\nircmd.exe sendkeypress alt+F7 alt+T

nircmd, a 116 k nirsoft utility is found at https://www.nirsoft.net/utils/nircmd.html
License #1945
Windows 10 Pro x64
Version 22H2 (OS Build 19045.3930)
TC 11.00 x64 and x86, Everything 1.5.0.1366a x64, QAP 11.6.3.1 x64
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: Quick way in 'Find Files' to select the 'Find text'-box ?

Post by *Fla$her »

2bugmenot2
TCFS2:

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_PATH%\Utils\TCFS2\TCFS2.exe /ef "tcm(501,1) send(`{TAB 8} `)"

wcmicons.dll,27
Search files by text

+ TCFS2Tools (focus on the checkbox instead of pressing [Tab] 8 times):

For TC x32:

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_PATH%\Utils\TCFS2\TCFS2.exe /ef "tcm(501,1) eval(send_wait(,findwnd(TFindFile))) msg(1075,65558,findwnd(TMyCheckBox,,findwnd(TTabPage,,findwnd(TMyTabbedNotebook,,findwnd(TFindFile)),0),14)) send(` `)"

wcmicons.dll,27
Search files by text
For TC x64:

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_PATH%\Utils\TCFS2\TCFS2.exe /ef "tcm(501,1) eval(send_wait(,findwnd(TFindFile))) msg(1075,65558,findwnd(Button,,findwnd(Window,,findwnd(SysTabControl32,,findwnd(TFindFile)),0),16)) send(` `)"

wcmicons.dll,27
Search files by text
Overquoting is evil! 👎
Post Reply