Filters: Display on Button Bar?
Moderators: Hacker, petermad, Stefan2, white
Filters: Display on Button Bar?
Hi,
I would like to create various file filters that will display on the button bar as individual buttons. i.e. each filter would have it's own button. Is it possible to do this (I have the latest version of tc).
Alternatively, is there a "hotlist"-style drop-down within which user-created filters can be selected?
Thanks,
Frank
I would like to create various file filters that will display on the button bar as individual buttons. i.e. each filter would have it's own button. Is it possible to do this (I have the latest version of tc).
Alternatively, is there a "hotlist"-style drop-down within which user-created filters can be selected?
Thanks,
Frank
hfk
Re: Filters: Display on Button Bar?
hfk wrote:Hi,
I would like to create various file filters that will display on the button bar as individual buttons. i.e. each filter would have it's own button. Is it possible to do this (I have the latest version of tc).
Alternatively, is there a "hotlist"-style drop-down within which user-created filters can be selected?
Thanks,
Frank

To install with a button in the bar, the command (corresponding with Ctrl+F12) is cm_srcuserdef


Clo
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials
You can use this code in TC Script Editor.
Just save it to a file, then create a button with "TCScript.exe" as command and "/run filename" as parameters. You can just change the "exe" in second last line to the ext you need.
Code: Select all
#define VK_RETURN 13
#define VK_MULTIPLY 106
#define VK_OEM_PERIOD 190
PostCmd(cm_SrcUserDef);
SendVKey(VK_MULTIPLY,2);
SendVKey(VK_OEM_PERIOD,2);
SendText("exe");
SendVKey(VK_RETURN,2);
Of all the planets I've been to, this one is my favorite.
Problems with script Editor
Hi,
I tried the Script Editor with the following to create various filters:
#define VK_RETURN 13
#define VK_MULTIPLY 106
#define VK_OEM_PERIOD 190
PostCmd(cm_SrcUserDef);
SendVKey(VK_MULTIPLY,2);
SendVKey(VK_OEM_PERIOD,2);
SendText("*.* |*.auto.fm" );
SendVKey(VK_RETURN,2);
All files should be shown except "*.auto.fm"-files.
But onliy "*. auto.fm" is send to the box.
I tried the Script Editor with the following to create various filters:
#define VK_RETURN 13
#define VK_MULTIPLY 106
#define VK_OEM_PERIOD 190
PostCmd(cm_SrcUserDef);
SendVKey(VK_MULTIPLY,2);
SendVKey(VK_OEM_PERIOD,2);
SendText("*.* |*.auto.fm" );
SendVKey(VK_RETURN,2);
All files should be shown except "*.auto.fm"-files.
But onliy "*. auto.fm" is send to the box.
Difference between Ctrl+F12 & Num+ (Gray+)
2Leif
If you use Num+ (also called GrayPlus key) then you make a selection, et after typing *.exe you will mark all *.exe files and the other files will remain visible but will not be marked. You select more files with Num+, deselect files with Num-, reverse selection with Num*.
If you use only Ctrl+F12 you define a filter - what files should be seen, in this case you type *.exe and after that you see ONLY *.exe files, other files are hidden. You disable that by pressing Ctrl+F12 and typing *.*. Then all files will appear.
In both windoes you can type more than one file mask:
*.com; ????.exe; read*.tx?
Mask above sows/selects all .com file, all .exe with 4 letter long filename and all file starting with read and with ext .tx?, eg read.txt, readme.txt, readall.txw etc.
Such masks will easily allow to notice the difference between Ctrl+F12 and Gray.
If you use Num+ (also called GrayPlus key) then you make a selection, et after typing *.exe you will mark all *.exe files and the other files will remain visible but will not be marked. You select more files with Num+, deselect files with Num-, reverse selection with Num*.
If you use only Ctrl+F12 you define a filter - what files should be seen, in this case you type *.exe and after that you see ONLY *.exe files, other files are hidden. You disable that by pressing Ctrl+F12 and typing *.*. Then all files will appear.
In both windoes you can type more than one file mask:
*.com; ????.exe; read*.tx?
Mask above sows/selects all .com file, all .exe with 4 letter long filename and all file starting with read and with ext .tx?, eg read.txt, readme.txt, readall.txw etc.
Such masks will easily allow to notice the difference between Ctrl+F12 and Gray.

Simple solution
From the german forum:
The commands I need are
cd *.doc *.txt
or with directory
cd c:\dokumente\*.doc *.txt
....changes the actual filter to *.doc and *.txt.
These commands I can use in the Buttonbar.
The commands I need are
cd *.doc *.txt
or with directory
cd c:\dokumente\*.doc *.txt
....changes the actual filter to *.doc and *.txt.
These commands I can use in the Buttonbar.