Jump to content

Recommended Posts

Posted

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/

Posted

  Xichael said:

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
Posted

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

Posted

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

Posted (edited)

  ProgAndy said:

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

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
  • Recently Browsing   0 members

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