I'm trying to enable a standard windows menu item in an external program with AHK,
A disabled menu item is signified by being greyed out, and you can't select it.
I need to make a menu item in an external program's menu (standard windows menu) go from being diabled (greyed out) to enabled (can select it).
It doesn't matter to me if the menu item actually works afterwards, I just need to make it enabled.
Is this possible?
Additional information if you're curious:
You can create AHK scripts for external programs that can use the programs built in menu, by modifying the menu .dll of that program (in resourcehacker or visual studio), adding your own "Custom" menu. The problem is, my program automatically disables all menu options and then does something in closed-source code to enable them individually. Obviously, my custom menu options don't actually do anything so they aren't enabled and I can't alter the closed-source program.
I can detect when my custom menu options are selected by monitoring the WM_COMMAND ID's for my target process and if it matches the unique ID's of my custom menu options, I can then run some function in my ahk background script that does something in the target process - effectively making it seem like a built in custom feature of that process. It also saves hassle of having to memorize a bunch of hotkeys, a visual menu is always better, and it doesn't have to be floating or something in an overlay or other tacky method.
- Home Board index AutoHotkey (v1.1 and older) Ask for Help (v1)
- Search
-
- It is currently 09 May 2024, 07:29
- All times are UTC-05:00
Enable standard windows menu item in external program with AHK? Topic is solved
Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Jump to
- AutoHotkey Foundation
- About This Community
- Forum Issues
- AutoHotkey (v2, current version)
- Ask for Help (v2)
- Gaming
- Scripts and Functions (v2)
- Gaming
- Tutorials (v2)
- Tips and Tricks
- Wish List
- Suggestions on Documentation Improvements
- Bug Reports
- AutoHotkey Development
- AutoHotkey_H
- Ask for Help
- Development
- Editors
- Adventure IDE
- Old Topics
- AHK Studio
- Notepad++
- Pulovers Macro Creator
- SciTE4AutoHotkey
- Visual Studio Code
- Announcements
- General Discussion
- AutoHotkey (v1.1 and older)
- Ask for Help (v1)
- Gaming Help (v1)
- Scripts and Functions (v1)
- Gaming Scripts (v1)
- Tutorials (v1)
- Tips and Tricks (v1)
- General
- Other Utilities & Resources
- Other Programming Languages
- C/C++
- ASM
- C#
- KeySharp
- Off-topic Discussion
- RPA
- Other languages
- Looking for Volunteers in other languages
- Deutsch (German)
- Ich brauche Hilfe
- Spiele
- Skripte und Funktionen
- Tutorials
- Tooltime
- Allgemeines
- 中文 (Chinese)
- 请求帮助
- 脚本函数
- 教程资料
- 相关工具
- 其他
- Español (Spanish)
- Pedir Ayuda
- Automatización de Juegos
- Scripts y Funciones
- Tutoriales
- Otras Utilidades y Recursos
- General
- Русский (Russian)
- Помощь
- Скрипты для Игр
- Скрипты и библиотеки
- Статьи и руководства
- Прочие ресурсы и ПО.
- Свободное общение
- Français (French)
- J'ai besoin d'aide
- Scripts et Fonctions
- Tutoriels
- Autres Utilitaires et Ressources
- Hors Sujet
- Português (Portuguese)
- Ajuda e Suporte Geral
- Scripts e Funções
- Tutoriais
- Outras Ferramentas e Recursos
- Outros Assuntos
- 한국어 (Korean)