AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Icon Viewer v6 + Lite v2
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Thu Jul 07, 2005 4:15 pm    Post subject: Reply with quote

I got it.

Regarding the STOP line break: I will change this in the next release.

Regarding the all icons in a folder: it will be tricky to implement it into this script. It needs a big makeover. But you could combine it with Titans request. A user could select a file or a folder and will see what he's selected.
If you like, make a mod.
If I find time, I'll do it.
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Thu Jul 07, 2005 6:14 pm    Post subject: Reply with quote

The script works great. I noticed some slight unreliability when clicking icons in the top part: sometimes the bottom part wouldn't update. I believe this was being caused by too many "H" (HotTrack) events being received, so I disabled HotTrack in today's v1.0.30.04. I also fixed the tile view bug you reported.

One thing that might be too minor to fix: I tried the script on one PC with 800x600 resolution and the window is little too tall to fit (the bottom buttons are cut off). You could either have the window adjust the ListView heights based on A_ScreenHeight or simply document that it requires 1024x768 or higher.
Back to top
View user's profile Send private message Send e-mail
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Thu Jul 07, 2005 7:19 pm    Post subject: Reply with quote

I have updated the first post.

Thanks for the feedback. I'll test AHK when I have the latest installed.

@AGU
@Titan
I have added a lite version for your needs. :)
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Titan



Joined: 11 Aug 2004
Posts: 5068
Location: imaginationland

PostPosted: Thu Jul 07, 2005 7:30 pm    Post subject: Reply with quote

Nice one Smile
_________________

RegExReplace("irc.freenode.net/ahk", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2")
Back to top
View user's profile Send private message Visit poster's website
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Thu Jul 07, 2005 7:46 pm    Post subject: Reply with quote

@Titan, you are welcome

@Chris: I tested the latest AHK (.04). Seams to work better. But I noticed another strange behaviour. It can be seen easily with the lite version. When you start the GUi and scan the shell32.dll the default view mode is small icons. There are 4 columns with icons.
When I switch to List I can see 5 columns.

But when I switch to Icon and back to small Icons, suddenly there are 9 columns and when I switch to List 10.5 columns.
I do not know if that is by design or if it would need some special LV_ModifyCol().

Another thing I noticed. LV_ModifyCol("","AutoHdr") doesn't seam to work. I wanted to apply AutoHdr to all columns. But I had to use it individualy for each column. Would it be possible to apply/allow this for all columns?
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Rajat



Joined: 28 Mar 2004
Posts: 1718

PostPosted: Thu Jul 07, 2005 8:56 pm    Post subject: Reply with quote

i checked it out... its awesome! very nice work!
_________________
Back to top
View user's profile Send private message
AGU
Guest





PostPosted: Thu Jul 07, 2005 10:55 pm    Post subject: Reply with quote

Fantastic. That's the real iconviewer for me. So why do blame it as a "lite" version. WinkVery Happy That poor little thing. May I propose the name "IconViewer - lazy edition" Laughing

I think it was already mentioned, but some kind of recognisable progress would be fine. Either a counter that tells how much icons he found so far or a progress bar, so that you can see the loop is still working.

Oh, and what about the predefined listview mode. Wouldn't "icon" instead of "small icons" be the better choice. Assuming I start the iconviewer then I'll probably do it, because I'm looking for a good icon. Therefore I need to see the big icons, needn't I. Hmm, ok maybe it's a matter of taste.
Just like the question if predefinded "folder" option instead of "file" option is the better way. Cause I don't want to scan "shell32.dll" all the time I start my Iconviewer - lazy edition"

Last but not least, thanks for your great work and the special edition for me and Titan. Smile
Back to top
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Fri Jul 08, 2005 6:46 am    Post subject: Reply with quote

Hi AGU,

Thanks for the ideas.

I only post the script. How you name it on your PC and what default values you give it, is up to you. It is only some few lines you have to change. So please customize it as you like.

But the idea of a counter I will add soon. The text in the lower left corner of the listviews will be updated during the search, not only at the end of the search. I think that this is enough information on the progress. I do not want to have to much pop up stuff, nor do i want to add another control.
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Fri Jul 08, 2005 7:31 am    Post subject: Reply with quote

I updated the first post. I didn't increase the versions since the cange is so minor.

- Both: Text in lower left corner of listview is updated during search to indicate progress
- Lite: the "Icon" view mode is set as default.
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sat Jul 09, 2005 7:21 pm    Post subject: Reply with quote

toralf wrote:
But when I switch to Icon and back to small Icons, suddenly there are 9 columns and when I switch to List 10.5 columns.
I can reproduce this behavior. It is apparently caused by the control itself, so I'm not sure why it changes the spacing between icons sometimes but not others.

Quote:
I do not know if that is by design or if it would need some special LV_ModifyCol().
Although I don't think the concept of columns applies to views other than report/details, there are some other concepts and messages that do apply but that are not yet built into the program. For example, here is one I tried on the Viewer Lite script, but it didn't seem to do anything:
Code:
Gui +LastFound
SendMessage, 4118, 0, 0, SysListView321   ; 4118 = LVM_ARRANGE

; Values for the second parameter (wParam):
; LVA_DEFAULT             0x0000
; LVA_ALIGNLEFT           0x0001
; LVA_ALIGNTOP            0x0002
; LVA_SNAPTOGRID          0x0005

More about LVM_ARRANGE: http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/listview/messages/lvm_arrange.asp

Also of possible use is LVM_UPDATE (I already tried applying the LVS_AUTOARRANGE style and by itself it didn't change the behavior): http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/listview/messages/lvm_update.asp

Quote:
I wanted to apply AutoHdr to all columns. But I had to use it individualy for each column.
This is by design. The code size for ListView is already 3 KB (compressed) so it seemed best to omit convenience features if they seemed likely to be rarely used.
Back to top
View user's profile Send private message Send e-mail
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Sun Jul 10, 2005 9:19 pm    Post subject: Reply with quote

Thanks for clarifying. Good job you did on ListView. Thanks for this greate program
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
badmojo



Joined: 11 Nov 2005
Posts: 143

PostPosted: Thu Mar 16, 2006 6:32 am    Post subject: Reply with quote

reviving an old thread...

toralf, how about command-line support? can i pass an exe or dll file to the compiled version of this script? i've been trying but so far no luck...

badmojo
Back to top
View user's profile Send private message
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Thu Mar 16, 2006 10:38 am    Post subject: Reply with quote

Just add these lines to the Lite version at line 39 (before the first "Return")
Code:
;If script is started with a filename as parameter, use it as if it was selected in the GUI
If (%0% <> 0) {
    GuiControl, ,ScanItem, %1%
    Gosub, BtnScan
  }
*not tested*
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
badmojo



Joined: 11 Nov 2005
Posts: 143

PostPosted: Fri Mar 17, 2006 2:47 am    Post subject: Reply with quote

toralf wrote:
Just add these lines to the Lite version at line 39 (before the first "Return")

wow, it works! even with folder names (minus the trailing slash). thanks-a-lot, friend... Wink

regards
badmojo
Back to top
View user's profile Send private message
badmojo



Joined: 11 Nov 2005
Posts: 143

PostPosted: Wed Mar 22, 2006 2:22 am    Post subject: Reply with quote

i spotted an erratic behaviour here. when i scanned a certain folder, IconViewer returned the same image for all the icons in the same folder. I've attaching a scrn-shot with the IconViewer and Explorer side-by-side... any solutions?

fyi, using AHK 1.0.42.07

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group