monter Posted June 30, 2010 Share Posted June 30, 2010 (edited) I have a trouble with displaying icon including 3 icons (numbers 1, 2, 3).My example script displays only first (main) icon in TraySetIcon (it doesn't work with GUISetIcon too).What am I doing wrong?#Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_icon=bpm-ico\IconIdx.ico #AutoIt3Wrapper_Compression=4 #AutoIt3Wrapper_Res_Description=Icon index doesnt work? #AutoIt3Wrapper_Res_Fileversion=0.0.1.0 #AutoIt3Wrapper_Res_LegalCopyright=monter.FM #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** $dt = @YEAR & @MON & @MDAY & @HOUR & @MIN & @SEC $icon = @TempDir & '\' & @ScriptName & '_' & $dt & '.ico' FileInstall('.\bpm-ico\IconIdx.ico', $icon, 1) ToolTip('No index') TraySetIcon($icon) Sleep(2000) For $i = -4 To 4 ToolTip('Index no. ' & $i) TraySetIcon($icon, $i) Sleep(2000) Next If FileExists($icon) Then FileDelete($icon)Link to exe fileIconIdx.ico Edited June 30, 2010 by monter monter.FM [font="Tahoma;"]Full programs:[/font][font="'Microsoft Sans Serif';"] LogOnOff - keeps alive user session, after set time it performs logoff (instead of locking [acronym="Personal Computer"]PC[/acronym], useful in some corporations working with [acronym="Active Directory"]AD[/acronym]).[/font] ČharCönvěr - character set converter. [font="'Microsoft Sans Serif';"]CDTray - automated opening/closing the [acronym="Compact Disc"]CD[/acronym] tray.[/font] [font="'Microsoft Sans Serif';"]Example scripts: [/font][font="'Microsoft Sans Serif';"]RecentFolders - managing recently used folder list with combobox.[/font] [font="'Microsoft Sans Serif';"]AutoUpdater - periodic auto-checking, auto-updating and auto-relaunching newest script version.[/font] Changed host from monter.homeip.net to monter.homenet.org - replace address in my scripts to get back them to work. Link to comment Share on other sites More sharing options...
JFX Posted June 30, 2010 Share Posted June 30, 2010 Wrong is that an icon (*.ico), even if this one has multiple icons inside, doesn't have an index. In this case it would be better to use an icon libary (*.icl) #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_icon=bpm-ico\IconIdx.ico #AutoIt3Wrapper_Compression=4 #AutoIt3Wrapper_Res_Description=Icon index doesnt work? #AutoIt3Wrapper_Res_Fileversion=0.0.1.0 #AutoIt3Wrapper_Res_LegalCopyright=monter.FM #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** $dt = @YEAR & @MON & @MDAY & @HOUR & @MIN & @SEC $icon = @TempDir & '\' & @ScriptName & '_' & $dt & '.icl' FileInstall('.\bpm-ico\IconIdx.icl', $icon, 1) ToolTip('No index') TraySetIcon($icon) Sleep(2000) For $i = 1 To 3 ToolTip('Index no. ' & $i) TraySetIcon($icon, $i) Sleep(2000) Next If FileExists($icon) Then FileDelete($icon)IconIdx.zip Link to comment Share on other sites More sharing options...
monter Posted June 30, 2010 Author Share Posted June 30, 2010 (edited) Wrong is that an icon (*.ico), even if this one has multiple icons inside, doesn't have an index.In this case it would be better to use an icon libary (*.icl)Great! I didn't know about it What did you use to convert to icon library?I tried @icon sushi, but produced ICL file didn't work in my script.Edit: OK, I found IcoFX (portable) and it works fine Edited June 30, 2010 by monter monter.FM [font="Tahoma;"]Full programs:[/font][font="'Microsoft Sans Serif';"] LogOnOff - keeps alive user session, after set time it performs logoff (instead of locking [acronym="Personal Computer"]PC[/acronym], useful in some corporations working with [acronym="Active Directory"]AD[/acronym]).[/font] ČharCönvěr - character set converter. [font="'Microsoft Sans Serif';"]CDTray - automated opening/closing the [acronym="Compact Disc"]CD[/acronym] tray.[/font] [font="'Microsoft Sans Serif';"]Example scripts: [/font][font="'Microsoft Sans Serif';"]RecentFolders - managing recently used folder list with combobox.[/font] [font="'Microsoft Sans Serif';"]AutoUpdater - periodic auto-checking, auto-updating and auto-relaunching newest script version.[/font] Changed host from monter.homeip.net to monter.homenet.org - replace address in my scripts to get back them to work. 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