最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

automation - AutoIT Context Menu - Stack Overflow

programmeradmin4浏览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.

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 0
Add a comment  | 

1 Answer 1

Reset to default 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.

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

发布评论

评论列表(0)

  1. 暂无评论