Jump to content

How to show all shell32.dll icons and numbers?

Recommended Posts

Posted (edited)

How to show all shell32.dll icons and numbers And automatic gui and icon sizing?


#include <GUIConstants.au3>
Opt("GUIOnEventMode", 1)
$Size = 16
Dim $array[31507][31507]
$GuiIcon = GUICreate("Select icon", 1900, 1000, -1, -1, $WS_SIZEBOX + $WS_SYSMENU)
$IconButton = GUICtrlCreateButton("", 436, 858, 81, 41, $BS_ICON)
$validerbouton = GUICtrlCreateButton("Validate", 584, 859, 377, 41)
GUICtrlSetOnEvent(-1, "Validateicon")
For $y = 0 To 31506
    For $x = 0 To 31506
        $Icon = ($y * 30) + $x
        If $Icon > 63011 Then $Icon = -1
        $array[$x][$y] = GUICtrlCreateButton($Icon, ($x * $Size), ($y * $Size), $Size, $Size, $BS_ICON)
        GUICtrlSetOnEvent(-1, "clicicon")
        GUICtrlSetImage($array[$x][$y], "shell32.dll", $Icon)
GUISetOnEvent($GUI_EVENT_CLOSE, "_exit")

Func clicicon()
    Global $Icon = GUICtrlRead(@GUI_CtrlId)
    GUICtrlSetImage($IconButton, "shell32.dll", $Icon)
EndFunc   ;==>clicicon

Func Validateicon()
    MsgBox(0, "icon Number", "You have selected icon number : " & $Icon, 3)
EndFunc   ;==>Validateicon

Func _exit()
EndFunc   ;==>_exit

While 1


Edited by youtuber

Share this post

Link to post
Share on other sites

There is a help file example that shows the shell32.dll icons.  It is "...\AutoIt3\Examples\GUI\Advanced\enumicons.au3"

Whoever said that there's no such thing as a dumb question, probably asked a lot of DUMB questions.  Dumb questions are ones that you can easily find the answer to on your own.

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