Filters: Display on Button Bar?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
hfk
Junior Member
Junior Member
Posts: 3
Joined: 2003-09-26, 17:48 UTC

Filters: Display on Button Bar?

Post by *hfk »

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
hfk
User avatar
Coco
Senior Member
Senior Member
Posts: 223
Joined: 2003-02-07, 13:35 UTC
Location: Belgium
Contact:

Post by *Coco »

Did you tried CTRL+F12?
Alain
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Re: Filters: Display on Button Bar?

Post by *Clo »

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
:D Hello!
To install with a button in the bar, the command (corresponding with Ctrl+F12) is cm_srcuserdef
:roll: For several various filters... huuum, I don't see at the moment, I'll think to...

:) Friendly regards,
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
Aezay
Senior Member
Senior Member
Posts: 269
Joined: 2003-02-12, 07:27 UTC
Location: Denmark
Contact:

Post by *Aezay »

You can use this code in TC Script Editor.

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);
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.
Of all the planets I've been to, this one is my favorite.
Erich
Junior Member
Junior Member
Posts: 16
Joined: 2004-03-02, 12:38 UTC

Problems with script Editor

Post by *Erich »

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.
User avatar
Leif
Senior Member
Senior Member
Posts: 328
Joined: 2003-02-05, 15:44 UTC
Location: Umeå, Sweden

Post by *Leif »

Coco wrote:Did you tried CTRL+F12?
What is the difference between that and Num++? More than different wording in title bar.
Erich
Junior Member
Junior Member
Posts: 16
Joined: 2004-03-02, 12:38 UTC

Post by *Erich »

After CTRL+F12 the box appears where I have to chose my defined filter. But I want to create a pull down menu, where I can choose my filters directly.

Num++? I don't know!
IGL
Member
Member
Posts: 179
Joined: 2004-02-26, 10:47 UTC
Location: Poland

Difference between Ctrl+F12 & Num+ (Gray+)

Post by *IGL »

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.
:-)
Erich
Junior Member
Junior Member
Posts: 16
Joined: 2004-03-02, 12:38 UTC

Simple solution

Post by *Erich »

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.
Post Reply