Sign in to follow this  
Followers 0
AlmarM

GuiSetIcon()

5 posts in this topic

How can I get a picture that I made into the GuiSetIcon() ??

I now got:

GuiSetIcon(@DesktopCommonDir & "picture", 0)

picture = \example.format

Someone knows why it wont work ?

Mayby im doing it wrong ??


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites



GuiSetIcon(@DesktopCommonDir & "\picture.ico")

or

GuiSetIcon(@DesktopCommonDir & "\picture_file.exe", 0)
How I make a .exe from it ?

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites

I already found it :)

GuiSetIcon("CFG.ico")

With Script AND .ico in the same dir


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites

The best choice if you want to set this icon only once:

place this at begin of your script

#AutoIt3Wrapper_Icon=cfg.ico

Then after compiling your GUI and application will have this icon.

I use this in all my AutoIt projects.

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