CAFE / Coffee custom configs

Discuss anything related to portable freeware here.

Moderators: usdcs, Andrew Lee, webfork

Message
Author
User avatar
guinness
Posts: 4118
Joined: Mon Aug 27, 2007 2:00 am
Contact:

Re: CAFE custom configs

#46 Post by guinness » Thu Feb 09, 2012 4:34 am

Thanks lautrepay. Did you use some of my code to extract? :mrgreen:
Added 179 Applications: Portable

User avatar
guinness
Posts: 4118
Joined: Mon Aug 27, 2007 2:00 am
Contact:

Re: CAFE custom configs

#47 Post by guinness » Thu Feb 09, 2012 4:36 am

I just did a comparison with all the previous extensions against the LibreOffice extensions and found .doc to be present in Notepad2, so I've removed this from the Notepad2 entry and here are the unique results.

LibreOffice Extensions (unique):

Code: Select all

123=LibreOffice.exe
602=LibreOffice.exe
csv=LibreOffice.exe
dbf=LibreOffice.exe
dif=LibreOffice.exe
doc=LibreOffice.exe
docm=LibreOffice.exe
docx=LibreOffice.exe
dot=LibreOffice.exe
dotm=LibreOffice.exe
dotx=LibreOffice.exe
fodg=LibreOffice.exe
fodp=LibreOffice.exe
fods=LibreOffice.exe
fodt=LibreOffice.exe
hwp=LibreOffice.exe
jfif=LibreOffice.exe
jif=LibreOffice.exe
jpe=LibreOffice.exe
lwp=LibreOffice.exe
met=LibreOffice.exe
mml=LibreOffice.exe
odb=LibreOffice.exe
odf=LibreOffice.exe
odg=LibreOffice.exe
odm=LibreOffice.exe
odp=LibreOffice.exe
ods=LibreOffice.exe
odt=LibreOffice.exe
otg=LibreOffice.exe
oth=LibreOffice.exe
otp=LibreOffice.exe
ots=LibreOffice.exe
ott=LibreOffice.exe
pct=LibreOffice.exe
pdb=LibreOffice.exe
pot=LibreOffice.exe
potm=LibreOffice.exe
potx=LibreOffice.exe
pps=LibreOffice.exe
ppsx=LibreOffice.exe
ppt=LibreOffice.exe
pptm=LibreOffice.exe
pptx=LibreOffice.exe
psw=LibreOffice.exe
pxl=LibreOffice.exe
rtf=LibreOffice.exe
sda=LibreOffice.exe
sdc=LibreOffice.exe
sdd=LibreOffice.exe
sdw=LibreOffice.exe
sgf=LibreOffice.exe
sgl=LibreOffice.exe
sgv=LibreOffice.exe
slk=LibreOffice.exe
smf=LibreOffice.exe
stc=LibreOffice.exe
std=LibreOffice.exe
sti=LibreOffice.exe
stw=LibreOffice.exe
svm=LibreOffice.exe
sxc=LibreOffice.exe
sxd=LibreOffice.exe
sxg=LibreOffice.exe
sxi=LibreOffice.exe
sxm=LibreOffice.exe
sxw=LibreOffice.exe
uof=LibreOffice.exe
uop=LibreOffice.exe
uos=LibreOffice.exe
uot=LibreOffice.exe
vor=LibreOffice.exe
wb2=LibreOffice.exe
wk1=LibreOffice.exe
wks=LibreOffice.exe
wpd=LibreOffice.exe
wpg=LibreOffice.exe
wps=LibreOffice.exe
xlc=LibreOffice.exe
xlk=LibreOffice.exe
xlm=LibreOffice.exe
xls=LibreOffice.exe
xlsb=LibreOffice.exe
xlsm=LibreOffice.exe
xlsx=LibreOffice.exe
xlt=LibreOffice.exe
xltm=LibreOffice.exe
xltx=LibreOffice.exe
xlw=LibreOffice.exe
Last edited by guinness on Thu Feb 09, 2012 7:28 am, edited 1 time in total.
Added 179 Applications: Portable

User avatar
guinness
Posts: 4118
Joined: Mon Aug 27, 2007 2:00 am
Contact:

Re: CAFE custom configs

