jaja714 Posted June 11, 2009 Share Posted June 11, 2009 I have some really hi-res icons but, when I use them wth AutoIT, they appear REALLY blurry. I searched these forums for "blurry icons" and "icon resolution" with no meaningful hits. When I look at these icons in Vista Windows Explorer, they look great at any folder view setting, Small Icons, Medium Icons, Large Icons, and Extra Large Icons. These are reall hi-res icons that look great at any size. Here is the code: #Region;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_outfile=C:\Users\Jeff\Documents\TEST.exe #AutoIt3Wrapper_Res_Icon_Add=C:\Users\Jeff\Documents\Windows 7 Beta Icon Pack\Windows 7 (11).ico #AutoIt3Wrapper_Res_Icon_Add=C:\Users\Jeff\Documents\Windows 7 Beta Icon Pack\Windows 7 (22).ico #AutoIt3Wrapper_Res_Icon_Add=C:\Users\Jeff\Documents\Windows 7 Beta Icon Pack\Windows 7 (29).ico #AutoIt3Wrapper_Res_Icon_Add=C:\Users\Jeff\Documents\Windows 7 Beta Icon Pack\Windows 7 (67).ico #AutoIt3Wrapper_Res_Icon_Add=C:\Users\Jeff\Documents\Windows 7 Beta Icon Pack\Windows 7 (88).ico #AutoIt3Wrapper_Res_Icon_Add=C:\Users\Jeff\Documents\Windows 7 Beta Icon Pack\Windows 7 (207).ico #EndRegion;**** Directives created by AutoIt3Wrapper_GUI **** #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $gui = GUICreate(@ScriptName,600,200) GUISetIcon(@ScriptFullPath,-10) TraySetIcon(@ScriptFullPath,-10) TrayTip(@scriptname, "testing 123 testing 123 testing 123 testing 123 testing 123 testing 123 testing 123 ", 2, 1) $b1 = GUICtrlCreateIcon(@ScriptFullPath,-7, 0,0) $b2 = GUICtrlCreateIcon(@ScriptFullPath,-9, 50,0) $b3 = GUICtrlCreateIcon(@ScriptFullPath,-5,100,0) $b4 = GUICtrlCreateIcon(@ScriptFullPath,-8,150,0) $b5 = GUICtrlCreateIcon(@ScriptFullPath,-6,200,0) GUISetState(@SW_SHOW); will display an empty dialog box While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd GUIDelete() Exit Link to comment Share on other sites More sharing options...
Lazycat Posted June 11, 2009 Share Posted June 11, 2009 If they are blurry, this mean that resizing occuring. AFAIK in Vista default size is 48x48, while Autoit default icon size is 32x32. Try to use explicit size in the icon definition, for example $b1 = GUICtrlCreateIcon(@ScriptFullPath,-7, 0, 0, 48, 48) Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
KaFu Posted June 11, 2009 Share Posted June 11, 2009 Or check out this recent UDF by Yashied:http://www.autoitscript.com/forum/index.ph...75&hl=icons OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
jaja714 Posted June 11, 2009 Author Share Posted June 11, 2009 Sorry, I tried Yasheid's examples and they are also very blurry. Even Yashied's example screenshot is blurry.Fine, when I try icon size of 32, it doesn't seem blurry because the icon is too small. The minute I double it to a reasonable size, say, 64, it becomes almost unrecognizable. Vista Windows Explorer is able to display much much larger renditions of these icons which are crystal clear.Everything else on my computer is crystal clear ... only icons and pictures in AutoIt are blurry. I hear some people saying something about resizing and resolution but, if other apps can handle it, what do I need to do to clean up the appearance of apps created with AutoIT.While Monet might be happy with the appearance of these icons, I want to improve them. I have a funny feeling there is something I am missing but I don't know what it is. Link to comment Share on other sites More sharing options...
Yashied Posted June 12, 2009 Share Posted June 12, 2009 Are you sure the your file (ico, exe, dll, etc) is including the required icon size? Attach your icon, I try it. 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...
jaja714 Posted June 12, 2009 Author Share Posted June 12, 2009 Here's one of the vista icons ... Link to comment Share on other sites More sharing options...
jaja714 Posted June 12, 2009 Author Share Posted June 12, 2009 Windows_7__5_.ico Link to comment Share on other sites More sharing options...
Yashied Posted June 12, 2009 Share Posted June 12, 2009 #Include <Icons.au3> GUICreate('My GUI', 768, 256) $Icon8 = GUICtrlCreateIcon('Windows_7__5_.ico', 0, 0, 0, 8, 8) $Icon16 = GUICtrlCreateIcon('Windows_7__5_.ico', 0, 8, 0, 16, 16) $Icon24 = GUICtrlCreateIcon('Windows_7__5_.ico', 0, 24, 0, 24, 24) $Icon32 = GUICtrlCreateIcon('Windows_7__5_.ico', 0, 48, 0, 32, 32) $Icon48 = GUICtrlCreateIcon('Windows_7__5_.ico', 0, 128, 0, 48, 48) $Icon128 = GUICtrlCreateIcon('Windows_7__5_.ico', 0, 256, 0, 128, 128) $Icon256 = GUICtrlCreateIcon('Windows_7__5_.ico', 0, 512, 0, 256, 256) GUISetState() Do Until GUIGetMsg() = -3oÝ÷ ØÝyçbB¶¹Bæx(ø¡ë'¢Û.¦+µ¸ ²,ÞÝvò'(Æî·*.q©ìj÷è¢x§Windows_7__5_.png 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...
jaja714 Posted June 16, 2009 Author Share Posted June 16, 2009 I changed _SetImage to GUICtrlSetImage but nothing worked as I got a blank GUI. Yes, I used the full file spec. GUICreate('Test', 400, 400) $Pic = GUICtrlCreatePic('', 72, 72) GUICtrlSetImage($Pic, "C:\Users\Jeff\Documents\ok.png") GUISetState() Do Until GUIGetMsg() = -3 Link to comment Share on other sites More sharing options...
Yashied Posted June 17, 2009 Share Posted June 17, 2009 (edited) I changed _SetImage to GUICtrlSetImage but nothing worked as I got a blank GUI. Yes, I used the full file spec. GUICreate('Test', 400, 400) $Pic = GUICtrlCreatePic('', 72, 72) GUICtrlSetImage($Pic, "C:\Users\Jeff\Documents\ok.png") GUISetState() Do Until GUIGetMsg() = -3GUICtrlSetImage() does not support PNG, use _SetImage() or _SetHImage() from my UDF. Edited June 17, 2009 by Yashied 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...
jaja714 Posted June 17, 2009 Author Share Posted June 17, 2009 I've moved on ... Webdings works better. expandcollapse popup#include <WindowsConstants.au3> $iSize = 64 $gui = GUICreate("test",$iSize,$iSize*5,400,400,-1,$WS_EX_TOPMOST+$DS_MODALFRAME) $Button1 = GUICtrlCreateButton(Chr(52), 0, 0, $iSize, $iSize) GUICtrlSetFont($Button1,64,400,-1,"Webdings") GUICtrlSetColor($Button1,0x00cc00) GUICtrlSetBkColor($Button1,0x000000) GUICtrlSetTip($Button1, "Play") $Button2 = GUICtrlCreateButton(Chr(61), 0, $iSize, $iSize, $iSize) GUICtrlSetFont($Button2,48,400,-1,"Webdings") GUICtrlSetColor($Button2,0xff0000) GUICtrlSetBkColor($Button2,0x000000) GUICtrlSetTip($Button2, "Record") $Button3 = GUICtrlCreateButton(Chr(64), 0, $iSize*2, $iSize, $iSize) GUICtrlSetFont($Button3,48,400,-1,"Webdings") GUICtrlSetColor($Button3,0x00ffff) GUICtrlSetBkColor($Button3,0x000000) GUICtrlSetTip($Button3, "Settings") $Button4 = GUICtrlCreateButton(Chr(114), 0, $iSize*3, $iSize, $iSize) GUICtrlSetFont($Button4,48,400,-1,"Webdings") GUICtrlSetColor($Button4,0xffff00) GUICtrlSetBkColor($Button4,0x000000) GUICtrlSetTip($Button4, "Delete") $Button5 = GUICtrlCreateButton(Chr(76), 0, $iSize*4, $iSize, $iSize) GUICtrlSetFont($Button5,48,400,-1,"Webdings") GUICtrlSetColor($Button5,0xffffff) GUICtrlSetBkColor($Button5,0x000000) GUICtrlSetTip($Button5, "Find") GUISetState() Do Until GUIGetMsg() = -3 Link to comment Share on other sites More sharing options...
Yashied Posted June 17, 2009 Share Posted June 17, 2009 I've moved on ... Webdings works better. expandcollapse popup#include <WindowsConstants.au3> $iSize = 64 $gui = GUICreate("test",$iSize,$iSize*5,400,400,-1,$WS_EX_TOPMOST+$DS_MODALFRAME) $Button1 = GUICtrlCreateButton(Chr(52), 0, 0, $iSize, $iSize) GUICtrlSetFont($Button1,64,400,-1,"Webdings") GUICtrlSetColor($Button1,0x00cc00) GUICtrlSetBkColor($Button1,0x000000) GUICtrlSetTip($Button1, "Play") $Button2 = GUICtrlCreateButton(Chr(61), 0, $iSize, $iSize, $iSize) GUICtrlSetFont($Button2,48,400,-1,"Webdings") GUICtrlSetColor($Button2,0xff0000) GUICtrlSetBkColor($Button2,0x000000) GUICtrlSetTip($Button2, "Record") $Button3 = GUICtrlCreateButton(Chr(64), 0, $iSize*2, $iSize, $iSize) GUICtrlSetFont($Button3,48,400,-1,"Webdings") GUICtrlSetColor($Button3,0x00ffff) GUICtrlSetBkColor($Button3,0x000000) GUICtrlSetTip($Button3, "Settings") $Button4 = GUICtrlCreateButton(Chr(114), 0, $iSize*3, $iSize, $iSize) GUICtrlSetFont($Button4,48,400,-1,"Webdings") GUICtrlSetColor($Button4,0xffff00) GUICtrlSetBkColor($Button4,0x000000) GUICtrlSetTip($Button4, "Delete") $Button5 = GUICtrlCreateButton(Chr(76), 0, $iSize*4, $iSize, $iSize) GUICtrlSetFont($Button5,48,400,-1,"Webdings") GUICtrlSetColor($Button5,0xffffff) GUICtrlSetBkColor($Button5,0x000000) GUICtrlSetTip($Button5, "Find") GUISetState() Do Until GUIGetMsg() = -3Congratulations to you! 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...
Emiel Wieldraaijer Posted September 3, 2009 Share Posted September 3, 2009 @Jaja714 Do you perhaps mean the GUI icon ? I noticed that the icon displayed while using ALT-Tab are far below the quality Vista and Windows 7 both support PNG compressed 256x256 images .. but they aren't used when executing an autoit application. When you check the AutoIt executable with Reshource Hacker you will also see that there is no 256x256 image. Best regards, Emiel Best regards,Emiel Wieldraaijer 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