 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
T800
Joined: 15 Oct 2006 Posts: 31 Location: Croatia
|
Posted: Sun Sep 30, 2007 11:55 pm Post subject: Zip Thumbnails (Updated:version 1.2.0.7) |
|
|
I made a shell extension that displays thumbnails for cbz/zip (and also infotip for cbz and cbr) archives.
Try it out and tell me what do you think.
Works with Vista, and more goodies are on the way.
You will have to register dlls manually with regsvr32,
I'll make full-blown installer with ahk when I find some free time.
(I tried CreateInstall Free but I think ahk-made installer will be better)
Current version is based on windows GdiPlus renderer.
Grab binaries+source code here
(you need MS VisualC++ 2005Express, Platform SDK 2003R2 and WTL; It's all free)
http://www.autohotkey.net/~T800/CBX/cbxInfotip1207.rar
http://www.autohotkey.net/~T800/CBX/cbxThumbs1207.rar
Mail me back at zipthumbnails@net.hr with your opinions (don't spam!).
Code for the shell manager GUI:
| Code: | #NoEnv
SendMode Input
ifnotexist, %a_scriptdir%\cbxthumbs.dll
{
msgbox, 16, Fatal error, Could not find cbxthumbs.dll`nPlease reinstall application.`nThis program will now exit.
exitapp
}
ifnotexist, %a_scriptdir%\cbzinfotip.dll
{
msgbox, 16, Fatal error, Could not find cbzinfotip.dll`nPlease reinstall application.`nThis program will now exit.
exitapp
}
ifnotexist, %a_scriptdir%\Help.chm
{
;____msgbox, 16, Fatal error, Could not find help files`nPlease reinstall application.`nThis program will now exit.
}
;_init vars
dummy=0 ;__dummy var
Cbztip=0
Cbrtip=0
Zipthumb=0
Cbzthumb=0
gosub, readregistry
;_________________GUI
Gui, Add, GroupBox, x46 y50 w260 h90 , Thumbnails
Gui, Add, CheckBox, x86 y70 w200 h30 vZipthumb Checked%Zipthumb%, (*.zip) Zip image archives
Gui, Add, CheckBox, x86 y100 w200 h30 vCbzthumb Checked%Cbzthumb%, (*.cbz) Zip image archives
Gui, Add, GroupBox, x46 y150 w260 h85 , Infotip
Gui, Add, CheckBox, x86 y160 w200 h30 vCbrtip Checked%Cbrtip%, (*.cbr) Rar image archives
Gui, Add, CheckBox, x86 y190 w200 h30 vCbztip Checked%Cbztip%, (*.cbz) Zip image archives
Gui, Add, Button, x226 y260 w80 h25 gApplysett, Apply
Gui, Add, Button, x136 y260 w80 h25 gGuiClose, Cancel
Gui, Add, Button, x46 y260 w80 h25 gApplyexit, OK
Gui, Add, Button, x226 y15 w80 h25 gShowhelp, Help
Gui, Font, S10
Gui, Add, Text, x45 y19 w160 h20 ,Enabled shell extensions
Gui, Show, x170 y121 h322 w350, Shell Extensions Manager
Return
;______________________________FC
Showhelp:
run, %a_scriptdir%\Help.chm
return
Applysett:
Gui, Submit , NoHide
gosub, writeregistry
return
Applyexit:
Gui, Submit , NoHide
gosub, writeregistry
exitapp
return
readregistry:
RegRead, cbrshellinfotip, HKEY_CLASSES_ROOT, .cbr\ShellEx\{00021500-0000-0000-C000-000000000046}
if (cbrshellinfotip!="")
cbrtip=1
RegRead, cbzshellinfotip, HKEY_CLASSES_ROOT, .cbz\ShellEx\{00021500-0000-0000-C000-000000000046}
if (cbrshellinfotip!="")
cbztip=1
RegRead, zipshellthumb, HKEY_CLASSES_ROOT, .zip\ShellEx\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}
if (zipshellthumb!="")
zipthumb=1
RegRead, cbzshellthumb, HKEY_CLASSES_ROOT, .cbz\ShellEx\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}
if (cbzshellthumb!="")
cbzthumb=1
return
;___________________registry manipulation
writeregistry:
RegRead, cbrshellinfotip, HKEY_CLASSES_ROOT, .cbr\ShellEx\{00021500-0000-0000-C000-000000000046}
if ((cbrshellinfotip="") and (cbrtip=0))
dummy=0
if ((cbrshellinfotip!="") or (cbrtip=1))
dummy=0
if ((cbrshellinfotip!="") and (cbrtip=0))
{
RegDelete, HKEY_CLASSES_ROOT, .cbr\ShellEx\{00021500-0000-0000-C000-000000000046}, AHK_DEFAULT
}
if ((cbrshellinfotip="") and (cbrtip=1))
{
RegWrite, REG_SZ, HKEY_CLASSES_ROOT, .cbr\ShellEx\{00021500-0000-0000-C000-000000000046},, {BA2331D4-6BC1-41b8-B6D4-ADA2900F4FDF}
}
RegRead, cbzshellinfotip, HKEY_CLASSES_ROOT, .cbz\ShellEx\{00021500-0000-0000-C000-000000000046}
if ((cbzshellinfotip="") and (cbztip=0))
dummy=0
if ((cbzshellinfotip!="") or (cbztip=1))
dummy=0
if ((cbzshellinfotip!="") and (cbztip=0))
{
RegDelete, HKEY_CLASSES_ROOT, .cbz\ShellEx\{00021500-0000-0000-C000-000000000046}, AHK_DEFAULT
}
if ((cbzshellinfotip="") and (cbztip=1))
{
RegWrite, REG_SZ, HKEY_CLASSES_ROOT, .cbz\ShellEx\{00021500-0000-0000-C000-000000000046},, {BA2331D4-6BC1-41b8-B6D4-ADA2900F4FDF}
}
RegRead, zipshellthumb, HKEY_CLASSES_ROOT, .zip\ShellEx\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}
if ((zipshellthumb="") and (zipthumb=0))
dummy=0
if ((zipshellthumb!="") or (zipthumb=1))
dummy=0
if ((zipshellthumb!="") and (zipthumb=0))
{
RegDelete, HKEY_CLASSES_ROOT, .zip\ShellEx\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}, AHK_DEFAULT
}
if ((zipshellthumb="") and (zipthumb=1))
{
RegWrite, REG_SZ, HKEY_CLASSES_ROOT, .zip\ShellEx\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1},, {F9610001-21EA-4642-B144-8E034EEC099A}
}
RegRead, cbzshellthumb, HKEY_CLASSES_ROOT, .cbz\ShellEx\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}
if ((cbzshellthumb="") and (cbzthumb=0))
dummy=0
if ((cbzshellthumb!="") or (cbzthumb=1))
dummy=0
if ((cbzshellthumb!="") and (cbzthumb=0))
{
RegDelete, HKEY_CLASSES_ROOT, .cbz\ShellEx\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}, AHK_DEFAULT
}
if ((cbzshellthumb="") and (cbzthumb=1))
{
RegWrite, REG_SZ, HKEY_CLASSES_ROOT, .cbz\ShellEx\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1},, {F9610001-21EA-4642-B144-8E034EEC099A}
}
return
GuiClose:
ExitApp |
Last edited by T800 on Tue Jun 03, 2008 6:13 pm; edited 4 times in total |
|
| Back to top |
|
 |
