Jump to content
Sign in to follow this  
Tiger

Trayitem with Icon

Recommended Posts

Tiger

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
TehWhale

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
Dougiefresh

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

Share this post


Link to post
Share on other sites
Tiger

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

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  

×