nacerbaaziz

how to add a ico file to the compiled autoit file and use it in GUICtrlCreateIcon

17 posts in this topic

#1 ·  Posted

Hi guys
I have an inquiry please
I want an example of how to add an icon file to the compiled autoit file and how to use it in GUICtrlCreateIcon

Preferably in a separate list within the resourceFor example myIcons
I hope my request is clear and I hope you will help me solve this problem
Because I found an example in the help files but I did not understand the method well

Share this post


Link to post
Share on other sites



#2 ·  Posted

I have tried the ResourcesEx.au3 file
It succeeded but the problem is that the icons are set in rt_icon
I want them to be in a completely independent list of major icons

Share this post


Link to post
Share on other sites

#3 ·  Posted

this is the resources udf file

resources udf

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

To use custom icon on compiled exe, from scite with target script open, press Ctrl + F7 to open compile options.  Roughly the fifth option down is Icon.  Use the ... (browse) button and navigate to the .ico file.  Then press compile, the resulting exe will have the specified icon.  I am also pretty sure all the GUIs will have the specified icon instead of the default AutoIt icon after the compile.

Edited by Xandy

I am not a lawyer.  (-_-) Xandy About  (^o^) Discord - Xandy Programmer

Share this post


Link to post
Share on other sites

#6 ·  Posted

I want to use the icon that was added in GUICtrlCreateIcon
Does this work?

Share this post


Link to post
Share on other sites

 

Put this at the top of your source code - these are the parameters that are written if you follow the post that Xandy wrote.

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_icon=YourIconFile.ico
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

Is this what you wanted?

Share this post


Link to post
Share on other sites

No unfortunately
I need to add a multiple icons to the  exe file and use it in a GUI like GUICreateIcon
Greetings and sorry for the late reply

Share this post


Link to post
Share on other sites

Dear,
for example, I found this code
#AutoIt3Wrapper_Res_File_Add=icons\volume+.ico, playerIcons, up, 0
I want to use it to create the icon in the GUI
e.g :
GUICtrlCreateIcon()
I hope this is clear

Share this post


Link to post
Share on other sites

Fine, so what is the problem with that? 
Do you have the Full version of SciTE4AutoIt3 installed?
If so then open the SciTE4AutoIt3 helpfile and find the example for #AutoIt3Wrapper_Res_Icon_Add under AutoIt3Wrapper to get you going.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

@Jos
Why does not AutoIT have the full version (AutoIT and SciTE4AutoIT Full) for the installer?
I think it would be a good idea!


Regards,
 

Share this post


Link to post
Share on other sites

That was on request of Jon at the time this project was started by me. I created the LITE version for inclusion in the standard AutoIt3 installer, which is a 2 file installation to keep things simple. We also wanted to leave it up to the scripter to choose their preferred Editor themselves.

Jos 


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Although it is possible to change your favorite editor with just a few clicks :)
I hope AutoIT soon has the full version and the same lite is released!
Thanks to the Jon, Jos and AutoIT team.


Regards,
 

Share this post


Link to post
Share on other sites

i want to use the ResourcesEx.au3

but i want to add the icons to player not in RT_ICON

i don't know how to do that using the ResourcesEx.au3

can i do that?

I tried a lot and no icons appear on the screen

but if i use the RT_ICON all thank is work

i need your suggestions

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

  • Similar Content

    • nacerbaaziz
      By nacerbaaziz
      Hello my friends
      I have an urgent problem and we hope you can help me
      I want to detect if the audio output of the device has changed
      Such as the headset is connected or disConnected.
      or change the default audio output
      Is this possible?
      I really searched a lot and found suggestions but unfortunately I did not understand them
      Please explain to me
      Greetings
    • nacerbaaziz
      By nacerbaaziz
      hello
      Greetings to all
      dears i have a big problem in the bass.dll
      e.g
      If you play an audio file using the bass.dll
      and  You changed the audio output
      Such as setting or removing headphones
      The sound output of bass.dll does not change
      Is there any solution
      If it exists, please give it to me
      Greetings and thanks in advance
      I apologize for my bad English
    • nacerbaaziz
      By nacerbaaziz
      Hello
      How are you
      I have a question, please.
      I've created a window and i need
      when i run the script if it detect an other copy from the same script was runing
       the script close the first copy Automatically and run a new copy
      I want an example to understand it
    • nacerbaaziz
      By nacerbaaziz
      Hi dears
      How are you?
      I have a question, to you please.
      How do I create an edit box for numbers only and does not accept letters? using autoit
      greetings to all
      I hope you help ME
      Thanks to all in advance