Sign in to follow this  
Followers 0
PcExpert

Use icon from Shell32.dll

9 posts in this topic

Hello,

Is it possible to use an icon from shell32.dll for my program? If yes, how?

Thanks!

Share this post


Link to post
Share on other sites



Yes

#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("AForm1", 633, 447, 193, 115)
GUISetIcon("C:\WINDOWS\system32\shell32.dll", 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

Sorry, but that's not what I mean (sorry if I explained it the wrong way) What is: If you compile your script with options you can choose a custom icon. But how to choose one from shell32.dll?

Share this post


Link to post
Share on other sites

Sorry, but that's not what I mean (sorry if I explained it the wrong way) What is: If you compile your script with options you can choose a custom icon. But how to choose one from shell32.dll?

not that I know of


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

OK, thanks! Is there a way to get those icons in ico format?

Share this post


Link to post
Share on other sites

OK, thanks! Is there a way to get those icons in ico format?

google for icon extract, should find plenty.


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

OK, thanks! Is there a way to get those icons in ico format?

Use This program


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

Resource Hacker wouldn't do it and just save it to a different location?


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Thanks all, it worked!

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
Sign in to follow this  
Followers 0