Jump to content

Dialog File Filter Collection


KaFu
 Share

Recommended Posts

HiHo Forum,

I'm currently implementing a custom file extension filter into SMF's report, and I've noticed that this is a wheel that get's re-invented all the time. So I made this post as a reference and for further discussion. Here's what I've got up to now. Do you see any mismatches / missing groups, or do you have a better wording for the group names etc.? The list is far from perfect and still needs lot's of optimization. My goal is to establish a "de facto" standard for File Filter groups and sub-groups, so feel free to add, change and criticize :)...
 

Audio (*.flac;*.m3u;*.m4a;*.mid;*.mp3;*.mpa;*.ra;*.wav;*.wma)
Compressed (*.7z;*.ace;*.arj;*.cab;*.cbr;*.jar;*.rar;*.tar.gz;*.zip)
Disk Image (*.bin;*.ccd;*.cue;*.img;*.iso;*.mdf;*.mds;*.nrg)
Document (*.doc;*.docm;*.docx;*.dotm;*.dotx;*.pdf;*.rtf)
Executable (*.bat;*.cmd;*.com;*.cpl;*.dll;*.exe)
Image (*.bmp;*.gif;*.ico;*.jpeg;*.jpg;*.png;*.psd;*.tga;*.tif)
Office (*.accdb;*.accde;*.accdr;*.accdt;*.csv;*.dbf;*.doc;*.docm;*.docx;*.dotm;*.dotx;*.mdb;*.mde;*.odg;*.odp;*.ods;*.odt;*.otp;*.ots;*.ott;*.pot;*.potm;*.potx;*.ppam;*.pps;*.ppsm;*.ppsx;*.ppt;*.pptm;*.pptx;*.rtf;*.sldm;*.sldx;*.thmx;*.txt;*.xlam;*.xll;*.xls;*.xlsb;*.xlsm;*.xlsx;*.xltm;*.xltx)
Text (*.au3;*.bak;*.bat;*.c;*.cfg;*.cgi;*.conf;*.cpp;*.css;*.h;*.htm;*.html;*.inf;*.ini;*.java;*.js;*.log;*.lst;*.nfo;*.php;*.php3;*.pl;*.py;*.reg;*.txt;*.xml)
Video (*.3g2;*.3gp;*.asf;*.asx;*.avi;*.divx;*.flv;*.m4v;*.mkv;*.mov;*.mp4;*.mpeg;*.mpg;*.ogv;*.rm;*.swf;*.ts;*.vob;*.wmv)
Web (*.asp;*.htm;*.html;*.js;*.mht;*.php;*.php3;*.pl;*.py;*.xml)

_FileFilter_Extensions_List_v01.zip

Regards

Edited by KaFu
Link to comment
Share on other sites

Check out the Associations.ini. It lists the most common filetypes

UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

Link to comment
Share on other sites

ContMenuFiles

Text=txt|log|ion|cfg|inc|lst|shl|sif|ini|php|css|inf
Music=mp3|wav|wma|ogg|m3u|pls|ac3
Video=avi|mpg|mpeg|mp4|asx|asf|wmv|3gp|mov|mkv|ifo|vob|flv|bik|swf
Picture=bmp|gif|jpg|png|tga|tif|psd|xpm|dds
Resource=dll|res|cpl|ax|exe|apl
Script=au3|bat|cmd|reg|vbs|js
Image=iso|mdf|img|mds|md0|md1|md2|md3|md4|ima
Web=htm|html|mht|chm|xml
Docum=doc|docx|rtf|xls|xlsx|pps|ppt|pdf
Archive=rar|zip|7z|cab|gz|ace|arj|bzip2|bz|bz2|cpio|deb|dmg|gzip|hfs|jar|lha|lzh|lzma|rpm|split|swm|tar|taz|tbz|tbz2|tgz|tpz|uu|uue|xxe|z|wim|xar
Archive1=bootskin|ip|ksf|r00|r01|r02|r03|r04|r05|r06|r07|r08|r09|r10|r11|r12|r13|r14|r15|r16|r17|r18|r19|r20|r21|r22|r23|r24|r25|r26|r27|r28|r29
Icon=ico|cur|ani
Midi=kar|mid|rmi|mmf
Binary=bin|bif|bim
Other=nfo|diz|gho|ghs|torrent|fb2|djvu|md5|s0m

 