#48 Post by guinness » Thu Feb 09, 2012 4:47 am

KeePass Extensions:

Code: Select all

kdb=KeePass.exe
Added 179 Applications: Portable

lautrepay
Posts: 700
Joined: Sat Mar 26, 2011 2:31 am

Re: CAFE custom configs

#49 Post by lautrepay » Thu Feb 09, 2012 4:49 am

guinness wrote:Thanks lautrepay. Did you use some of my code to extract? :mrgreen:
Oh, no, my knowledge isn't enough to use your code. I used GetWindowText and TextFileOperations.
But I'll try, I need some time to study it.

User avatar
guinness
Posts: 4118
Joined: Mon Aug 27, 2007 2:00 am
Contact:

Re: CAFE custom configs

#50 Post by guinness » Thu Feb 09, 2012 4:53 am

lautrepay wrote:
guinness wrote:Thanks lautrepay. Did you use some of my code to extract? :mrgreen:
Oh, no, my knowledge isn't enough to use your code. I used GetWindowText and TextFileOperations.
But I'll try, I need some time to study it.
No problem, so long as the results are the same that's all that matter. To be honest I didn't put comments in the code because I didn't want to waste time on the AutoIt code, for those who know AutoIt should understand (it's level 1 coding!)
Added 179 Applications: Portable

lautrepay
Posts: 700
Joined: Sat Mar 26, 2011 2:31 am

Re: CAFE custom configs

#51 Post by lautrepay » Thu Feb 09, 2012 5:25 am

guinness wrote:No problem, so long as the results are the same that's all that matter. To be honest I didn't put comments in the code because I didn't want to waste time on the AutoIt code, for those who know AutoIt should understand (it's level 1 coding!)
My actual level is 0.1. As joby_toss said, "I'd like to think it's because I'm too busy, but it might be because I'm too lazy" :mrgreen:

XMPlay (Audio Player)

Without plugins

Audio formats

Code: Select all

mo3=XMPlay.exe
it=XMPlay.exe
xm=XMPlay.exe
s3m=XMPlay.exe
mtm=XMPlay.exe
mod=XMPlay.exe
umx=XMPlay.exe
ogg=XMPlay.exe
mp3=XMPlay.exe
mp2=XMPlay.exe
mp1=XMPlay.exe
wav=XMPlay.exe
wma=XMPlay.exe
cda=XMPlay.exe
Playlist formats

Code: Select all

pls=XMPlay.exe
m3u=XMPlay.exe
asx=XMPlay.exe
wax=XMPlay.exe
With plugins

Audio formats

Code: Select all

ogg=XMPlay.exe
mp3=XMPlay.exe
mp2=XMPlay.exe
mp1=XMPlay.exe
wma=XMPlay.exe
wav=XMPlay.exe
cda=XMPlay.exe
mo3=XMPlay.exe
it=XMPlay.exe
xm=XMPlay.exe
s3m=XMPlay.exe
mtm=XMPlay.exe
mod=XMPlay.exe
umx=XMPlay.exe
ac3=XMPlay.exe
aac=XMPlay.exe
mp4=XMPlay.exe
m4a=XMPlay.exe
m4b=XMPlay.exe
flac=XMPlay.exe
oga=XMPlay.exe
midi=XMPlay.exe
mid=XMPlay.exe
rmi=XMPlay.exe
kar=XMPlay.exe
mus=XMPlay.exe
xmi=XMPlay.exe
mpc=XMPlay.exe
mp+=XMPlay.exe
mpp=XMPlay.exe
wv=XMPlay.exe
wma=XMPlay.exe
mdz=XMPlay.exe
s3z=XMPlay.exe
xmz=XMPlay.exe
itz=XMPlay.exe
Archivers formats:

Code: Select all

rar=XMPlay.exe
zip=XMPlay.exe
7z=XMPlay.exe
Last edited by lautrepay on Thu Feb 09, 2012 9:10 pm, edited 1 time in total.

User avatar
guinness
Posts: 4118
Joined: Mon Aug 27, 2007 2:00 am
Contact:

Re: CAFE custom configs

#52 Post by guinness » Thu Feb 09, 2012 5:29 am

