associate in lupo for all programs?
3 posters
Page 1 of 1
associate in lupo for all programs?
associate in lupo for all programs?
is association exist in lupo ? to make all files that programs in lupo can run auto run when i click a file ..
not per program..but set by lupo it self.
is association exist in lupo ? to make all files that programs in lupo can run auto run when i click a file ..
not per program..but set by lupo it self.
erman- Number of posts : 1
Location : palastine
Registration date : 2009-09-03
Re: associate in lupo for all programs?
It is not possible, but you can easily make a portable association of all your files using Coffee (available in Extra section of both Full and Lite versions):
http://www.lupopensuite.com/db/coffee.htm
It is simple and very powerful: when Coffee is active, instead of use default apps to open files, are used portable software of your choice. You only need to set a program each time a new format is opened.
Try it, I think could be what you are looking for.
http://www.lupopensuite.com/db/coffee.htm
It is simple and very powerful: when Coffee is active, instead of use default apps to open files, are used portable software of your choice. You only need to set a program each time a new format is opened.
Try it, I think could be what you are looking for.
Re: associate in lupo for all programs?
The problem with cofee (expresso) is that it has no rightclick menu.
Also there is only the default action and a alternative action.
If you want fileassociations in lupo pensuite i can help you with that.
i use this FileExtentions.xml:
Also there is only the default action and a alternative action.
If you want fileassociations in lupo pensuite i can help you with that.
i use this FileExtentions.xml:
- Code:
<FileExtentions>
<FileType><Type></Type><Desc>Data with no extention</Desc><Icon></Icon>
<DefaultAction>Notepad++</DefaultAction>
<Action><Label>Notepad++</Label><ExePath>"%Drive%\Apps\notepad++\notepad++.exe" "%1"</ExePath><AIcon></AIcon><Shift></Shift></Action>
</FileType>
<FileType><Type>ogg</Type><Desc>OggVorbis Music File</Desc><Icon></Icon>
<DefaultAction>AIMP</DefaultAction>
<Action><Label>AIMP</Label><ExePath>"%Drive%\Apps\AIMP\AIMP3.exe" "%1"</ExePath><AIcon></AIcon><Shift></Shift></Action>
<Action><Label>MPC-HC</Label><ExePath>"%Drive%\Apps\MPC-HC\mpc-hc.exe" "%1"</ExePath><AIcon></AIcon><Shift></Shift></Action>
<Action><Label>VLC</Label><ExePath>"%Drive%\LiberKey\Apps\VLC\VLCLKL.exe" "%1"</ExePath><AIcon></AIcon><Shift></Shift></Action>
<Action><Label>XM-Play</Label><ExePath>"%Drive%\LiberKey\Apps\XMPlay\XMPlayLKL.exe" "%1"</ExePath><AIcon></AIcon><Shift></Shift></Action>
</FileType>
<FileType><Type>mp3</Type><Desc>Mp3 Music File</Desc><Icon></Icon>
<DefaultAction>AIMP</DefaultAction>
<Action><Label>AIMP</Label><ExePath>"%Drive%\Apps\AIMP\AIMP3.exe" "%1"</ExePath><AIcon></AIcon><Shift></Shift></Action>
<Action><Label>MPC-HC</Label><ExePath>"%Drive%\Apps\MPC-HC\mpc-hc.exe" "%1"</ExePath><AIcon></AIcon><Shift></Shift></Action>
<Action><Label>VLC</Label><ExePath>"%Drive%\LiberKey\Apps\VLC\VLCLKL.exe" "%1"</ExePath><AIcon></AIcon><Shift></Shift></Action>
<Action><Label>XM-Play</Label><ExePath>"%Drive%\LiberKey\Apps\XMPlay\XMPlayLKL.exe" "%1"</ExePath><AIcon></AIcon><Shift></Shift></Action>
</FileType>
<FileType><Type>wma</Type><Desc>Windows Media Audio</Desc><Icon></Icon>
<DefaultAction>AIMP</DefaultAction>
<Action><Label>AIMP</Label><ExePath>"%Drive%\Apps\AIMP\AIMP3.exe" "%1"</ExePath><AIcon></AIcon><Shift></Shift></Action>
<Action><Label>MPC-HC</Label><ExePath>"%Drive%\Apps\MPC-HC\mpc-hc.exe" "%1"</ExePath><AIcon></AIcon><Shift></Shift></Action>
<Action><Label>VLC</Label><ExePath>"%Drive%\LiberKey\Apps\VLC\VLCLKL.exe" "%1"</ExePath><AIcon></AIcon><Shift></Shift></Action>
<Action><Label>XM-Play</Label><ExePath>"%Drive%\LiberKey\Apps\XMPlay\XMPlayLKL.exe" "%1"</ExePath><AIcon></AIcon><Shift></Shift></Action>
</FileType>
<FileType><Type>m3u</Type><Desc>M3U Playlist</Desc><Icon></Icon>
<DefaultAction>AIMP</DefaultAction>
<Action><Label>AIMP</Label><ExePath>"%Drive%\Apps\AIMP\AIMP3.exe" "%1"</ExePath><AIcon></AIcon><Shift></Shift></Action>
<Action><Label>MPC-HC</Label><ExePath>"%Drive%\Apps\MPC-HC\mpc-hc.exe" "%1"</ExePath><AIcon></AIcon><Shift></Shift></Action>
<Action><Label>VLC</Label><ExePath>"%Drive%\LiberKey\Apps\VLC\VLCLKL.exe" "%1"</ExePath><AIcon></AIcon><Shift></Shift></Action>
<Action><Label>XM-Play</Label><ExePath>"%Drive%\LiberKey\Apps\XMPlay\XMPlayLKL.exe" "%1"</ExePath><AIcon></AIcon><Shift></Shift></Action>
</FileType>
<FileType><Type>ini</Type><Desc>M3U Playlist</Desc><Icon></Icon>
<DefaultAction>Notepad++</DefaultAction>
<Action><Label>Notepad++</Label><ExePath>"%Drive%\Apps\notepad++\notepad++.exe" "%1"</ExePath><AIcon></AIcon><Shift></Shift></Action>
</FileType>
<FileType><Type>inf</Type><Desc>M3U Playlist</Desc><Icon></Icon>
<DefaultAction>Notepad++</DefaultAction>
<Action><Label>Notepad++</Label><ExePath>"%Drive%\Apps\notepad++\notepad++.exe" "%1"</ExePath><AIcon></AIcon><Shift></Shift></Action>
</FileType>
<FileType><Type>txt</Type><Desc>M3U Playlist</Desc><Icon></Icon>
<DefaultAction>Notepad++</DefaultAction>
<Action><Label>Notepad++</Label><ExePath>"%Drive%\Apps\notepad++\notepad++.exe" "%1"</ExePath><AIcon></AIcon><Shift></Shift></Action>
</FileType>
<FileType><Type>xml</Type><Desc>M3U Playlist</Desc><Icon></Icon>
<DefaultAction>Notepad++</DefaultAction>
<Action><Label>Notepad++</Label><ExePath>"%Drive%\Apps\notepad++\notepad++.exe" "%1"</ExePath><AIcon></AIcon><Shift></Shift></Action>
</FileType>
<FileType><Type>ahk</Type><Desc>Autohotkey Script</Desc><Icon></Icon>
<DefaultAction>Autohotkey Run</DefaultAction><Drop>1</Drop>
<Action><Label>Notepad++</Label><ExePath>"%Drive%\Apps\notepad++\notepad++.exe" "%1"</ExePath><AIcon></AIcon><Shift></Shift></Action>
<Action><Label>Autohotkey Run</Label><ExePath>"%Drive%\Apps\Autohotkey\AutoHotkey.exe" "%1"</ExePath><AIcon></AIcon><Shift></Shift></Action>
<Action><Label>Autohotkey Compile</Label><ExePath>"%Drive%\Apps\Autohotkey\Compiler\Ahk2Exe.exe" /in "%1" /bin "%Drive%\Apps\Autohotkey\Compiler\Unicode 32-bit.bin"</ExePath><AIcon></AIcon><Shift></Shift></Action>
<Action><Label>Autohotkey Comp+ico</Label><ExePath>"%Drive%\Apps\Autohotkey\Compiler\Ahk2Exe.exe" /in "%1" /icon "%1.ico" /bin "%Drive%\Apps\Autohotkey\Compiler\Unicode 32-bit.bin"</ExePath><AIcon></AIcon><Shift></Shift></Action>
</FileType>
<FileType><Type>ePub</Type><Desc>Electronic Publication</Desc><Icon></Icon>
<DefaultAction>SumatraPDF</DefaultAction><Drop></Drop>
<Action><Label>SumatraPDF</Label><ExePath>"%Drive%\Apps\SumatraPDF\SumatraPDF.exe" "%1"</ExePath><AIcon></AIcon><Shift></Shift></Action>
</FileType>
<FileType><Type>pdf</Type><Desc>PostScript Document</Desc><Icon></Icon>
<DefaultAction>SumatraPDF</DefaultAction><Drop></Drop>
<Action><Label>SumatraPDF</Label><ExePath>"%Drive%\Apps\SumatraPDF\SumatraPDF.exe" "%1"</ExePath><AIcon></AIcon><Shift></Shift></Action>
</FileType>
<FileType><Type>kml</Type><Desc>GoogleEarth Document</Desc><Icon></Icon>
<DefaultAction>GoogleEarth</DefaultAction><Drop></Drop>
<Action><Label>GoogleEarth</Label><ExePath>"%Drive%\Apps\Portable-GoogleEarth\GoogleEarthPortable.exe" "%1"</ExePath><AIcon></AIcon><Shift></Shift></Action>
</FileType>
<FileType><Type>kmz</Type><Desc>PostScript Document</Desc><Icon></Icon>
<DefaultAction>GoogleEarth</DefaultAction><Drop></Drop>
<Action><Label>GoogleEarth</Label><ExePath>"%Drive%\Apps\Portable-GoogleEarth\GoogleEarthPortable.exe" "%1"</ExePath><AIcon></AIcon><Shift></Shift></Action>
</FileType>
<FileType><Type>exe</Type><Desc>Executable</Desc><Icon></Icon>
<DefaultAction>ResourceHacker</DefaultAction><Drop></Drop>
<Action><Label>ResourceHacker</Label><ExePath>"%Drive%\Apps\ResHacker\ResHacker.exe" "%1"</ExePath><AIcon></AIcon><Shift></Shift></Action>
</FileType>
<FileType><Type>ico</Type><Desc>Executable</Desc><Icon></Icon>
<DefaultAction>IconCraft</DefaultAction><Drop></Drop>
<Action><Label>IconCraft</Label><ExePath>"%Drive%\Apps\IconCraft\iconcraft.exe" "%1"</ExePath><AIcon></AIcon><Shift></Shift></Action>
</FileType>
</FileExtentions>
- Code:
#SingleInstance Force ; [force|ignore|off]
#persistent
SplitPath,A_ScriptDir,,,,,Drive
Global Drive
OnExit ,OnExit
IfEqual,1,/Exit,Exitapp
RunWait, %WinDir%\Regedit.exe /e "%A_Temp%\Classes.reg" HKEY_CURRENT_USER\Software\Classes
RunWait, %WinDir%\Regedit.exe /e "%A_Temp%\FileExts.reg" HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts
FileRead, classes, %A_Temp%\Classes.reg
if !classes {
Msgbox,maybe you dont have rights to use regedit?`nClearly i can't backup like this!`nIm going to close now.
exitapp
}
FileRead, FileExts, %A_Temp%\FileExts.reg
FileReadLine, RegVer,%A_Temp%\Classes.reg,1
StringReplace, classes, classes,%RegVer%, %RegVer%`r`n`r`n[-HKEY_CURRENT_USER\Software\Classes]`r`n`r`n[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts]`r`n
StringReplace, FileExts, FileExts,%RegVer%
RegContent := classes "`r`n" FileExts
FileAppend , %RegContent%, %A_Temp%\HKCU.reg, UTF-16
XmlFile := A_ScriptDir "\FileExtentions.xml"
FileRead, XmlContent,%XmlFile%
StringReplace,XmlContent,XmlContent,`%Drive`%,%Drive%,1
FileExtentions:=StrX(XmlContent,"<FileExtentions>","</FileExtentions>")
F:=1 ; search offset
while FileType := StrX(FileExtentions,"<FileType>","</FileType>",0,F) {
Type := StrX(FileType,"<Type>","</Type>")
Desc := StrX(FileType,"<Desc>","</Desc>")
Icon := StrX(FileType,"<Icon>","</Icon>")
DefaultAction := StrX(FileType,"<DefaultAction>","</DefaultAction>")
Drop := StrX(FileType,"<Drop>","</Drop>")
; IfEqual,Type,,continue
IfEqual,Desc,,SetEnv,Desc,%Type% File
IfEqual,Icon,,IfExist,%A_ScriptDir%\FileType_Icons\%Type%.ico, SetEnv,Icon,%A_ScriptDir%\FileType_Icons\%Type%.ico
RegWrite,REG_SZ,HKCU,Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.%Type%,Progid,• %Type% ; Associate the extention to a registry key
RegWrite,REG_SZ,HKCU,Software\Classes\.%Type%,,• %Type% ; Associate the extention to a registry key
RegWrite,REG_SZ,HKCU,Software\Classes\• %Type%,,%Desc% ; the description for the file(needed for filenew to work)
if (Type ~= "i)exe|scr|ico|cur|ani|icl")
RegWrite,REG_SZ,HKCU,Software\Classes\• %Type%\DefaultIcon,,`%1 ; The icon for the File
else RegWrite,REG_SZ,HKCU,Software\Classes\• %Type%\DefaultIcon,,%Icon% ; The icon for the File
IfNotEqual,DefaultAction,,RegWrite,REG_SZ,HKCU,Software\Classes\• %Type%\Shell,,• %DefaultAction% ; Name of the Default Command on enter
if Drop
RegWrite,REG_SZ,HKCU,Software\Classes\• %Type%\shellex\DropHandler,,{86C86720-42A0-1069-A2E8-08002B30309D} ; Name of the Default Command on enter
A:=1
while Action := StrX(FileType,"<Action>","</Action>",0,A) {
Label := StrX(Action,"<Label>","</Label>")
ExePath := StrX(Action,"<ExePath>","</ExePath>")
Shift := StrX(Action,"<Shift>","</Shift>")
if !(AIcon := StrX(Action,"<AIcon>","</AIcon>"))
AIcon := StrX(ExePath,"""","""")
RegWrite,REG_SZ,HKCU,Software\Classes\• %Type%\Shell\• %Label%,,• %Label% ; The label for the Open Command
RegWrite,REG_SZ,HKCU,Software\Classes\• %Type%\Shell\• %Label%,Icon,%AIcon% ; Win 7: the icon for the Command
RegWrite,REG_SZ,HKCU,Software\Classes\• %Type%\Shell\• %Label%\Command,,%ExePath% ; The Open Command
if Shift
RegWrite,REG_SZ,HKCU,Software\Classes\• %Type%\Shell\• %Label%,Extended ; Show this Item only when pressing Shift
}
if (type="exe" || type="com") {
RegWrite,REG_SZ,HKCU,Software\Classes\• %Type%\Shell,,• Run ; this must be the default to not criple the system
RegWrite,REG_SZ,HKCU,Software\Classes\• %Type%\Shell\• Run\Command,,"`%1" `%* ; The Open Command
}
}
DllCall("Shell32\SHChangeNotify","UInt",(SHCNE_ASSOCCHANGED:=0x8000000),UInt,SHCNF_IDLIST:=0x0000,UInt,0,UInt,0) ; Tell the system that fileassociations have changed
Menu,Tray,Add,Reload
return
Reload: ;<
Reload
sleep,1000
MsgBox,The FileExtentions could not be reloaded.
return ;>
OnExit: ;<
RunWait, %WinDir%\Regedit.exe /S "%A_Temp%\HKCU.reg"
FileDelete, %A_Temp%\HKCU.reg
FileDelete, %A_Temp%\Classes.reg
FileDelete, %A_Temp%\FileExts.reg
DllCall("Shell32\SHChangeNotify","UInt",(SHCNE_ASSOCCHANGED:=0x8000000),UInt,SHCNF_IDLIST:=0x0000,UInt,0,UInt,0) ; Tell the system that fileassociations have changed
exitapp ;>
StrX( H,BS="",ES="",Tr=1,ByRef OS=1) { ;<
return,(SP := InStr(H,BS,0,OS)) && (L := InStr(H,ES,0,SP+StrLen(BS))) && (OS := L + StrLen(ES)) ? SubStr(H,SP := Tr ? SP + StrLen(BS) : SP ,(Tr ? L : L + StrLen(ES))-SP) : ""
} ;>
RefreshExplorer() { ;< vista - win7
Static HasRun,Code
If !HasRun { ;<
GroupAdd ExplorerWindows, ahk_class ExploreWClass
GroupAdd ExplorerWindows, ahk_class CabinetWClass
GroupAdd ExplorerWindows, ahk_class Progman
Code:= InStr("WIN_XP,WIN_2000", A_OSVERSION) ? 28931 : 41504
HasRun:= 1
} ;>
WinGet WindowList, List, ahk_Group ExplorerWindows
Loop %WindowList%
PostMessage 0x111, %Code%, , , % "ahk_id" WindowList%A_Index%
} ;>
emdk- Number of posts : 4
Location : belgium
Registration date : 2012-10-24
Similar topics
» A Few Programs
» Add Programs
» A few recommended programs
» when the luposuite end then close opening programs
» Lupo PenSuite IRC
» Add Programs
» A few recommended programs
» when the luposuite end then close opening programs
» Lupo PenSuite IRC
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|