Aktonius Posted February 23, 2012 Share Posted February 23, 2012 (edited) I was looking for a picture with map that would reflect my icon numbers from shell32.dll but i didnt get much luck, on the end i created this simple script to list icons and show me exact index of icon that i need. #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <ButtonConstants.au3> $gui = GUICreate("Icon Demo", 980, 900, 260, 174) GUISetState(@SW_SHOW) $left = 10 $top = 10 for $icon = 1 to 555 $Button1 = GUICtrlCreateButton("", $left, $top, 27, 25, $BS_ICON) GUICtrlSetImage(-1, "shell32.dll", $icon, 0) $index = GUICtrlCreateLabel($icon, $left+3, $top + 27, 25, 25) If Mod( $icon, 30) = 0 Then $top += 42 $left = 10 ContinueLoop EndIf $left += 32 Next do until GUIGetMsg() = $GUI_EVENT_CLOSE Edited February 23, 2012 by Aktonius yutijang 1 Link to comment Share on other sites More sharing options...
Yashied Posted February 23, 2012 Share Posted February 23, 2012 The first index is 0. My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
gcue Posted February 23, 2012 Share Posted February 23, 2012 nice idea..very practical thx for sharing Link to comment Share on other sites More sharing options...
Yashied Posted February 23, 2012 Share Posted February 23, 2012 My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
Aktonius Posted February 23, 2012 Author Share Posted February 23, 2012 (edited) @gcue Thanks @Yashied Thats very nice work , my small example probably cant compare with that but it was just something tiny and funny but practical that i wanted to show. Wasnt meant to be an icon choser udf or something like that. And yeah i know index doesnt start at 1 but couldnt bother to make gui look ok with it. Also its good example how to create dynamic gui when you need it. Edited February 23, 2012 by Aktonius Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now