Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Click menu not find
#3
Try accessible objects. With some programs it works. Example with MS Word 2003:

Macro Macro2909
Code:
Copy      Help
int w=win("Document1 - Microsoft Word" "OpusApp")
Acc a.Find(w "MENUITEM" "Paste" "class=OpusApp" 0x1005)
a.DoDefaultAction

To create the first 2 lines of code, use dialog "Find accessible object". If you can find the MENUITEM, also look in Properties, it should have a default action, else probably will not work. If there are no MENUITEMs, this cannot be used with that window. I don't know other ways of executing menu items of inactive windows that don't support the 'men' function.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)