I want to script a fairly simple sequence:
- Right click at current position (a context menu opens)
- Select "x" from the context menu
etc.
Is Image Recognition of the context menu, followed by the desired context menu option, followed by positioning of the cursor on the center of the image, the only approach to accomplish this?
I'm sure the right click -> context menu is a common use case, but how to handle it if I'm not able to identify the specific window of the Context Menu (even with the "View System Windows" tool)?
thank you-
Mouse - Right Click and Context Menu?
Moderators: Dorian (MJT support), JRL
Re: Mouse - Right Click and Context Menu?
Will GetFocusedObject> work?
Help wrote:GetFocusedObject>handle
Returns the handle of the currently focused object.
Re: Mouse - Right Click and Context Menu?
JRL-
Thank you for your reply. That does get me the handle of the application's main window - however, the application has several windows within it, and I cannot seem to get the handle of the specific child window I need. I may be able to get by with this - if, in returning focus to the main window, the system assumes that the focus is not only on the application's main window generally, but is also on the specific entry in the specific window that it was last. Otherwise - Image Recognition.
thank you again-
Thank you for your reply. That does get me the handle of the application's main window - however, the application has several windows within it, and I cannot seem to get the handle of the specific child window I need. I may be able to get by with this - if, in returning focus to the main window, the system assumes that the focus is not only on the application's main window generally, but is also on the specific entry in the specific window that it was last. Otherwise - Image Recognition.
thank you again-