Jump to content

Recommended Posts

Hi everyone!

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

Regards!

Link to post
Share on other sites
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
Link to post
Share on other sites

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

Saludos

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...