Jump to content

TrayCreateItem limit


Recommended Posts

Did you know there's a section in the help file named "AutoIt3 Limits/defaults".  🙄

Link to comment
Share on other sites

https://www.autoitscript.com/autoit3/docs/appendix/LimitsDefaults.htm

according to the above link, 505 items.

But this scripts shows that it is, actually, 512 items.  

#include <AutoItConstants.au3>
#include <TrayConstants.au3> ; Required for the $TRAY_CHECKED and $TRAY_ICONSTATE_SHOW constants.

Opt("TrayMenuMode", 3) ; The default tray menu items will not be shown and items are not checked when selected. These are options 1 and 2 for TrayMenuMode.


for $x=1 to 521
        TrayCreateItem("Item " & $x, -1, -1)
Next
Local $idExit2 = TrayCreateItem("Exit")


    TraySetState($TRAY_ICONSTATE_SHOW) ; Show the tray menu.

    While 1
        Sleep (20)
    WEnd

 

Edited by Dan_555

Some of my script sourcecode

Link to comment
Share on other sites

Hello. You probably could use GuiMenu.au3's functions to go over that limit. 

Saludos

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...