{"id":49387185,"url":"https://github.com/akcansoft/ctrltooltip","last_synced_at":"2026-04-28T10:05:42.426Z","repository":{"id":349141630,"uuid":"1201212381","full_name":"akcansoft/CtrlToolTip","owner":"akcansoft","description":"A small AutoHotkey v2 helper for adding standard Windows tooltips to GUI controls.","archived":false,"fork":false,"pushed_at":"2026-04-04T12:33:56.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-04T13:18:57.656Z","etag":null,"topics":["ahk","autohotkey","autohotkey-v2","gui","tooltip","windows","windows-tooltip"],"latest_commit_sha":null,"homepage":"","language":"AutoHotkey","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akcansoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-04T11:13:40.000Z","updated_at":"2026-04-04T12:33:59.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/akcansoft/CtrlToolTip","commit_stats":null,"previous_names":["akcansoft/ctrltooltip"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/akcansoft/CtrlToolTip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akcansoft%2FCtrlToolTip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akcansoft%2FCtrlToolTip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akcansoft%2FCtrlToolTip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akcansoft%2FCtrlToolTip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akcansoft","download_url":"https://codeload.github.com/akcansoft/CtrlToolTip/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akcansoft%2FCtrlToolTip/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32375719,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T09:24:15.638Z","status":"ssl_error","status_checked_at":"2026-04-28T09:24:15.071Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["ahk","autohotkey","autohotkey-v2","gui","tooltip","windows","windows-tooltip"],"created_at":"2026-04-28T10:05:35.468Z","updated_at":"2026-04-28T10:05:42.418Z","avatar_url":"https://github.com/akcansoft.png","language":"AutoHotkey","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CtrlToolTip\n\n`CtrlToolTip` is a small [AutoHotkey](https://www.autohotkey.com/) v2 helper that adds a standard Windows tooltip to a `Gui.Control`.\n\nIt uses the native [tooltips_class32](https://learn.microsoft.com/en-us/windows/win32/controls/tooltip-controls) control, keeps the API minimal, and works with multiple GUI windows.\n\n![Screen Shot](docs/screenshot.png)\n\n## Why This Exists\n\nAutoHotkey GUI controls do not provide a small built-in helper for attaching standard Windows tooltips in a simple, reusable way.\n\nThis project exists to keep that job minimal:\n\n- one function\n- native Windows tooltip control\n- no extra class structure required for basic use\n\n## Requirements\n\n- [AutoHotkey v2](https://www.autohotkey.com/)\n- Windows\n\n## Files\n\n- `CtrlToolTip.ahk` - the helper function\n- `CtrlToolTip_sample.ahk` - example GUI showing different control types\n\n## Usage\n\nInclude the file:\n\n```ahk\n#Include CtrlToolTip.ahk\n```\n\nAdd a tooltip to any GUI control:\n\n```ahk\nmyGui := Gui()\nbtnSave := myGui.AddButton(\"w120\", \"Save\")\nCtrlToolTip(btnSave, \"Save your changes.\")\nmyGui.Show()\n```\n\n## Function\n\n```ahk\nCtrlToolTip(ctrl, text)\n```\n\n- `ctrl` - target `Gui.Control`\n- `text` - tooltip text shown when the mouse hovers the control\n\n## Features\n\n- Uses the standard Windows tooltip control\n- Very small API: one function\n- Automatically updates the tooltip text if called again for the same control\n- Automatically applies `SS_NOTIFY` to `Text` controls so tooltips work there too\n- Keeps tooltip handles per GUI window\n\n## Example: Change Tooltip Text\n\n```ahk\nbtnChange := myGui.AddButton(\"w180\", \"Change my tooltip\")\nCtrlToolTip(btnChange, \"Initial tooltip\")\n\nbtnChange.OnEvent(\"Click\", ChangeTip)\n\nChangeTip(ctrl, *) {\n    CtrlToolTip(ctrl, \"Tooltip changed after click.\")\n}\n```\n\n## Notes\n\n- `Text` controls usually need `SS_NOTIFY` for hover-related behavior. This helper applies it automatically.\n- In the sample, the `Slider` control uses AHK's own `ToolTip` option and `CtrlToolTip` together. In real use, you may prefer only one of them.\n- The helper sets the maximum tooltip width using `A_ScreenWidth`.\n\n## Sample\n\nRun:\n\n```ahk\nCtrlToolTip_sample.ahk\n```\n\nThe sample demonstrates:\n\n- `Text`\n- `Edit`\n- `CheckBox`\n- `Radio`\n- `DropDownList`\n- `ComboBox`\n- `ListBox`\n- `DateTime`\n- `Slider`\n- `Progress`\n- `Link`\n- A button that changes its own tooltip\n- A second GUI window with its own tooltips\n\n## License\n\nSee the [LICENSE](LICENSE) file for license details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakcansoft%2Fctrltooltip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakcansoft%2Fctrltooltip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakcansoft%2Fctrltooltip/lists"}