0

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.

0

1 Answer 1

0

In 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.

enter image description here

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.com/forum/topic/137828-selecting-from-sub-menu-when-it-contains-two-similar-items/#comment-965193

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.