Sign in to follow this  
Followers 0
Tiger

Trayitem with Icon

14 posts in this topic

#1 ·  Posted (edited)

I would like to program a traymenu with icons. Can everyone help me

AutoIt Version: 3.2.8.1

Edited by Tiger

My UDFs:- _RegEnumKey

Share this post


Link to post
Share on other sites



I would like to program a traymenu with icons. Can everyone help me

AutoIt Version: 3.2.8.1

Aren't you using a little outdated version there?

Share this post


Link to post
Share on other sites

There are still no icons in the traymenu

#include "ModernMenu.au3"

$coffee = TrayCreateItem("Coffee")
_TrayItemSetIcon($coffee, @ScriptDir & "\coffee.ico")

While 1
Sleep(500)
WEnd
I believe there is examples that came with that UDF.

Share this post


Link to post
Share on other sites

The example returns errors


My UDFs:- _RegEnumKey

Share this post


Link to post
Share on other sites

You're missing the _TrayIconSetState() command before you start the loop.

Share this post


Link to post
Share on other sites

ok thanks, but there is still no icon in the traymenu


My UDFs:- _RegEnumKey

Share this post


Link to post
Share on other sites

can everyone help me


My UDFs:- _RegEnumKey

Share this post


Link to post
Share on other sites

This is my script:

Opt("TrayIconDebug", 0)
Opt("TrayMenuMode", 1)
Opt("TrayOnEventMode", 1)
#include <GUIConstants.au3>
#include "ModernMenu.au3"
$TrayAbout      = _TrayCreateItem(0, "About")
_TrayItemSetIcon(-1, "shell32.dll", 23)
TrayCreateItem("Beenden")
TrayItemSetOnEvent(-1, "_close")
Func _close()
    Exit
EndFunc   ;==>_close
While 1 
    sleep(500)
WEnd

My UDFs:- _RegEnumKey

Share this post


Link to post
Share on other sites

Can everyone help me, please


My UDFs:- _RegEnumKey

Share this post


Link to post
Share on other sites

Can everyone help, please


My UDFs:- _RegEnumKey

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