View Full Version : FREE : Icon Object plugin
reteset
07-13-2009, 02:53 PM
A Simple Object Plugin That Draws Windows Ico Images On An AMS Page
This Plugin Was Suggested Here (http://www.indigorose.com/forums/showpost.php?p=140803&postcount=53) By Centauri Soldier
Features :
it has two functions
one for load an icon from an executable
another for load an icon file
it has three standard events which are : On Enter , On Leave , On Click
you can easily use it , easy to use and clean
ScreenShot : Click Here (http://www.amsplugins.com/screenshots/icon1.jpg)
Download : Click Here (http://www.amsplugins.com/details.asp?ID=83&CID=2)
Tomasin
07-13-2009, 03:27 PM
one for load an icon from an executable
tested and fail in all exe files (only as worked in Mozilla firefox.exe ... icon index 1)...
This is the metode included in ListBoxEx?
thanks for the plugin
Imagine Programming
07-13-2009, 03:42 PM
Thank you reteset.
@tomasin, have you tried diffirent bitdepths?
Centauri Soldier
07-13-2009, 04:21 PM
Man you are on a roll, Reteset...Thanks :D.
reteset
07-13-2009, 04:49 PM
one for load an icon from an executable
tested and fail in all exe files (only as worked in Mozilla firefox.exe ... icon index 1)...
This is the metode included in ListBoxEx?
thanks for the plugin
excuse me !
if you do not know that * icon IDs properly and can not load icon
this is not mean plugin does not work
please try these and tell me what happens
result = Icon.LoadEx("Plugin1", _ProgramFilesFolder.."\\Mozilla Firefox\\firefox.exe", 32512, 32, BIT_32, false);
result = Icon.LoadEx("Plugin2", _ProgramFilesFolder.."\\Internet Explorer\\iexplore.exe", 32528, 32, BIT_32, false);
result = Icon.LoadEx("Plugin3", _ProgramFilesFolder.."\\AutoPlay Media Studio 7.0\\ams70.exe", 128, 32, BIT_32, false);
and please check plugin names and file paths in above actions before try
Note : resource IDs can also be string which is not supported by this plugin
Imagine Programming
07-13-2009, 05:02 PM
excuse me !
if you do not know that * icon IDs properly and can not load icon
this is not mean plugin does not work
please try these and tell me what happens
result = Icon.LoadEx("Plugin1", _ProgramFilesFolder.."\\Mozilla Firefox\\firefox.exe", 32512, 32, BIT_32, false);
result = Icon.LoadEx("Plugin2", _ProgramFilesFolder.."\\Internet Explorer\\iexplore.exe", 32528, 32, BIT_32, false);
result = Icon.LoadEx("Plugin3", _ProgramFilesFolder.."\\AutoPlay Media Studio 7.0\\ams70.exe", 128, 32, BIT_32, false);
and please check plugin names and file paths in above actions before try
Note : resource IDs can also be string which is not supported by this plugin
Works. WinXP sp3
ShadowUK
07-14-2009, 12:16 AM
I confirm this plugin as working under Windows 7 x64 (Build 7229 - Pre RTM)
Would be cool if you found a way to get icon indexes in a numeric table, Or am I asking for too much?
Centauri Soldier
07-14-2009, 02:06 AM
Most of my icons are showing up fuzzy or have little black dots around the perimeter. What might I be doing wrong?
reteset
07-14-2009, 10:58 AM
Most of my icons are showing up fuzzy or have little black dots around the perimeter. What might I be doing wrong?
for example : if source icons are 16x16 and you draw them 48x48 or 32x32
this problem may occur
and you should set proper bit depth
especially if you enlarge 24 bpp icons this problem may occur
Would be cool if you found a way to get icon indexes in a numeric table, Or am I asking for too much?
i am going to add a icon enumeration action to plugin soon :yes
Centauri Soldier
07-14-2009, 11:27 AM
I see. Well thank you Reteset.
reteset
07-14-2009, 01:45 PM
Upated :
Version : 1.1.0.0
What's New :
Now it supports string resource IDs
A new argument added to Icon.LoadEx() for define target icon ID is a number or string
New : Icon.EnumerateIcons() action added which enumerates icon IDs in a executable file and returns a numerically indexed table that contains icon IDs
For Example :
tblIconIDs = Icon.EnumerateIcons("Plugin1", strPath);
in above action if tblIconIDs is not nil
the tblIconIDs[1] should be main icon of target file if it is a exe
but this may differ for sometimes
Screenshot :
http://www.amsplugins.com/screenshots/icon1.jpg
tavria2
07-14-2009, 02:03 PM
Why icon uncorrectly displayed 16x16 from user32.dll?
result = Icon.LoadEx("Plugin1", _SystemFolder.."\\User32.dll", 101, 32, BIT_32, false, true);
result = Icon.LoadEx("Plugin2", _SystemFolder.."\\User32.dll", 101, 16, BIT_32, false, true);
Imagine Programming
07-14-2009, 02:29 PM
Why icon uncorrectly displayed 16x16 from user32.dll?
result = Icon.LoadEx("Plugin1", _SystemFolder.."\\User32.dll", 101, 32, BIT_32, false, true);
result = Icon.LoadEx("Plugin2", _SystemFolder.."\\User32.dll", 101, 16, BIT_32, false, true);
Is that icon available in that size?
Thanks for the update reteset, this is a nice plugin :) :yes
tavria2
07-14-2009, 02:38 PM
Is that icon available in that size?
Yes it's available.
32x32 - 16
32x32 - 2
16x16 - 16
48x48 - 256
32x32 - 256
16x16 - 256
48x48 - 32bpp
32x32 - 32bpp
16x16 - 32bpp
Tomasin
07-14-2009, 02:46 PM
now v1.1.0.0 works corretly :yes
It's possible add function for extrac icons? (in bmp, jpg, png 32x32 or 16x16)
THANKS
reteset
07-14-2009, 06:08 PM
Ok, it seems this plugin needs some new things and some changes
i'll look that what can i do . and i'll update it when i have got free time
ShadowUK
07-15-2009, 02:40 AM
Upated :
Version : 1.1.0.0
What's New :
Now it supports string resource IDs
A new argument added to Icon.LoadEx() for define target icon ID is a number or string
New : Icon.EnumerateIcons() action added which enumerates icon IDs in a executable file and returns a numerically indexed table that contains icon IDs
For Example :
tblIconIDs = Icon.EnumerateIcons("Plugin1", strPath);
in above action if tblIconIDs is not nil
the tblIconIDs[1] should be main icon of target file if it is a exe
but this may differ for sometimes
Screenshot :
http://www.amsplugins.com/screenshots/icon1.jpg
Any chance of this enumeration function in ListBoxEx. :cool
reteset
07-15-2009, 07:40 AM
Any chance of this enumeration function in ListBoxEx. :cool
icon enumeration and string resource ID features will be available in next version of ListboxEx :yes
Hofiiik
07-15-2009, 10:06 AM
Are you going to add action for extracting icons from EXE files and saving them as ICO files? It would be great...
reteset
07-16-2009, 04:21 PM
Are you going to add action for extracting icons from EXE files and saving them as ICO files? It would be great...
yes i am going to do
Tomasin
07-17-2009, 08:26 AM
Other suggestion:
IconDoesExist, for verify is exist one icon ID, example:
C:\Program Files\Mozilla\Mozilla Firefox.exe,11423
ShadowUK
07-17-2009, 08:54 AM
Other suggestion:
IconDoesExist, for verify is exist one icon ID, example:
C:\Program Files\Mozilla\Mozilla Firefox.exe,11423
Haven't even updated my install yet but I guess you would just do something like.
if (Icon.EnumerateIcons("Plugin1", strPath)[11423]) then
-- Icon Exists
end
reteset
07-18-2009, 02:39 PM
Updated :
Version : 1.2.0.0
What's New :
Bit Depth argument is no longer exist , now plugin uses target file's properties
IntResource argument is no longer exist , now plugin does it automatically
Icon resizing problem fixed
Icon.Extract() action added which extracts icon resources from 32Bit excutable files
Sample project updated
Download : Click Here (http://www.amsplugins.com/details.asp?ID=83&CID=2)
RizlaUK
07-18-2009, 03:00 PM
Hi reteset, great plugin :yes
does this only work with .ico images, any plan to support other image formats ?
Tomasin
07-18-2009, 03:11 PM
Thanks reteset :yes
It's possible add function for extrac icons in BMP, PNG or JPG (32x32 or 16x16)?
Other sugestion for the plugin, add suport for show all icons in the plugin (thumbianil suport) :yes:yes:yes
THANKS!!
reteset
07-18-2009, 03:13 PM
Hi reteset, great plugin :yes
does this only work with .ico images, any plan to support other image formats ?
thank you , nice to see you again :)
i could not understand that what did you mean (drawing or extacting)
if drawing : this plugin supports only ICO format
if extracting : currently it extracts only ico format
at first ,i planed to make a plugin that shows ico images
but it seems this plugin going to be a icon resource explorer
for extracting other image formats : maybe i can make it later :)
RizlaUK
07-18-2009, 04:18 PM
just drawing images would suit me my friend, i would like to be able to edit a image in memory and display it in a image object without saving it to disk first, i am currently using a home brew dll for drawing on the image in memory via its bitmap handle and displaying it in a popup preview window before saving it to disk, if i could load the image via its bitmap handle into a AMS image object of some kind i would be a very happy man.
reteset
07-19-2009, 11:54 AM
just drawing images would suit me my friend, i would like to be able to edit a image in memory and display it in a image object without saving it to disk first, i am currently using a home brew dll for drawing on the image in memory via its bitmap handle and displaying it in a popup preview window before saving it to disk, if i could load the image via its bitmap handle into a AMS image object of some kind i would be a very happy man.
you need to a custom image object plugin for it
if your Dll can generate a HBITMAP handle that is actually a number
if you can provide a handle to a function like below
Icon.DrawBitmapFromHandle(HBITMAP nBmHandle);
maybe i can try something for it
but i have to say : i can not draw transparent images with this plugin except ICO format
reteset
07-19-2009, 12:00 PM
Thanks reteset :yes
It's possible add function for extrac icons in BMP, PNG or JPG (32x32 or 16x16)?
Other sugestion for the plugin, add suport for show all icons in the plugin (thumbianil suport) :yes:yes:yes
THANKS!!
i am going to add exract icons in other formats option later
Thumbnail is not possible this is not a windowed object
but you can simulate a similar thing with using multiple instaces of plugin
reteset
08-10-2009, 01:33 PM
Updated :
Version : 1.3.0.0
What's New :
New : Icon.LoadBitmap action added to load bitmap (*.bmp) images to Icon object
New : Icon.LoadBitmapEx action added to load bitmap (bmp) images from a executable (exe , dll ,ocx)
New : A new exaple project included to package to show usage of new actions
Download : Click Here (http://www.amsplugins.com/details.asp?ID=83&CID=2)
Tomasin
08-10-2009, 02:13 PM
Hi
thanks reteset.
it's possible add Icon.Extract in format BMP (and PNG, JPG)
thanks
i can't join the ams website why don't you just post the file as normal?
ShadowUK
08-14-2009, 11:30 AM
i can't join the ams website why don't you just post the file as normal?
http://www.amsplugins.com/files/objectplugins/Icon.rar
reteset
08-30-2009, 05:20 AM
Updated :
Version : 1.3.1.0
What's New:
Found a memory leak in EnumerateIcons
Download : Click Here (http://www.amsplugins.com/details.asp?ID=83&CID=2)
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.