{"id":27851147,"url":"https://github.com/davebrny/ezMenu","last_synced_at":"2025-05-04T00:01:59.185Z","repository":{"id":215215689,"uuid":"84881172","full_name":"db93n2/ezMenu","owner":"db93n2","description":"easy menu creation using indentation","archived":false,"fork":false,"pushed_at":"2017-10-23T17:52:06.000Z","size":31,"stargazers_count":16,"open_issues_count":0,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-26T12:14:18.337Z","etag":null,"topics":["autohotkey","menu","windows"],"latest_commit_sha":null,"homepage":"","language":"AutoHotkey","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/db93n2.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-03-13T22:36:34.000Z","updated_at":"2024-05-05T03:15:51.000Z","dependencies_parsed_at":"2024-01-03T07:08:05.416Z","dependency_job_id":"8c6e5c2a-c471-4574-a769-cf4e5f797129","html_url":"https://github.com/db93n2/ezMenu","commit_stats":null,"previous_names":["davebrny/ezmenu","db93n2/ezmenu"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/db93n2%2FezMenu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/db93n2%2FezMenu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/db93n2%2FezMenu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/db93n2%2FezMenu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/db93n2","download_url":"https://codeload.github.com/db93n2/ezMenu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252269092,"owners_count":21721246,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autohotkey","menu","windows"],"created_at":"2025-05-04T00:01:58.202Z","updated_at":"2025-05-04T00:01:59.138Z","avatar_url":"https://github.com/db93n2.png","language":"AutoHotkey","funding_links":[],"categories":["AutoHotkey"],"sub_categories":[],"readme":"# ezMenu\n\n![](example/screenshot.png)\n\n\u0026nbsp;\n\n## parameters\n\n```\nezMenu(\"menu_name\", menu_text [, modify_func])\n```\n\n#### menu_name  \n\nthe name of the menu that all items will be added to. \u0026nbsp;if there is no label/subroutine stated in the menu text then the menu name will become the default label that will run when a menu item is clicked  \n\n\n#### menu_text  \n\na string containing menu text or the path of a file that contains menu text.  \nthe file types that menu text can be read from are: `.txt`, `.menu` and `.menu.ahk`  \n\n\n#### modify_func  \n\nthe name of the function that will run just before the menu text is parsed. \u0026nbsp;this is used for changing the menu text in some way such as replacing the names of variables with their actual contents\n\n\u003e run the file [**example.ahk**](example/example.ahk) to see some examples of the above parameters in use   \n\n\n\u0026nbsp;\n\n\n## syntax\n\n#### sub-menu\n\n```\nlevel 1.1\n    level 2.1 sub-menu\n    level 2.2\nlevel 1.2\nlevel 1.3\n```\nany text that is indented by 1 tab or 4 spaces will become a sub-menu.\n\n\n#### separator  \nlines that contain only 3 dashes `---` will become menu separators\n\n\n#### labels / subroutines  \n\nputting an exclamation mark on either side of a label name will set that as the default label for the current item and every item below it:  \n\n`item text    !default_label_name!`  \n\nthis can also be used on a line on its own so its not tied to any item:  \n\n`!default_label_name!`  \n\nto change the label for the current item only then put one exclamation on the left:\n\n`item text    !another_label_name`\n\nin both cases, if the label exists then `!` + label name text will be removed\n\n\u003e _note: if no label names are stated in the menu text then the menu name used in parameter 1 will become the default label_\n\n#### disable an item  \n`.item text`  \n\nstart the line with a full stop to have the item disabled (greyed out)\n\n\n#### default item  \n`*item text`  \n\nstart the line with an asterick to set the item as the default (bold text)\n\n\n#### comments  \nlines with a semi-colon at the start will be ignored.  \n*(at the moment its not possible to comment out a parent menu item and have all its sub items ignored)*  \n\n`item text    ; comment explaining the item`\n\nif you want to have comments after an item then use the `item_mod()` function in [example.ahk](example/example.ahk) to strip them out once the item is clicked\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavebrny%2FezMenu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavebrny%2FezMenu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavebrny%2FezMenu/lists"}