Sign in to follow this  
Followers 0
Xichael

Who wants to translate this to AutoIt?

6 posts in this topic

There's this great little program that makes Windows' desktop icons display in list view. I'm sure this could be done in AutoIt, but I wouldn't have a clue how. The developer has made the source code available, and I'm wondering if any of you adepts would like to have a crack at recoding it to AutoIt.

The source files are here:

http://iamwill.com/dev/desktopListView/src/

Share this post


Link to post
Share on other sites



There's this great little program that makes Windows' desktop icons display in list view. I'm sure this could be done in AutoIt, but I wouldn't have a clue how. The developer has made the source code available, and I'm wondering if any of you adepts would like to have a crack at recoding it to AutoIt.

The source files are here:

http://iamwill.com/dev/desktopListView/src/

Allright. What are possible steps on how to tackle this?

You can do it yourself. Its not that complicated...

  • Get items on the desktop
  • Filter out stuff you may/may not want to see (user settings)
  • Get the icons
  • Populate a list view

Share this post


Link to post
Share on other sites

The desktop IS a listview muttley

Small Icons:

#include <GUIListView.au3>
$h = WinGetHandle("[CLASS:Progman]")
$hwnd = ControlGetHandle($h,"","SysListView321")
_GUICtrlListView_SetView($hwnd,3)

reset:

#include <GUIListView.au3>
$h = WinGetHandle("[CLASS:Progman]")
$hwnd = ControlGetHandle($h,"","SysListView321")
_GUICtrlListView_SetView($hwnd,1)

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Share this post


Link to post
Share on other sites

Brilliant! Thanks! Works like a charm.

Now if only I understood how it works.

I've got lots to learn...

Share this post


Link to post
Share on other sites

a listview can have different looks. (Like the tile / Small Icon ... in explorer)

0 is details

1 is large icon -> desktop standart

2 is list ( doesn't work for desktop)

3 is small icon -> desktop "List" style

4 is tile


*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

The desktop IS a listview muttley

Small Icons:

#include <GUIListView.au3>
$h = WinGetHandle("[CLASS:Progman]")
$hwnd = ControlGetHandle($h,"","SysListView321")
_GUICtrlListView_SetView($hwnd,3)

reset:

#include <GUIListView.au3>
$h = WinGetHandle("[CLASS:Progman]")
$hwnd = ControlGetHandle($h,"","SysListView321")
_GUICtrlListView_SetView($hwnd,1)
Wow, that's fricken awesome!

I must add that to my Autoit Examples Library!

Edited by JasonB

Share this post


Link to post
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
Sign in to follow this  
Followers 0