MxS Posted May 15, 2021 Share Posted May 15, 2021 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 comment Share on other sites More sharing options...
TheXman Posted May 15, 2021 Share Posted May 15, 2021 Did you know there's a section in the help file named "AutoIt3 Limits/defaults". 🙄 CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman Link to comment Share on other sites More sharing options...
Dan_555 Posted May 15, 2021 Share Posted May 15, 2021 (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 May 15, 2021 by Dan_555 Some of my script sourcecode Link to comment Share on other sites More sharing options...
Danyfirex Posted May 15, 2021 Share Posted May 15, 2021 Hello. You probably could use GuiMenu.au3's functions to go over that limit. Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now