lautrepay wrote:My actual level is 0.1. As joby_toss said, "I'd like to think it's because I'm too busy, but it might be because I'm too lazy" :mrgreen:
Well you certainly aren't doing a good job of being lazy if you're helping me. Thanks for XMPlay supported extensions.
Added 179 Applications: Portable

User avatar
guinness
Posts: 4118
Joined: Mon Aug 27, 2007 2:00 am
Contact:

Re: CAFE custom configs

#53 Post by guinness » Thu Feb 09, 2012 5:32 am

If you're using AutoIt Portable then you can use SciTE instead of Notepad2.

AutoIt Extensions:

Code: Select all

au3=AutoItPortable\AutoIt.exe
Added 179 Applications: Portable

lautrepay
Posts: 700
Joined: Sat Mar 26, 2011 2:31 am

Re: CAFE custom configs

#54 Post by lautrepay » Thu Feb 09, 2012 6:13 am

XnView (basically images files with a few other extensions to filter, e.g. .exe, .pdf, etc.)

Code: Select all

3fr=XnView.exe
abr=XnView.exe
ai=XnView.exe
ani=XnView.exe
apx=XnView.exe
avi=XnView.exe
avw=XnView.exe
bay=XnView.exe
blp=XnView.exe
bmf=XnView.exe
bmp=XnView.exe
bmp=XnView.exe
cal=XnView.exe
cam=XnView.exe
cgm=XnView.exe
cin=XnView.exe
clo=XnView.exe
clp=XnView.exe
cmt=XnView.exe
cr2=XnView.exe
crw=XnView.exe
cs1=XnView.exe
cur=XnView.exe
dcm=XnView.exe
dcr=XnView.exe
dcx=XnView.exe
dds=XnView.exe
dib=XnView.exe
dis=XnView.exe
dng=XnView.exe
dpx=XnView.exe
dwg=XnView.exe
dxf=XnView.exe
ei=XnView.exe
emf=XnView.exe
emz=XnView.exe
epi=XnView.exe
eps=XnView.exe
erf=XnView.exe
eri=XnView.exe
exe=XnView.exe
fff=XnView.exe
fif=XnView.exe
fli=XnView.exe
fpx=XnView.exe
fx3=XnView.exe
fxs=XnView.exe
g3n=XnView.exe
gbr=XnView.exe
gif=XnView.exe
hdr=XnView.exe
hp=XnView.exe
icl=XnView.exe
icns=XnView.exe
ico=XnView.exe
ico=XnView.exe
icon=XnView.exe
iff=XnView.exe
img=XnView.exe
img=XnView.exe
img=XnView.exe
ipl=XnView.exe
ipl=XnView.exe
itg=XnView.exe
iwc=XnView.exe
j6i=XnView.exe
jb2=XnView.exe
jbf=XnView.exe
jbg=XnView.exe
jbr=XnView.exe
jif=XnView.exe
jls=XnView.exe
jng=XnView.exe
jp2=XnView.exe
jp2=XnView.exe
jpc=XnView.exe
jpc=XnView.exe
jpg=XnView.exe
jpg=XnView.exe
jpm=XnView.exe
jxr=XnView.exe
k25=XnView.exe
kdc=XnView.exe
kdc=XnView.exe
kqp=XnView.exe
kro=XnView.exe
lbm=XnView.exe
ldf=XnView.exe
lff=XnView.exe
lsm=XnView.exe
lwf=XnView.exe
max=XnView.exe
mbm=XnView.exe
mef=XnView.exe
mic=XnView.exe
mif=XnView.exe
mix=XnView.exe
mng=XnView.exe
mng=XnView.exe
mos=XnView.exe
mov=XnView.exe
mpg=XnView.exe
mpo=XnView.exe
mrc=XnView.exe
mrw=XnView.exe
msk=XnView.exe
mtv=XnView.exe
nef=XnView.exe
nrw=XnView.exe
oil=XnView.exe
ols=XnView.exe
orf=XnView.exe
p2=XnView.exe
p7=XnView.exe
pat=XnView.exe
pax=XnView.exe
pbm=XnView.exe
pcd=XnView.exe
pcx=XnView.exe
pdb=XnView.exe
pdf=XnView.exe
pdx=XnView.exe
pef=XnView.exe
pfi=XnView.exe
pfm=XnView.exe
pfr=XnView.exe
pgm=XnView.exe
pic=XnView.exe
pix=XnView.exe
pld=XnView.exe
pmp=XnView.exe
png=XnView.exe
pnm=XnView.exe
ppm=XnView.exe
prc=XnView.exe
ps=XnView.exe
ps=XnView.exe
psd=XnView.exe
psp=XnView.exe
pspbrush=XnView.exe
pspmask=XnView.exe
pwc=XnView.exe
pwp=XnView.exe
pxb=XnView.exe
pxs=XnView.exe
qrt=XnView.exe
qtif=XnView.exe
raf=XnView.exe
ras=XnView.exe
raw=XnView.exe
rawraw=XnView.exe
rdc=XnView.exe
rgb=XnView.exe
rla=XnView.exe
rle=XnView.exe
rsb=XnView.exe
rsrc=XnView.exe
rw2=XnView.exe
rwl=XnView.exe
rwz=XnView.exe
sct=XnView.exe
seq=XnView.exe
sff=XnView.exe
sfw=XnView.exe
sid=XnView.exe
sj1=XnView.exe
sr2=XnView.exe
srf=XnView.exe
srf=XnView.exe
srw=XnView.exe
svg=XnView.exe
syn=XnView.exe
tdim=XnView.exe
tex=XnView.exe
tga=XnView.exe
tif=XnView.exe
tim=XnView.exe
tm2=XnView.exe
tub=XnView.exe
txc=XnView.exe
vpb=XnView.exe
vst=XnView.exe
vtf=XnView.exe
wbmp=XnView.exe
wdp=XnView.exe
webp=XnView.exe
wic=XnView.exe
wlm=XnView.exe
wmf=XnView.exe
wmz=XnView.exe
wsq=XnView.exe
x3f=XnView.exe
xbm=XnView.exe
xcf=XnView.exe
xpm=XnView.exe
xwd=XnView.exe
ypc=XnView.exe
yuv=XnView.exe

