Re: CAFE custom configs
Posted: Thu Feb 09, 2012 4:34 am
Thanks lautrepay. Did you use some of my code to extract?
TPFC Forums
https://www.portablefreeware.com/forums/
https://www.portablefreeware.com/forums/viewtopic.php?t=4915
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
Code: Select all
kdb=KeePass.exe
Oh, no, my knowledge isn't enough to use your code. I used GetWindowText and TextFileOperations.guinness wrote:Thanks lautrepay. Did you use some of my code to extract?
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!)lautrepay wrote:Oh, no, my knowledge isn't enough to use your code. I used GetWindowText and TextFileOperations.guinness wrote:Thanks lautrepay. Did you use some of my code to extract?
But I'll try, I need some time to study it.
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"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!)
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
Code: Select all
pls=XMPlay.exe
m3u=XMPlay.exe
asx=XMPlay.exe
wax=XMPlay.exe
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
Code: Select all
rar=XMPlay.exe
zip=XMPlay.exe
7z=XMPlay.exe
Well you certainly aren't doing a good job of being lazy if you're helping me. Thanks for XMPlay supported extensions.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"
Code: Select all
au3=AutoItPortable\AutoIt.exe
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
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
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
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