Hi all,
does someone know if and how it is possible to identify if a 3rd party window main menu is currently active? In effect, whether Alt was pressed and the accelorator characters of the main menu are currently underlined?
Thx and regards
identify if 3rd party window main menu is active? Topic is solved
Re: identify if 3rd party window main menu is active? Topic is solved
This should get the process name for any visible standard Windows context menu.
The code here can detect if a menu bar is focused:
detecting menus in mpc-hc - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=55247&p=237141#p237141
Code: Select all
q:: ;get process name for visible context menu
if !hWnd := WinExist("ahk_class #32768")
{
MsgBox, % "no context menu found"
return
}
WinGet, vPName, ProcessName, % "ahk_id " hWnd
MsgBox, % vPName
return
detecting menus in mpc-hc - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=55247&p=237141#p237141
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: identify if 3rd party window main menu is active?
This was exactly what I was looking for!jeeswg wrote: ↑01 Jun 2019, 19:48The code here can detect if a menu bar is focused:
detecting menus in mpc-hc - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=55247&p=237141#p237141
The other part above should also prove helpful.
THANK YOU SOOO MUCH, JEESWG, YOU MAKE THE WORLD A BETTER PLACE AND OTHER PEOPLES LIFES HAPPIER AND MORE WORTH LIVING!!!!
THANK YOU!!!!!!
Re: identify if 3rd party window main menu is active?
That's great!
Working with menu bars was one of the first times I had to work with DllCall etc from scratch, there wasn't any relevant code on the forum at the time.
Working with menu bars was one of the first times I had to work with DllCall etc from scratch, there wasn't any relevant code on the forum at the time.
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Who is online
Users browsing this forum: mikeyww and 205 guests