I'm having troubles with clicking inside a ContextMenu in AutoIT. The context Menu has only one parameter which is the class: Afx:00960000:4803:00010003:00000010:00000000. The rest of the parameters are empty. The photos showing the context menu are attached below.
enter image description here
enter image description here
I'm looking for an alternative to the classic Send("{DOWN}") method to browse the context menu. I have also tried with ControlClick() or WinActivate using the class for the context menu but i had no positive results.
Thank you.
I'm having troubles with clicking inside a ContextMenu in AutoIT. The context Menu has only one parameter which is the class: Afx:00960000:4803:00010003:00000010:00000000. The rest of the parameters are empty. The photos showing the context menu are attached below.
enter image description here
enter image description here
I'm looking for an alternative to the classic Send("{DOWN}") method to browse the context menu. I have also tried with ControlClick() or WinActivate using the class for the context menu but i had no positive results.
Thank you.
Share Improve this question asked Mar 26 at 11:25 Dinu IspasDinu Ispas 133 bronze badges 01 Answer
Reset to default 0In most cases with windows menus, if you press the Alt key you might see one of the letters underlined in each of the menu items.
If you then press this key, it will activate the menu item. So you could use autoit to send()
that keystroke. If you can't see any underlined letters, then you can try pressing some letters to see if they work, try pressing C for "Copy" for example.
Another method I have used is using a program called spy++ to find what windows messages are being sent to the program when the menu item is clicked and then using ControlCommand()
or _SendMessage()
to send this same message from autoit.
https://www.autoitscript/forum/topic/137828-selecting-from-sub-menu-when-it-contains-two-similar-items/#comment-965193