Page 1 of 2

Cafe - Handle files extensions association on the fly

Posted: Tue May 29, 2007 8:06 am
by XPect
I think this is the perfect companion for your applications.

Café handle the double click on files and redirect to your portable application according to your configuration. If you define that .jpg is associated to Faststone viewer for example, a double click on a jpg file from the windows explorer will automatically launch Faststone viewer rather than windows preview or paint.
You can also define an alternate application that will be called while you press the ALT key during the double click. As an example, you can associate Photofiltre as the second apps for the jpg extension.

Of course this application is portable and handle relatives path to your applications. The extensions associations are wrote in cafe.ini, nothing in registry.

Bad news, this is only in French for the moment. I can help to translate if needed.

This is included with the Framakey project (French): http://www.framakey.org/Portables/Index

CAFE Project page and download location (French): http://clef.usb.googlepages.com/cafe

By default the double click is only handled in Windows Explorer. To allow it on other apps you must add this in the config file:

Code: Select all

[configuration]
fenetresadditionnelles=ahk_class TfcForm, ahk_class TTntFormUltraExplorer.UnicodeClass
ahk_class TfcForm => Handle FreeCommander
TTntFormUltraExplorer.UnicodeClass => Handle UltraExplorer
The application is developped under AutoHotKeys, so the class are the one indicated by the Autoit spy windows application.

At last, Cafe can be stopped via command line : cafe.exe /stop
this is useful when you exit a launcher.

Enjoy

Posted: Fri Jun 01, 2007 11:36 am
by Teddybear1974NL
Hmm.. it is written in AutoHotKey scripting and made into an executable.

sadly at the moment it cost me too much time to make an English version:
- I don't know the scripting language (Just looked at it today. it is not difficult yet you have to get into it).
- English nor French is my first language, so translating from one to the other might get some weird translation errors.

Posted: Sat Jun 02, 2007 11:08 am
by Le Yann
Well, as I'm the person who wrote Café, i'm very pleased to see it's submission to this this site.
I'm also more than happy to tell you that an international version should be available very soon, as i've been working on it last week.

Posted: Sun Jun 03, 2007 10:37 pm
by songless
Lovely app, VERY recommended.
With the XPect's configuration line works great in UltraExplorer

Posted: Wed Jun 06, 2007 11:13 pm
by spacemonkey
Any idea of the e.t.a for the international version? Looking forward trying it :)

Posted: Sun Jun 10, 2007 4:38 am
by Hank7
I've wanted something like this since I first put Portable Firefox on my USB stick back in 2004... Thanks!

It would be nice if it supported command line parameters, e.g. I'd like to open avi files with the "/fullscreen" switch.

Looking forward to the international release :-)

Posted: Mon Jun 18, 2007 1:06 pm
by Le Yann
The international version of Café is now available from this page.
You'll have to choose the zip version and, once unzipped and running, select "en" in the "Choix du Langage" submenu inside "Préférences".
I hope this is clear as english is not my primary language.
Enjoy !

Posted: Mon Jun 18, 2007 1:09 pm
by Le Yann
Hank7 wrote:It would be nice if it supported command line parameters, e.g. I'd like to open avi files with the "/fullscreen" switch.
Command line parameters are on my todo list, but i can't tell you when they'll be available as i did not have the time to start working on it yet.

Posted: Mon Jun 18, 2007 10:52 pm
by spacemonkey
Not sure why but I carnt extract cafe.exe out of the zip... the language file extracts ok... any ideas?

Anyone else having problems or is it just me?

AVG also reports it as a trojan!?! :?

Posted: Tue Jun 19, 2007 12:52 am
by Le Yann
spacemonkey wrote:Not sure why but I carnt extract cafe.exe out of the zip... the language file extracts ok... any ideas?
Anyone else having problems or is it just me?
I just tried to extract a freshly downloaded copy, without problem. I think you should try downloading it again. And if this doesn't work, try downloading the exe version, and put it in the same folder as the LNG folder.
spacemonkey wrote:AVG also reports it as a trojan!?! :?
It's a false positive, that is triggered by the fact that Café was compiled with AutoIt (as are all AutoHotKey scripts).
Avast doesn't find anything in Café.

Posted: Tue Jun 19, 2007 1:46 pm
by brewabel
Was beating my head against the wall with this and trying to get the file associations to work.

Realized that with UltraExplorer, the WinKey + Click does not work. You need to have the file opened in a Windows Explorer window for that to work.

Even tried to do the manual associations, but it would not take till I used explorer and the Win+Click feature.

Not sure if it's the same with other explorer replacements or not. After that, I loved the functions of this.

Posted: Tue Jun 19, 2007 11:45 pm
by XPect
brewabel,

Sound stange, Win + click work fine for me on UltraExplorer to get an extra association.
Did you add the following line in the config file to handle UltraExplorer in the right way ?

Code: Select all

[configuration]
fenetresadditionnelles=ahk_class TTntFormUltraExplorer.UnicodeClass

Posted: Wed Jun 20, 2007 8:10 am
by brewabel
XPect wrote:brewabel,

Sound stange, Win + click work fine for me on UltraExplorer to get an extra association.
Did you add the following line in the config file to handle UltraExplorer in the right way ?

Code: Select all

[configuration]
fenetresadditionnelles=ahk_class TTntFormUltraExplorer.UnicodeClass
XPect, I did not add that. Where would I put that in at?

Posted: Wed Jun 20, 2007 8:42 am
by XPect
Open the configuration file cafe.ini (direct or right click on the tray icon then prefs) and just add those 2 lines at the end of the file.

Regards

Posted: Thu Jun 21, 2007 1:53 am
by tm
Thanks for all the tips.

But, what do you add if you are using Windows explorer, or even for a traditionalist (I hope that's a word) like me who is using ACDSee32 as an alternative explorer.