Jump to content

Recommended Posts

Posted

Hi everyone!

What is the maximum number of menu entries or TrayCreateItem or TrayCreateMenu?. I need to create a menu with 800 items.

Regards!

Posted

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

Posted (edited)

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

Posted

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

Saludos

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
×
×
  • Create New...