User avatar
guinness
Posts: 4118
Joined: Mon Aug 27, 2007 2:00 am
Contact:

Re: CAFE custom configs

#55 Post by guinness » Thu Feb 09, 2012 7:18 am

Some of these are already included in Notepad2, but for those who don't code it html then it's more useful to associate Opera with html/htm extensions.

Opera Extensions:

Code: Select all

htm=Opera.exe
html=Opera.exe
mht=Opera.exe
mhtml=Opera.exe
oex=Opera.exe
svg=Opera.exe
wgt=Opera.exe
xht=Opera.exe
xhtm=Opera.exe
xhtml=Opera.exe
xml=Opera.exe
Added 179 Applications: Portable

User avatar
joby_toss
Posts: 2902
Joined: Sat Feb 09, 2008 9:57 am
Location: Romania
Contact:

Re: CAFE custom configs

#56 Post by joby_toss » Thu Feb 09, 2012 7:25 am

Quick question: what is LibraOffice?

User avatar
guinness
Posts: 4118
Joined: Mon Aug 27, 2007 2:00 am
Contact:

Re: CAFE custom configs

#57 Post by guinness » Thu Feb 09, 2012 7:27 am

Whoops! Should be LibreOffice. Fixed.
Added 179 Applications: Portable

User avatar
guinness
Posts: 4118
Joined: Mon Aug 27, 2007 2:00 am
Contact:

Re: CAFE custom configs

#58 Post by guinness » Thu Feb 09, 2012 7:48 am

The iso filetype is present in 7-Zip and img is in IrfanView, so just be aware.

ImgBurn Extensions:

Code: Select all

ccd=ImgBurn.exe
bin=ImgBurn.exe
cdi=ImgBurn.exe
cue=ImgBurn.exe
gi=ImgBurn.exe
img=ImgBurn.exe
iso=ImgBurn.exe
mds=ImgBurn.exe
nrg=ImgBurn.exe
pdi=ImgBurn.exe
Added 179 Applications: Portable

User avatar
guinness
Posts: 4118
Joined: Mon Aug 27, 2007 2:00 am
Contact:

Re: CAFE custom configs

#59 Post by guinness » Thu Feb 09, 2012 8:08 am