Guest
|
Posted: Mon Oct 01, 2007 8:38 am Post subject: SCREW RAR FILES!!! - Re: Zip Thumbnails |
|
|
| T800 wrote: | Grab source code here
*.rar
and binaries here
*.rar |
...I'm sorry, but I HATE rar files...why anyone would PAY for WinRAR when 7-zip, IZArc, ZipGenius, etc are FREE is beyond me...yes I know all those are supposed to be able to open rar files (7za.exe {the command line version} don't), but why bother supporting WinRAR?...tell them to shove their copyrighted/patented/proprietary/etc format & use 7z or zip...I will never understand why the world embraces PAYWARE (WinRAR, MS Office) over FREEWARE (7-zip, Open Office)... |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3600 Location: Belgrade
|
Posted: Mon Oct 01, 2007 9:57 am Post subject: |
|
|
2Guest
You need to know little bit of computer history to understand that. _________________
 |
|
| Back to top |
|
 |
T800
Joined: 15 Oct 2006 Posts: 31 Location: Croatia
|
Posted: Mon Oct 01, 2007 3:49 pm Post subject: |
|
|
Guest is a bit off the topic here.
(This is built with VS2005Express + Platform SDK = 0$ , who sez M$ can't make something good)
I put source and binaries on the forum before I go www-wide to get some feedback.
Mail me back at zipthumbnails@net.hr with your opinions (just don't smap) , and spread the word!
(at the time of checking back here I see ~50 post views, not bad for 12 hours period:)
I didnt find anything on google that is this simple and straightforward
(there is a free program P3DO explorer that displays zip thumbs in browse mode, but it's not Windows explorer).
For all you manga-lovers out there, rar support is on the to-do list
so you'll have your' cbr thumbs (nudge-nudge nowhatamean??)
P.S. I'm planning to put it on sourceforge and "spread the disease"  |
|
| Back to top |
|
 |
System Monitor
Joined: 09 Mar 2007 Posts: 392 Location: Unknown
|
Posted: Mon Oct 01, 2007 11:33 pm Post subject: |
|
|
if you put it on sourceforge, please add the link  _________________
 |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|