#include <Array.au3>
$file_type = FileRead(@ScriptDir&'\file_type.au3')
$List = FileRead(@ScriptDir&'\List.ini')

$aList = StringSplit($List, '|')
_ArrayDisplay($aList, 'Array')

$Log = ''
For $i = 1 To $aList[0]
    If Not StringInStr($file_type, '*.' & $aList[$i]) Then $Log &= $aList[$i] &@CRLF
Next

$hFile = FileOpen(@ScriptDir & '\file.txt', 2)
FileWrite($hFile, $Log)
FileClose($hFile)

Output shows that you do not have these

 

ion    shl    sif    m3u    pls    ifo    bik    swf    dll    ocx    res    cpl    ax    apl    mdf    img    mds    md0    md1    md2    md3    md4    ima    mht    chm    rtf    rar    zip    7z    cab    gz    ace    arj    bzip2    bz    bz2    cpio    deb    dmg    gzip    hfs    jar    lha    lzh    lzma    rpm    split    swm    tar    taz    tbz    tbz2    tgz    tpz    uu    uue    xxe    z    wim    xar    bootskin    ksf    kar    mmf    bif    bim    gho    ghs    torrent    fb2    djvu    md5    s0m

 

Association_File.ini ,   Missing

 

001    7z    arj    bz2    bzip2    cab    cpio    deb    dmg    fat    gz    gzip    hfs    lha    lzh    lzma    ntfs    rar    rpm    squashfs    swm    tar    taz    tbz    tbz2    tgz    tpz    txz    vhd    wim    xar    xz    z    zip    ccd    cdi    img    mds    nrg    pdi    cgm    clp    crw    dcm    dcr    dcx    dng    dwg    dxf    eps    fli    hdp    iff    jpc    mbm    mng    mrw    nef    orf    pat    pbm    pcd    pcx    pef    pgm    pic    ppm    raf    ras    raw    rgb    rla    rw2    sgi    srf    wdp    x3f    kdb    123    602    csv    dbf    dif    fodg    fodp    fods    fodt    hwp    jif    lwp    met    mml    odb    odf    odg    odm    odp    ods    odt    otg    oth    otp    ots    ott    pct    pdb    psw    pxl    rtf    sda    sdc    sdd    sdw    sgf    sgl    sgv    slk    smf    stc    std    sti    stw    svm    sxc    sxd    sxg    sxi    sxm    sxw    uof    uop    uos    uot    vor    wb2    wk1    wks    wpd    wpg    wps    xlc    xlk    xlm    xlw    ahk    api    asc    aspx    aut    avs    avsi    axl    bak    cache    cfm    cgi    checksum    chk    cmake    cnt    config    ctest    dat    db    default    diff    dpl    dsm    dsp    dtd    ext    frx    gpl    hlp    hta    htaccess    htc    htd    htt    ia    idl    ids    inl    ion    isl    islu    iss    itcl    jar    jsm    json    kxf    lang    latex    list    lng    loc    make    manifest    map    mm    msc    msvc    nsh    nsi    odl    oem    opt    pak    patch    pod    properties    ps1    psd1    psm1    rake    Rakefile    rb    rbw    rct    rdf    rh    rjs    rss    ruby    SciTEConfig    scriptlet    sed    sif    spf    sty    tbl    template    tex    text    theme    tips    tpl    trd    trs    ttt    vbw    vcproj    wtx    xaml    xpt    xsd    xsl    xslt    xul    mht    mhtml    oex    svg    wgt    xht    xhtm    xhtml    cb7    cba    cbr    cbt    cbz    chm    djv    djvu    torrent    m4b    mo3    mtm    umx

Edited by AZJIO
Link to comment
Share on other sites

My goal is to create a list of filters with convenient group names and a reasonable number extensions to cover some 95% of the extensions you'll ever need.Thanks for your input guys, updated the first post.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...