I will give it couple of days (in case more are submitted) and then I'll take lautrepay's additions (plus others) and compare to their respective counterparts to see what are the differences and similarities i.e. VLC can play but XMPlay can't etc. This should then give me an overall idea of what are the popular extensions in that particular category.

The idea is to create a generic list that the user can then modify to their own tastes by simply changing the application as it's been shown today that some prefer VLC or XMPlay or even IrfanView to play audio/video. So by having a list where we know the extensions should work across the board, is going to get people interested in using eXpresso/CAFE/CAFEMod without the daunting task of working out what file extensions to use, well I hope anyway! :D

The current count I have for my personal additions is totalling at 451 unique file extensions.
Added 179 Applications: Portable

User avatar
guinness
Posts: 4118
Joined: Mon Aug 27, 2007 2:00 am
Contact:

Re: CAFE custom configs

#60 Post by guinness » Thu Feb 09, 2012 2:46 pm

I was interested in the miscellaneous extensions that I hadn't found yet, so I created the function below to find all the files on the Portable drive, extract the extension and from there check if they were in the eXpresso INI file. I found an additional 274 extensions but not all were common.

The output is saved to a file called Config.txt in the same location as the script and looks something like this >> (because having lang= didn't tell much about the extension, so visually the full path gave me a better idea of whether or not it was useful.)
lang=F:\Apps\CDex\Bin\CDex\lang\english.cdex.lang

Code: Select all

#include <Constants.au3>
#include <WinAPIEx.au3> ; By Yashied >> http://www.autoitscript.com/forum/topic/98712-winapiex-udf/

_Main()

Func _Main()
	; eXpresso/CAFE/CAFEMod ini file.
	Local $sFilePath = "F:\Apps\eXpresso\Data\eXpresso.ini", $sReturn = "", $sUnique = "", $aSplit
	Local $aSearch = _FileSearch("F:\") ; Portable drive.

	For $i = 1 To $aSearch[0]
		$sExtension = StringLower(StringTrimLeft(_WinAPI_PathFindExtension($aSearch[$i]), 1))
		If Not StringInStr($sUnique, $sExtension & "?") Then
			$sUnique &= $sExtension & "?"
			$sReturn &= $sExtension & "|" & $aSearch[$i] & "?"
		EndIf
	Next

	$aSearch = StringSplit(StringTrimRight($sReturn, 1), "?")
	$sReturn = ""
	For $i = 1 To $aSearch[0]
		$aSplit = StringSplit($aSearch[$i], "|")
		If IniRead($sFilePath, "associations", $aSplit[1], "") = "" Then
			$sReturn &= $aSplit[1] & "=" & $aSplit[2] & @CRLF
			ConsoleWrite($aSplit[1] & "=" & $aSplit[2] & @CRLF)
		EndIf
	Next
	Return _SetFile($sReturn, @ScriptDir & "\Config.txt", 1)
EndFunc   ;==>_Main

Func _FileSearch($sFilePath, $sFilter = "*.*")
	Local $aError[2] = [1, $sFilePath], $iPID, $sOutput = ""

	If _WinAPI_PathIsDirectory($sFilePath) = 0 Then
		Return $aError
	EndIf

	$sFilePath = _WinAPI_PathAddBackslash($sFilePath)
	$iPID = Run(@ComSpec & ' /C DIR "' & $sFilePath & $sFilter & '" /B /A-D /S', $sFilePath, @SW_HIDE, $STDOUT_CHILD)
	While 1
		$sOutput &= StdoutRead($iPID)
		If @error Then
			ExitLoop
		EndIf
	WEnd
	Return StringSplit(StringTrimRight(StringStripCR($sOutput), StringLen(@LF)), @LF)
EndFunc   ;==>_FileSearch

Func _SetFile($sString, $sFile, $iOverwrite = 0)
	Local $hFileOpen
	$hFileOpen = FileOpen($sFile, $iOverwrite + 1)
	FileWrite($hFileOpen, $sString)
	FileClose($hFileOpen)
	If @error Then
		Return SetError(1, 0, $sString)
	EndIf
	Return $sString
EndFunc   ;==>_SetFile
Added 179 Applications: Portable

Post Reply