Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Make window active
#5
To click a button in an inactive window, use code like

Macro Macro630
Code:
Copy      Help
but child("Do&n't Save" "Button" win("Notepad" "#32770") 0x5)

To create the code use Controls dialog. Drag and drop the second Drag image onto the button.

If it does not work, use code like

Macro Macro630
Code:
Copy      Help
Acc a=acc("Don't Save" "PUSHBUTTON" win("Notepad" "#32770") "Button" "" 0x1001)
a.DoDefaultAction

To insert the first line, use Find Accessible Object dialog. Drag and drop the Drag image. For the second line use Accessible Object dialog.


Messages In This Thread

Forum Jump:


Users browsing this thread: 6 Guest(s)